NetBSD Problem Report #47279

From www@NetBSD.org  Mon Dec  3 17:06:31 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 2030E63E8B0
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  3 Dec 2012 17:06:31 +0000 (UTC)
Message-Id: <20121203170630.2BBC963E8B0@www.NetBSD.org>
Date: Mon,  3 Dec 2012 17:06:30 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/print/libgxps doesn't build .. libarchive.pc already exists in .buildlink/lib/pkgconfig
X-Send-Pr-Version: www-1.0

>Number:         47279
>Category:       pkg
>Synopsis:       pkgsrc/print/libgxps doesn't build .. libarchive.pc already exists in .buildlink/lib/pkgconfig
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 03 17:10:00 +0000 2012
>Closed-Date:    Sun Jan 20 08:22:25 +0000 2013
>Last-Modified:  Mon Jan 21 11:00:08 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzoneX 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
apparently print/libgxps was not updated when libarchive added a pkgconfig .pc file, and fails while trying to place an older version from files...

===> Patching for libgxps-0.2.2nb5
=> Applying pkgsrc patches for libgxps-0.2.2nb5
===> Creating toolchain wrappers for libgxps-0.2.2nb5
src=/opt/pkg/lib/pkgconfig/fixesproto.pc  dst=/tmp/pkgsrc/print/libgxps/work/.buildlink/lib/pkgconfig/fixesext.pc;  /usr/bin/mkdir -p /tmp/pkgsrc/print/libgxps/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /usr/bin/ln -sf ${src} ${dst};  fi
===> Configuring for libgxps-0.2.2nb5
/bin/cp /home/richard/src/pkgsrc/print/libgxps/files/libarchive.pc /tmp/pkgsrc/print/libgxps/work/.buildlink/lib/pkgconfig
cp: cannot create /tmp/pkgsrc/print/libgxps/work/.buildlink/lib/pkgconfig/libarchive.pc: Permission denied
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/print/libgxps
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/print/libgxps
richard@devzoneX:~/src/pkgsrc/print/libgxps$ diff files/libarchive.pc /tmp/pkgsrc/print/libgxps/work/.buildlink/lib/pkgconfig/libarchive.pc 
1c1,4
< # $NetBSD: libarchive.pc,v 1.1.1.1 2012/03/21 17:38:39 drochner Exp $
---
> prefix=/opt/pkg
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
4,5c7,8
< Description: libarchive
< Version: 2.8.0
---
> Description: library that can create and read several streaming archive formats
> Version: 2.8.4
6a10
> Libs.private: -llzma -lbz2 -lz   -lcrypto -lcrypto -lcrypto -lcrypto -lcrypto -lcrypto

NB libarchive.pc does seem to have a repetition problem though!
>How-To-Repeat:

>Fix:
richard@devzone:~/src/pkgsrc/print/libgxps$ cvs diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/libgxps/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    8 Oct 2012 23:02:21 -0000       1.7
+++ Makefile    3 Dec 2012 17:06:02 -0000
@@ -2,7 +2,7 @@
 #

 DISTNAME=      libgxps-0.2.2
-PKGREVISION=   5
+PKGREVISION=   6       
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/libgxps/0.2/}
 EXTRACT_SUFX=  .tar.xz
@@ -18,9 +18,6 @@ USE_TOOLS+=   pkg-config

 PKGCONFIG_OVERRIDE+=   libgxps.pc.in

-pre-configure:
-       ${CP} ${FILESDIR}/libarchive.pc ${BUILDLINK_DIR}/lib/pkgconfig
-
 # for test
 #.include "../../x11/gtk3/buildlink3.mk"

Index: files/libarchive.pc
===================================================================
RCS file: files/libarchive.pc
diff -N files/libarchive.pc
--- files/libarchive.pc 21 Mar 2012 17:38:39 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
-# $NetBSD: libarchive.pc,v 1.1.1.1 2012/03/21 17:38:39 drochner Exp $
-
-Name: libarchive
-Description: libarchive
-Version: 2.8.0
-Libs: -larchive

>Release-Note:

>Audit-Trail:
From: Richard PALO <richard.palo@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47279: pkgsrc/print/libgxps doesn't build .. libarchive.pc
 already exists in .buildlink/lib/pkgconfig
Date: Thu, 13 Dec 2012 14:51:10 +0100

 With the patch submitted, I'm able to get evince built, for example, on 
 solaris.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47279 CVS commit: pkgsrc/print/libgxps
