NetBSD Problem Report #56623

From www@netbsd.org  Thu Jan 13 20:29:53 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 468BA1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 13 Jan 2022 20:29:53 +0000 (UTC)
Message-Id: <20220113202952.78E5E1A923A@mollari.NetBSD.org>
Date: Thu, 13 Jan 2022 20:29:52 +0000 (UTC)
From: cryintothebluesky@gmail.com
Reply-To: cryintothebluesky@gmail.com
To: gnats-bugs@NetBSD.org
Subject: wm/ctwm fails to build on Solaris 11.3
X-Send-Pr-Version: www-1.0

>Number:         56623
>Category:       pkg
>Synopsis:       wm/ctwm fails to build on Solaris 11.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 13 20:30:00 +0000 2022
>Last-Modified:  Sat Jan 22 12:15:01 +0000 2022
>Originator:     Sad Clouds
>Release:        pkgsrc-2021Q4
>Organization:
>Environment:
SunOS pkgsrc 5.11 11.3 sun4v sparc SUNW,SPARC-Enterprise-T5220

>Description:
Build tools symlink gm4 to Solaris native m4, which doesn't seem to work here:

===> Building for ctwm-4.0.3
[  1%] [FLEX][ctwm_lexer] Building scanner with flex 2.6.4
/opt/netbsd/pkg.objects/wm/ctwm/work.pkgsrc/.tools/bin/gm4: bad option: -P
--- lex.c ---
*** [lex.c] Error code 141
bmake[2]: *** lex.c removed

# ls -l /opt/netbsd/pkg.objects/wm/ctwm/work.pkgsrc/.tools/bin/gm4
lrwxrwxrwx   1 root     root          15 Jan 13 21:05 /opt/netbsd/pkg.objects/wm/ctwm/work.pkgsrc/.tools/bin/gm4 -> /usr/ccs/bin/m4


>How-To-Repeat:

>Fix:
Workaround was to symlink gm4 to pkgsrc version

ln -sf /opt/pkg/bin/gm4 /opt/netbsd/pkg.objects/wm/ctwm/work.pkgsrc/.tools/bin/gm4

Fix is needed to pkgsrc Makefile to include pkgsrc m4 as a dependency when running on Solaris.

>Release-Note:

>Audit-Trail:
From: "David H. Gutteridge" <david@gutteridge.ca>
To: Gnats Bugs <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/56623: wm/ctwm fails to build on Solaris 11.3
Date: Thu, 13 Jan 2022 21:15:54 -0500

 --=_701e31dc00ee047c5355aae252af217f
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=US-ASCII;
  format=flowed



 The package already has detection and handling for m4 versions that
 don't offer -s; it seems this should be extended to also check -P. (I
 don't follow why m4 would be marked as a runtime dependency in that
 override, but maybe I'm missing something.)

 Dave
 --=_701e31dc00ee047c5355aae252af217f
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/html; charset=UTF-8

 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
 =3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
 eva,sans-serif'>
 <p>The package already has detection and handling for m4 versions that<br /=
 >don't offer -s; it seems this should be extended to also check -P. (I<br /=
 >don't follow why m4 would be marked as a runtime dependency in that<br />o=
 verride, but maybe I'm missing something.)</p>
 <p>Dave</p>
 <p><br /></p>

 </body></html>

 --=_701e31dc00ee047c5355aae252af217f--

From: Olaf Seibert <rhialto@NetBSD.org>
To: Gnats Bugs <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/56623: wm/ctwm fails to build on Solaris 11.3
Date: Fri, 14 Jan 2022 20:01:31 +0100

 m4 is also used at runtime to preprocess the ctwmrc file.
 That's why it is a runtime dependency.

 NetBSD's m4 does recognize -P (but not -s, or at least in the past it
 didn't) so I guess that's why -P isn't checked.

 I wonder where the -P comes from though, since I can't so easily find it
 in the distfile.

 -Olaf.
 -- 
 ___ "Buying carbon credits is a bit like a serial killer paying someone else to
 \X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Wed, 19 Jan 2022 10:40:47 +0000
Responsible-Changed-Why:
A SunOS problem.


From: Sad Clouds <cryintothebluesky@gmail.com>
To: gnats-bugs@netbsd.org
Cc: hauke@NetBSD.org, solaris-pkg-people@netbsd.org, pkg-manager@netbsd.org,
 pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/56623 (wm/ctwm fails to build on Solaris 11.3)
Date: Sat, 22 Jan 2022 12:10:20 +0000

 The problem seems to be that config file paths are set to
 CMAKE_INSTALL_FULL_SYSCONFDIR which defaults to /etc, hence the pkgsrc
 Makefile cannot find those config files during post install.

 I tried overriding it with:
 CMAKE_ARGS+= CMAKE_INSTALL_FULL_SYSCONFDIR=${PKG_SYSCONFDIR}

 but it doesn't get picked up. So either CMAKE_INSTALL_FULL_SYSCONFDIR
 needs to be overridden somehow for pkgsrc, or package Makefile needs
 fixes similar to this:

 post-install:
         ${INSTALL_SCRIPT} ${WRKSRC}/vncserver.pl ${DESTDIR}${PREFIX}/bin/vncserver
         ${MV} ${DESTDIR}/etc/${PREFIX}/pam.d/tigervnc ${DESTDIR}${PREFIX}/${EGDIR}
         ${MV} ${DESTDIR}/etc/${PREFIX}/tigervnc/vncserver-config-defaults ${DESTDIR}${PREFIX}/${EGDIR}
         ${MV} ${DESTDIR}/etc/${PREFIX}/tigervnc/vncserver-config-mandatory ${DESTDIR}${PREFIX}/${EGDIR}
         ${MV} ${DESTDIR}/etc/${PREFIX}/tigervnc/vncserver.users ${DESTDIR}${PREFIX}/${EGDIR}
         # Comment out incorrect paths
         #${MV} ${DESTDIR}${PREFIX}/etc/pam.d/tigervnc ${DESTDIR}${PREFIX}/${EGDIR}
         #${MV} ${DESTDIR}${PREFIX}/etc/tigervnc/vncserver-config-defaults ${DESTDIR}${PREFIX}/${EGDIR}
         #${MV} ${DESTDIR}${PREFIX}/etc/tigervnc/vncserver-config-mandatory ${DESTDIR}${PREFIX}/${EGDIR}
         #${MV} ${DESTDIR}${PREFIX}/etc/tigervnc/vncserver.users ${DESTDIR}${PREFIX}/${EGDIR}

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.