NetBSD Problem Report #56211

From www@netbsd.org  Wed May 26 14:02:12 2021
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 3C0021A92A7
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 26 May 2021 14:02:12 +0000 (UTC)
Message-Id: <20210526140211.172D31A92BC@mollari.NetBSD.org>
Date: Wed, 26 May 2021 14:02:11 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: net/tigervnc fails to build and install
X-Send-Pr-Version: www-1.0

>Number:         56211
>Category:       pkg
>Synopsis:       net/tigervnc fails to build and install
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 26 14:05:00 +0000 2021
>Closed-Date:    
>Last-Modified:  Tue Jan 31 23:39:06 +0000 2023
>Originator:     Joern Clausen
>Release:        
>Organization:
Bielefeld University
>Environment:
>Description:
net/tigervnc 1.11.0 depends on x11/libXfont2 now, the Makefile still requests libXfont.

After correcting this, installation on Solaris 11 fails with

libtool: install: chmod 644 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/lib/xorg/modules/extensions/libvnc.a
libtool: install: ranlib /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/lib/xorg/modules/extensions/libvnc.a
libtool: warning: remember to run 'libtool --finish /opt/pkg-hrz/20201118/lib/xorg/modules/extensions'
 /usr/bin/gmkdir -p '/opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/man/man1'
 /opt/pkg-hrz/20201118/bin/bsdinstall -c -o pkgsrc -g software -m 644 'Xvnc.man' '/opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/man/man1/Xvnc.1'
gmake[1]: Leaving directory '/opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/tigervnc-1.11.0/unix/xserver/hw/vnc'
/opt/pkg-hrz/20201118/bin/bsdinstall -c -o pkgsrc -g software -m 755 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/tigervnc-1.11.0/vncserver.pl /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/bin/vncserver
/usr/bin/mv /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/etc/pam.d/tigervnc /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/share/examples/tigervnc
mv: cannot access /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/etc/pam.d/tigervnc
*** Error code 2

Stop.
bmake[1]: stopped in /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc
*** Error code 1


The file in question resides currently in

work.pkgsrc-sol11i86/.destdir/etc/opt/pkg-hrz/20201118/pam.d/tigervnc

not

work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/etc/pam.d/tigervnc

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Thu, 27 May 2021 07:00:25 +0000
State-Changed-Why:
Thanks for the report. I fixed the dependency.
I didn't see the sysconfdir issue locally, I've tried
explicitly passing sysconfdir to Cmake. If that does not
help, please debug this a bit more.


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56211 CVS commit: pkgsrc/net/tigervnc
Date: Thu, 27 May 2021 06:59:22 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Thu May 27 06:59:22 UTC 2021

 Modified Files:
 	pkgsrc/net/tigervnc: Makefile

 Log Message:
 tigervnc: fix dependency

 Use Xfont2 instead of Xfont, reported by Joern Clausen
 in PR 56211.

 Explicitly set sysconfdir to try fixing the other part
 of that PR.


 To generate a diff of this commit:
 cvs rdiff -u -r1.39 -r1.40 pkgsrc/net/tigervnc/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen@uni-bielefeld.de>
To: <gnats-bugs@netbsd.org>, <pkg-manager@netbsd.org>,
	<pkgsrc-bugs@netbsd.org>, <gnats-admin@netbsd.org>, <wiz@netbsd.org>
Cc: 
Subject: Re: pkg/56211 (net/tigervnc fails to build and install)
Date: Thu, 27 May 2021 13:48:14 +0200

 > I didn't see the sysconfdir issue locally, I've tried
 > explicitly passing sysconfdir to Cmake. If that does not
 > help, please debug this a bit more.

 I replaced your fix with

 CMAKE_ARGS+=           CMAKE_INSTALL_FULL_SYSCONFDIR=${PKG_SYSCONFDIR}

 (i.e. added "_FULL") because I saw that that variable was used for 
 constructing several paths. Unfortunately, this didn't fix anything. 
 During install, some files are still installed under the wrong prefix:

 -- Installing: 
 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/man/man1/vncpasswd.1
 -- Installing: 
 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/sbin/vncsession
 -- Installing: 
 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/etc/opt/pkg-hrz/20201118/pam.d/tigervnc
 -- Installing: 
 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/man/man8/vncsession.8
 -- Installing: 
 /opt/pkgsrc/pkg-hrz/pkgsrc/net/tigervnc/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20201118/libexec/vncserver

 I'll keep looking...

 -- 
 Jörn Clausen
 BITS - Bielefelder IT-Servicezentrum
 https://www.uni-bielefeld.de/bits

From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen@uni-bielefeld.de>
To: <gnats-bugs@netbsd.org>, <pkg-manager@netbsd.org>,
	<gnats-admin@netbsd.org>, <pkgsrc-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/56211 (net/tigervnc fails to build and install)
Date: Fri, 28 May 2021 09:08:42 +0200

 Building tigervnc-1.11.0 outside pkgsrc on Solaris 11 with

 $ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/tmp/tigervnc
 ...
 $ gmake install

 does IMHO the right thing:

 -- Installing: /tmp/tigervnc/share/man/man1/vncpasswd.1
 -- Installing: /tmp/tigervnc/sbin/vncsession
 -- Installing: /tmp/tigervnc/etc/pam.d/tigervnc
 -- Installing: /tmp/tigervnc/share/man/man8/vncsession.8
 -- Installing: /tmp/tigervnc/libexec/vncserver

 I think looking at what the destdir magic does would help, but I have 
 zero understanding of what is happening in that phase or where it is 
 defined. Any pointers are appreciated...

 -- 
 Jörn Clausen
 BITS - Bielefelder IT-Servicezentrum
 https://www.uni-bielefeld.de/bits

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 31 Jan 2023 23:39:06 +0000
State-Changed-Why:
feedback received (still broken)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.