pkgsrc-Changes archive

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

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Tue Jul  9 15:45:26 UTC 2019

Modified Files:
        pkgsrc/cross/cross-libtool-base: Makefile PLIST
        pkgsrc/doc: HOWTO-use-crosscompile
        pkgsrc/mk: bsd.pkg.use.mk

Log Message:
Sync cross-libtool-base with libtool-base.  Eliminate CROSSBASE.

cross-libtool-base now installs into $PREFIX/cross-$TARGET_ARCH
unconditionally.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/cross/cross-libtool-base/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/cross/cross-libtool-base/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/doc/HOWTO-use-crosscompile
cvs rdiff -u -r1.67 -r1.68 pkgsrc/mk/bsd.pkg.use.mk

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

Modified files:

Index: pkgsrc/cross/cross-libtool-base/Makefile
diff -u pkgsrc/cross/cross-libtool-base/Makefile:1.3 pkgsrc/cross/cross-libtool-base/Makefile:1.4
--- pkgsrc/cross/cross-libtool-base/Makefile:1.3        Sat Jul  9 06:37:58 2016
+++ pkgsrc/cross/cross-libtool-base/Makefile    Tue Jul  9 15:45:25 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2016/07/09 06:37:58 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2019/07/09 15:45:25 riastradh Exp $
 
 # XXX This is kludgerific copypasta of devel/libtool-base/Makefile for
 # cross-compilation.  Please make it go away!
@@ -20,8 +20,13 @@
 # these patch files properly; otherwise your changes WILL be lost on the
 # next libtool update.
 #
-# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
-# INSTRUCTIONS.  There are no exceptions to this rule.
+# DO NOT MAKE CHANGES TO THESE FILES:
+#
+#   patches/patch-build-aux_ltmain.sh
+#   patches/patch-configure
+#   patches/patch-libltdl_configure
+#
+# WITHOUT FOLLOWING THESE INSTRUCTIONS.  There are no exceptions to this rule.
 #
 ###########################################################################
 ###########################################################################
@@ -31,7 +36,7 @@
 # XXX Tweaked for cross-compilation.
 #PKGNAME=      ${DISTNAME:S/-/-base-/}
 PKGNAME=       ${DISTNAME:S/^libtool-/cross-libtool-base-${MACHINE_ARCH}-/}
-PKGREVISION=   4
+PKGREVISION=   5
 
 COMMENT=       Generic shared library support script (the script itself)
 
