pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/43826: print/cups fails to build from pkgsrc-2010Q2 on NetBSD/macppc 5.0.1



The following reply was made to PR pkg/43826; it has been noted by GNATS.

From: Steven Drake <sbd%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
Subject: Re: pkg/43826: print/cups fails to build from pkgsrc-2010Q2 on
 NetBSD/macppc 5.0.1
Date: Thu, 2 Sep 2010 11:07:29 +1200 (NZST)

 On Wed, 1 Sep 2010, Joerg Sonnenberger wrote:
 >  On Wed, Sep 01, 2010 at 08:20:06PM +0000, metaridley%mchsi.com@localhost 
 > wrote:
 >  > libtool: link: cc -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R7/lib -pie -fPIE ...
 >  
 >  I dimly remember similar problem related to PIE.
 
 As I don't have access to a NetBSD/macppc system I can't test this but if
 if your right Joerg then the following patch will remove PIE.
 -- 
 Steven
 
 Index: Makefile
 ===================================================================
 RCS file: /srv/NetBSD-cvs/pkgsrc/print/cups/Makefile,v
 retrieving revision 1.169
 diff -u -p -r1.169 Makefile
 --- Makefile   14 Jul 2010 11:25:19 -0000      1.169
 +++ Makefile   1 Sep 2010 21:56:16 -0000
 @@ -133,6 +133,14 @@ SUBST_MESSAGE.rpathfix=   Adding rpath to 
  SUBST_SED.rpathfix=   -e 
's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g'
  SUBST_STAGE.rpathfix= post-patch
  
 +.if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mmacppc)
 +SUBST_CLASSES+=               piefix
 +SUBST_FILES.piefix=   Makedefs.in
 +SUBST_MESSAGE.piefix= Removing PIE flags
 +SUBST_SED.piefix=     -e 's|@PIEFLAGS@||g'
 +SUBST_STAGE.piefix=   post-patch
 +.endif
 +
  INSTALLATION_DIRS=    ${DOCDIR} ${EGDIR} ${MIMEDIR}
  INSTALL_ENV+=         DSTROOT=${DESTDIR:Q}
  
 


Home | Main Index | Thread Index | Old Index