Port-alpha archive

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

Re: devel/boost-libs-1.53.0 won't build on alpha



On Sun, Mar 10, 2013 at 09:33:16AM -0500, Dave Huang wrote:
> Yes, it's --without-context. My mac68k system is currently out of
> commission, but the build works on alpha with that patch. However, the
> package installation fails:
> 
> => Creating binary package /usr/pkgsrc/packages/All/boost-libs-1.53.0.tgz
> pkg_create: can't stat 
> `/usr/pkgsrc/devel/boost-libs/work.alpha/.destdir/usr/pkg/lib/libboost_context.a'
> pkg_create: can't stat 
> `/usr/pkgsrc/devel/boost-libs/work.alpha/.destdir/usr/pkg/lib/libboost_context.so'
> pkg_create: can't stat 
> `/usr/pkgsrc/devel/boost-libs/work.alpha/.destdir/usr/pkg/lib/libboost_context.so.1.53.0'
> pkg_create: lstat failed for file lib/libboost_context.a: No such file or 
> directory

Yeah, those need to be made conditional in the PLIST.

Could you try the attached patch?

Thanks,

Martin
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/boost-libs/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- Makefile    31 Oct 2012 11:16:42 -0000      1.24
+++ Makefile    10 Mar 2013 20:36:10 -0000
@@ -10,8 +10,16 @@
 INSTALLATION_DIRS+=    lib
 
 BJAM_ARGS+=            --without-python
+PLIST_VARS+=           context
+
 .if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Msparc64)
 BJAM_ARGS+=            pch=off
+.elif !empty(MACHINE_ARCH:Malpha) || !empty(MACHINE_ARCH:Mm68k)
+BJAM_ARGS+=            --without-context
+.endif
+
+.if empty(BJAM_ARGS:M--without-context)
+PLIST.context=         yes
 .endif
 
 UNLIMIT_RESOURCES+=    stacksize
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/devel/boost-libs/PLIST,v
retrieving revision 1.18
diff -u -r1.18 PLIST
--- PLIST       29 Nov 2012 21:50:24 -0000      1.18
+++ PLIST       10 Mar 2013 20:36:10 -0000
@@ -2,9 +2,9 @@
 lib/libboost_chrono.a
 lib/libboost_chrono.so
 lib/libboost_chrono.so.${BOOST_VERSION}
-lib/libboost_context.a
-lib/libboost_context.so
-lib/libboost_context.so.${BOOST_VERSION}
+${PLIST.context}lib/libboost_context.a
+${PLIST.context}lib/libboost_context.so
+${PLIST.context}lib/libboost_context.so.${BOOST_VERSION}
 lib/libboost_date_time.a
 lib/libboost_date_time.so
 lib/libboost_date_time.so.${BOOST_VERSION}


Home | Main Index | Thread Index | Old Index