@@ -57,8 +62,12 @@ CFLAGS.SunOS+=       ${_COMPILER_ABI_FLAG.${AB
 # and Fortran compilers.
 #
 USE_LANGUAGES=         c c++
-GNU_CONFIGURE_PREFIX=  ${PREFIX}/cross
+# XXX Added for cross-compilation.  XXX Should be ${TARGET_ARCH}, but
+# currently we have to fake-cross-compile libtool because it's broken
+# upstream.
+GNU_CONFIGURE_PREFIX=  ${PREFIX}/cross-${MACHINE_ARCH}
 CONFIGURE_ARGS+=       --disable-ltdl-install
+CONFIGURE_ARGS+=       F77=no FC=no
 
 USE_TOOLS+=            echo
 
@@ -68,7 +77,9 @@ FILESDIR=     ../../devel/libtool-base/files
 .PHONY: fix-libtool
 fix-libtool:
        cd ${WRKSRC}; for f in libtool; do                              \
-               ${SED}  -e "s,-L${BUILDLINK_DIR}/lib,," $$f > $$f.new;  \
+               ${SED}  -e "s,-L${BUILDLINK_DIR}/lib *,,g"              \
+                       -e "s,${BUILDLINK_DIR}/lib *,,g"                \
+                       $$f > $$f.new;                                  \
                if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi;            \
                ${MV} -f $$f.new $$f;                                   \
        done
@@ -81,7 +92,7 @@ post-build:
                ${FILESDIR}/shlibtool.in > ${WRKSRC}/shlibtool
 
 post-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${DESTDIR}${PREFIX}/cross/bin/shlibtool
+       ${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${DESTDIR}${PREFIX}/cross-${MACHINE_ARCH}/bin/shlibtool
 
 BUILDLINK_DEPMETHOD.dlcompat=  build
 

Index: pkgsrc/cross/cross-libtool-base/PLIST
diff -u pkgsrc/cross/cross-libtool-base/PLIST:1.2 pkgsrc/cross/cross-libtool-base/PLIST:1.3
--- pkgsrc/cross/cross-libtool-base/PLIST:1.2   Tue Jan 16 09:34:40 2018
+++ pkgsrc/cross/cross-libtool-base/PLIST       Tue Jul  9 15:45:25 2019
@@ -1,55 +1,55 @@
-@comment $NetBSD: PLIST,v 1.2 2018/01/16 09:34:40 maya Exp $
-cross/bin/libtool
-cross/bin/libtoolize
-cross/bin/shlibtool
-cross/man/man1/libtool.1
-cross/man/man1/libtoolize.1
-cross/share/aclocal/libtool.m4
-cross/share/aclocal/ltargz.m4
-cross/share/aclocal/ltdl.m4
-cross/share/aclocal/ltoptions.m4
-cross/share/aclocal/ltsugar.m4
-cross/share/aclocal/ltversion.m4
-cross/share/aclocal/lt~obsolete.m4
-cross/share/libtool/COPYING.LIB
-cross/share/libtool/Makefile.am
-cross/share/libtool/Makefile.in
-cross/share/libtool/README
-cross/share/libtool/aclocal.m4
-cross/share/libtool/build-aux/compile
-cross/share/libtool/build-aux/config.guess
-cross/share/libtool/build-aux/config.sub
-cross/share/libtool/build-aux/depcomp
-cross/share/libtool/build-aux/install-sh
-cross/share/libtool/build-aux/ltmain.sh
-cross/share/libtool/build-aux/missing
-cross/share/libtool/config-h.in
-cross/share/libtool/configure
-cross/share/libtool/configure.ac
-cross/share/libtool/libltdl/lt__alloc.h
-cross/share/libtool/libltdl/lt__argz_.h
-cross/share/libtool/libltdl/lt__dirent.h
-cross/share/libtool/libltdl/lt__glibc.h
-cross/share/libtool/libltdl/lt__private.h
-cross/share/libtool/libltdl/lt__strl.h
-cross/share/libtool/libltdl/lt_dlloader.h
-cross/share/libtool/libltdl/lt_error.h
-cross/share/libtool/libltdl/lt_system.h
-cross/share/libtool/libltdl/slist.h
-cross/share/libtool/loaders/dld_link.c
-cross/share/libtool/loaders/dlopen.c
-cross/share/libtool/loaders/dyld.c
-cross/share/libtool/loaders/load_add_on.c
-cross/share/libtool/loaders/loadlibrary.c
-cross/share/libtool/loaders/preopen.c
-cross/share/libtool/loaders/shl_load.c
-cross/share/libtool/lt__alloc.c
-cross/share/libtool/lt__argz.c
-cross/share/libtool/lt__dirent.c
-cross/share/libtool/lt__strl.c
-cross/share/libtool/lt_dlloader.c
-cross/share/libtool/lt_error.c
-cross/share/libtool/ltdl.c
-cross/share/libtool/ltdl.h
-cross/share/libtool/ltdl.mk
-cross/share/libtool/slist.c
+@comment $NetBSD: PLIST,v 1.3 2019/07/09 15:45:25 riastradh Exp $
+cross-${MACHINE_ARCH}/bin/libtool
+cross-${MACHINE_ARCH}/bin/libtoolize
+cross-${MACHINE_ARCH}/bin/shlibtool
+cross-${MACHINE_ARCH}/man/man1/libtool.1
+cross-${MACHINE_ARCH}/man/man1/libtoolize.1
+cross-${MACHINE_ARCH}/share/aclocal/libtool.m4
+cross-${MACHINE_ARCH}/share/aclocal/ltargz.m4
+cross-${MACHINE_ARCH}/share/aclocal/ltdl.m4
+cross-${MACHINE_ARCH}/share/aclocal/ltoptions.m4
+cross-${MACHINE_ARCH}/share/aclocal/ltsugar.m4
+cross-${MACHINE_ARCH}/share/aclocal/ltversion.m4
+cross-${MACHINE_ARCH}/share/aclocal/lt~obsolete.m4
+cross-${MACHINE_ARCH}/share/libtool/COPYING.LIB
+cross-${MACHINE_ARCH}/share/libtool/Makefile.am
+cross-${MACHINE_ARCH}/share/libtool/Makefile.in
+cross-${MACHINE_ARCH}/share/libtool/README
+cross-${MACHINE_ARCH}/share/libtool/aclocal.m4
+cross-${MACHINE_ARCH}/share/libtool/build-aux/compile
+cross-${MACHINE_ARCH}/share/libtool/build-aux/config.guess
+cross-${MACHINE_ARCH}/share/libtool/build-aux/config.sub
+cross-${MACHINE_ARCH}/share/libtool/build-aux/depcomp
+cross-${MACHINE_ARCH}/share/libtool/build-aux/install-sh
+cross-${MACHINE_ARCH}/share/libtool/build-aux/ltmain.sh
+cross-${MACHINE_ARCH}/share/libtool/build-aux/missing
+cross-${MACHINE_ARCH}/share/libtool/config-h.in
+cross-${MACHINE_ARCH}/share/libtool/configure
+cross-${MACHINE_ARCH}/share/libtool/configure.ac
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt__alloc.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt__argz_.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt__dirent.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt__glibc.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt__private.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt__strl.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt_dlloader.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt_error.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/lt_system.h
+cross-${MACHINE_ARCH}/share/libtool/libltdl/slist.h
+cross-${MACHINE_ARCH}/share/libtool/loaders/dld_link.c
+cross-${MACHINE_ARCH}/share/libtool/loaders/dlopen.c
+cross-${MACHINE_ARCH}/share/libtool/loaders/dyld.c
+cross-${MACHINE_ARCH}/share/libtool/loaders/load_add_on.c
+cross-${MACHINE_ARCH}/share/libtool/loaders/loadlibrary.c
+cross-${MACHINE_ARCH}/share/libtool/loaders/preopen.c
+cross-${MACHINE_ARCH}/share/libtool/loaders/shl_load.c
+cross-${MACHINE_ARCH}/share/libtool/lt__alloc.c
+cross-${MACHINE_ARCH}/share/libtool/lt__argz.c
+cross-${MACHINE_ARCH}/share/libtool/lt__dirent.c
+cross-${MACHINE_ARCH}/share/libtool/lt__strl.c
+cross-${MACHINE_ARCH}/share/libtool/lt_dlloader.c
+cross-${MACHINE_ARCH}/share/libtool/lt_error.c
+cross-${MACHINE_ARCH}/share/libtool/ltdl.c
+cross-${MACHINE_ARCH}/share/libtool/ltdl.h
+cross-${MACHINE_ARCH}/share/libtool/ltdl.mk
+cross-${MACHINE_ARCH}/share/libtool/slist.c

Index: pkgsrc/doc/HOWTO-use-crosscompile
diff -u pkgsrc/doc/HOWTO-use-crosscompile:1.5 pkgsrc/doc/HOWTO-use-crosscompile:1.6
--- pkgsrc/doc/HOWTO-use-crosscompile:1.5       Sun Mar  5 10:36:40 2017
+++ pkgsrc/doc/HOWTO-use-crosscompile   Tue Jul  9 15:45:25 2019
@@ -1,7 +1,7 @@
 Cross-compilation in pkgsrc (user's guide)              -*- outline -*-
 Taylor R. Campbell <riastradh%NetBSD.org@localhost>
 
-$NetBSD: HOWTO-use-crosscompile,v 1.5 2017/03/05 10:36:40 kamil Exp $
+$NetBSD: HOWTO-use-crosscompile,v 1.6 2019/07/09 15:45:25 riastradh Exp $
 
 The following steps enable you to build binary packages for a machine
 architecture other than the one you are building on.  For example, you
@@ -40,11 +40,6 @@ In addition to whatever else you want in
    # which is a bug.
    USE_CROSS_COMPILE?=  yes
 
-   # This is a kludge for cross-libtool.
-   #
-   # XXX Should not need this.
-   CROSSBASE=           ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH}}
-
    .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
    # Specify the machine architecture of target packages.
    #

Index: pkgsrc/mk/bsd.pkg.use.mk
diff -u pkgsrc/mk/bsd.pkg.use.mk:1.67 pkgsrc/mk/bsd.pkg.use.mk:1.68
--- pkgsrc/mk/bsd.pkg.use.mk:1.67       Tue Jan  2 05:49:44 2018
+++ pkgsrc/mk/bsd.pkg.use.mk    Tue Jul  9 15:45:25 2019
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.use.mk,v 1.67 2018/01/02 05:49:44 maya Exp $
+#      $NetBSD: bsd.pkg.use.mk,v 1.68 2019/07/09 15:45:25 riastradh Exp $
 #
 # Turn USE_* macros into proper depedency logic.  Included near the top of
 # bsd.pkg.mk, after bsd.prefs.mk.
@@ -86,8 +86,8 @@ BUILD_DEPENDS+=               libtool-fortran>=${_OPS
 .  endif
 .else
 .  if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
-PKG_LIBTOOL?=          ${CROSSBASE}/bin/libtool
-PKG_SHLIBTOOL?=                ${CROSSBASE}/bin/shlibtool
+PKG_LIBTOOL?=          ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH}}/bin/libtool
+PKG_SHLIBTOOL?=                ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH}}/bin/shlibtool
 .  else
 PKG_LIBTOOL?=          ${LOCALBASE}/bin/libtool
 PKG_SHLIBTOOL?=                ${LOCALBASE}/bin/shlibtool



Home | Main Index | Thread Index | Old Index