Date: Sun, 30 Dec 2012 08:09:21 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Dec 30 08:09:20 UTC 2012

 Modified Files:
 	pkgsrc/print/libgxps: Makefile

 Log Message:
 avoid to overwrite `libarchive.pc' from buildlink.
 PR 47279.


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/print/libgxps/Makefile

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

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 04 Jan 2013 05:07:07 +0000
State-Changed-Why:
Fixed?


From: Richard PALO <richard.palo@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47279 (pkgsrc/print/libgxps doesn't build .. libarchive.pc
 already exists in .buildlink/lib/pkgconfig)
Date: Fri, 04 Jan 2013 09:48:47 +0100

 Le 04/01/13 06:07, dholland@NetBSD.org a écrit :
 > Synopsis: pkgsrc/print/libgxps doesn't build .. libarchive.pc already exists in .buildlink/lib/pkgconfig
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Fri, 04 Jan 2013 05:07:07 +0000
 > State-Changed-Why:
 > Fixed?
 >
 >
 >
 >
 >
 The fix in cvs r1.8 for Makefile worked effectively for me. FWIW

From: Richard PALO <Richard.PALO@baou.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47279 (pkgsrc/print/libgxps doesn't build .. libarchive.pc
 already exists in .buildlink/lib/pkgconfig)
Date: Sun, 20 Jan 2013 06:50:15 +0100

 This is a multi-part message in MIME format.
 --------------060604040708030905000500
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 8bit

 Le 04/01/13 12:50, Richard PALO a écrit :
 > The following reply was made to PR pkg/47279; it has been noted by GNATS.
 >
 > From: Richard PALO <richard.palo@baou.fr>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/47279 (pkgsrc/print/libgxps doesn't build .. libarchive.pc
 >   already exists in .buildlink/lib/pkgconfig)
 > Date: Fri, 04 Jan 2013 09:48:47 +0100
 >
 >   Le 04/01/13 06:07, dholland@NetBSD.org a �crit :
 >   > Synopsis: pkgsrc/print/libgxps doesn't build .. libarchive.pc already exists in .buildlink/lib/pkgconfig
 >   >
 >   > State-Changed-From-To: open->feedback
 >   > State-Changed-By: dholland@NetBSD.org
 >   > State-Changed-When: Fri, 04 Jan 2013 05:07:07 +0000
 >   > State-Changed-Why:
 >   > Fixed?
 >   >
 >   >
 >   >
 >   >
 >   >
 >   The fix in cvs r1.8 for Makefile worked effectively for me. FWIW
 >
 >
 >
 Not sure why I got a reminder on this one as I believe I already 
 responded accordingly to the released fix.
 In otherwords, YES it works for me.

 --------------060604040708030905000500
 Content-Type: text/x-vcard; charset=utf-8;
  name="Richard_PALO.vcf"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="Richard_PALO.vcf"

 YmVnaW46dmNhcmQNCmZuOlJpY2hhcmQgUEFMTw0KbjpQQUxPO1JpY2hhcmQNCm9yZzpTQVMg
 QkFPVTtUTlQgUEFDQQ0KYWRyOlpJIENhbXAgTGF1cmVudDs7MTE3LCBhdiBNYXJjZWwgQmVy
 cmU7TEEgU0VZTkUgU1VSIE1FUjtWQVI7ODM1MDA7RlJBTkNFDQplbWFpbDtpbnRlcm5ldDpy
 aWNoYXJkLnBhbG9AYmFvdS5mcg0KdGVsO3dvcms6KzMzIDQgOTQgOTQgMzkgOTQNCnRlbDtm
 YXg6KzMzIDQgOTQgODcgODYgNjcNCngtbW96aWxsYS1odG1sOkZBTFNFDQp2ZXJzaW9uOjIu
 MQ0KZW5kOnZjYXJkDQoNCg==
 --------------060604040708030905000500--

State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 20 Jan 2013 08:22:25 +0000
State-Changed-Why:
Confirmed fixed, thanks!


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47279 (pkgsrc/print/libgxps doesn't build .. libarchive.pc
 already exists in .buildlink/lib/pkgconfig)
Date: Mon, 21 Jan 2013 10:55:16 +0000

 On Sun, Jan 20, 2013 at 05:55:03AM +0000, Richard PALO wrote:
  >  >   The fix in cvs r1.8 for Makefile worked effectively for me. FWIW
  >
  >  Not sure why I got a reminder on this one as I believe I already 
  >  responded accordingly to the released fix.
  >  In otherwords, YES it works for me.

 You got a reminder because someone has to poke gnats by hand to switch
 the state, and sometimes things get overlooked or left for later and
 it doesn't happen before the next batch of reminders goes out. (Which
 happens automatically on gnats's own private schedule.)

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.