When relinking with DESTDIR, also look into DESTDIR for the desired object. Bump revision.diff -r1.97 -r1.98 pkgsrc/devel/libtool/distinfo
(joerg)
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.97 2014/09/10 10:44:58 richard Exp $ | 1 | $NetBSD: distinfo,v 1.98 2014/12/02 10:56:24 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (libtool-2.4.2.tar.gz) = 22b71a8b5ce3ad86e1094e7285981cae10e6ff88 | 3 | SHA1 (libtool-2.4.2.tar.gz) = 22b71a8b5ce3ad86e1094e7285981cae10e6ff88 | |
4 | RMD160 (libtool-2.4.2.tar.gz) = b7153f3f1e1c50d8c04787cafccd4e19af62ec7d | 4 | RMD160 (libtool-2.4.2.tar.gz) = b7153f3f1e1c50d8c04787cafccd4e19af62ec7d | |
5 | Size (libtool-2.4.2.tar.gz) = 2632347 bytes | 5 | Size (libtool-2.4.2.tar.gz) = 2632347 bytes | |
6 | SHA1 (patch-aa) = 8fa167bebf27b7bc3008edd61408a0aede6bdf69 | 6 | SHA1 (patch-aa) = 8fa167bebf27b7bc3008edd61408a0aede6bdf69 | |
7 | SHA1 (patch-ab) = 3ab767d3c0413bf30b6e9cce62e9686cd3d53fda | 7 | SHA1 (patch-ab) = 3ab767d3c0413bf30b6e9cce62e9686cd3d53fda | |
8 | SHA1 (patch-ac) = 108989e3f1ee199fa8e8a9dc7331d360c586a800 | 8 | SHA1 (patch-ac) = e29517d339483ee39eff7e6bac3013ad32ef2b00 | |
9 | SHA1 (patch-ad) = 48c3832e9205777832ef2a6334033ff6099be8a4 | 9 | SHA1 (patch-ad) = 48c3832e9205777832ef2a6334033ff6099be8a4 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.111 2014/10/09 13:44:37 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.112 2014/12/02 10:56:24 joerg Exp $ | |
2 | 2 | |||
3 | ########################################################################### | 3 | ########################################################################### | |
4 | ########################################################################### | 4 | ########################################################################### | |
5 | # | 5 | # | |
6 | # HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: | 6 | # HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: | |
7 | # | 7 | # | |
8 | ########################################################################### | 8 | ########################################################################### | |
9 | ########################################################################### | 9 | ########################################################################### | |
10 | # | 10 | # | |
11 | # This package is maintained specially in order to preserve pkgsrc | 11 | # This package is maintained specially in order to preserve pkgsrc | |
12 | # specific OS changes that diverge from the "out of the box" libtool. | 12 | # specific OS changes that diverge from the "out of the box" libtool. | |
13 | # In order to keep this package in a maintainable condition, the .m4 files | 13 | # In order to keep this package in a maintainable condition, the .m4 files | |
14 | # must be manipulated in order to generate the patch-* files. | 14 | # must be manipulated in order to generate the patch-* files. | |
@@ -16,27 +16,27 @@ | @@ -16,27 +16,27 @@ | |||
16 | # See devel/libtool/patches/manual.README for instructions on how to make | 16 | # See devel/libtool/patches/manual.README for instructions on how to make | |
17 | # these patch files properly; otherwise your changes WILL be lost on the | 17 | # these patch files properly; otherwise your changes WILL be lost on the | |
18 | # next libtool update. | 18 | # next libtool update. | |
19 | # | 19 | # | |
20 | # DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE | 20 | # DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE | |
21 | # INSTRUCTIONS. There are no exceptions to this rule. | 21 | # INSTRUCTIONS. There are no exceptions to this rule. | |
22 | # | 22 | # | |
23 | ########################################################################### | 23 | ########################################################################### | |
24 | ########################################################################### | 24 | ########################################################################### | |
25 | 25 | |||
26 | .include "../../devel/libtool/Makefile.common" | 26 | .include "../../devel/libtool/Makefile.common" | |
27 | 27 | |||
28 | PKGNAME= ${DISTNAME:S/-/-base-/} | 28 | PKGNAME= ${DISTNAME:S/-/-base-/} | |
29 | PKGREVISION= 8 | 29 | PKGREVISION= 9 | |
30 | 30 | |||
31 | COMMENT= Generic shared library support script (the script itself) | 31 | COMMENT= Generic shared library support script (the script itself) | |
32 | 32 | |||
33 | CONFLICTS+= libtool<=1.3.5nb11 | 33 | CONFLICTS+= libtool<=1.3.5nb11 | |
34 | 34 | |||
35 | TEST_TARGET= check | 35 | TEST_TARGET= check | |
36 | 36 | |||
37 | OVERRIDE_DIRDEPTH.install-sh= 1 | 37 | OVERRIDE_DIRDEPTH.install-sh= 1 | |
38 | 38 | |||
39 | .if ${OPSYS} == "AIX" | 39 | .if ${OPSYS} == "AIX" | |
40 | 40 | |||
41 | # always build libraries and executables that use the runtime linker. | 41 | # always build libraries and executables that use the runtime linker. | |
42 | # in addition, disable libtool locking, as the test is broken on AIX, | 42 | # in addition, disable libtool locking, as the test is broken on AIX, |
$NetBSD: manual-ltmain.m4sh,v 1.1 2014/12/02 10:56:24 joerg Exp $
--- libltdl/config/ltmain.m4sh.orig 2014-11-27 21:09:59.000000000 +0000
+++ libltdl/config/ltmain.m4sh
@@ -6112,7 +6112,11 @@ func_mode_link ()
# Finalize command for both is simple: just hardcode it.
if test "$hardcode_direct" = yes &&
test "$hardcode_direct_absolute" = no; then
- add="$libdir/$linklib"
+ if test -f "$inst_prefix_dir$libdir/$linklib"; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
elif test "$hardcode_minus_L" = yes; then
add_dir="-L$libdir"
add="-l$name"
@@ -1,84 +1,96 @@ | @@ -1,84 +1,96 @@ | |||
1 | $NetBSD: patch-ac,v 1.33 2014/09/10 10:44:58 richard Exp $ | 1 | $NetBSD: patch-ac,v 1.34 2014/12/02 10:56:24 joerg Exp $ | |
2 | 2 | |||
3 | --- libltdl/config/ltmain.sh.orig Mon Oct 17 10:19:11 2011 | 3 | --- libltdl/config/ltmain.sh.orig Mon Oct 17 10:19:11 2011 | |
4 | +++ libltdl/config/ltmain.sh | 4 | +++ libltdl/config/ltmain.sh | |
5 | @@ -133,8 +133,9 @@ $lt_unset CDPATH | 5 | @@ -133,8 +133,9 @@ $lt_unset CDPATH | |
6 | # function. | 6 | # function. | |
7 | progpath="$0" | 7 | progpath="$0" | |
8 | 8 | |||
9 | - | 9 | - | |
10 | - | 10 | - | |
11 | +unset CP | 11 | +unset CP | |
12 | +unset MV | 12 | +unset MV | |
13 | +unset RM | 13 | +unset RM | |
14 | : ${CP="cp -f"} | 14 | : ${CP="cp -f"} | |
15 | test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | 15 | test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | |
16 | : ${MAKE="make"} | 16 | : ${MAKE="make"} | |
17 | @@ -7391,6 +7392,7 @@ func_mode_link () | 17 | @@ -6899,7 +6900,11 @@ func_mode_link () | |
18 | # Finalize command for both is simple: just hardcode it. | |||
19 | if test "$hardcode_direct" = yes && | |||
20 | test "$hardcode_direct_absolute" = no; then | |||
21 | - add="$libdir/$linklib" | |||
22 | + if test -f "$inst_prefix_dir$libdir/$linklib"; then | |||
23 | + add="$inst_prefix_dir$libdir/$linklib" | |||
24 | + else | |||
25 | + add="$libdir/$linklib" | |||
26 | + fi | |||
27 | elif test "$hardcode_minus_L" = yes; then | |||
28 | add_dir="-L$libdir" | |||
29 | add="-l$name" | |||
30 | @@ -7391,6 +7396,7 @@ func_mode_link () | |||
18 | # Calculate the version variables. | 31 | # Calculate the version variables. | |
19 | major= | 32 | major= | |
20 | versuffix= | 33 | versuffix= | |
21 | + versuffix2= | 34 | + versuffix2= | |
22 | verstring= | 35 | verstring= | |
23 | case $version_type in | 36 | case $version_type in | |
24 | none) ;; | 37 | none) ;; | |
25 | @@ -7451,6 +7453,7 @@ func_mode_link () | 38 | @@ -7451,6 +7457,7 @@ func_mode_link () | |
26 | func_arith $current - $age | 39 | func_arith $current - $age | |
27 | major=.$func_arith_result | 40 | major=.$func_arith_result | |
28 | versuffix="$major.$age.$revision" | 41 | versuffix="$major.$age.$revision" | |
29 | + versuffix2="$major.$age" | 42 | + versuffix2="$major.$age" | |
30 | ;; | 43 | ;; | |
31 | 44 | |||
32 | osf) | 45 | osf) | |
33 | @@ -7511,8 +7514,10 @@ func_mode_link () | 46 | @@ -7511,8 +7518,10 @@ func_mode_link () | |
34 | esac | 47 | esac | |
35 | if test "$need_version" = no; then | 48 | if test "$need_version" = no; then | |
36 | versuffix= | 49 | versuffix= | |
37 | + versuffix2= | 50 | + versuffix2= | |
38 | else | 51 | else | |
39 | versuffix=".0.0" | 52 | versuffix=".0.0" | |
40 | + versuffix2=".0.0" | 53 | + versuffix2=".0.0" | |
41 | fi | 54 | fi | |
42 | fi | 55 | fi | |
43 | 56 | |||
44 | @@ -7520,6 +7525,7 @@ func_mode_link () | 57 | @@ -7520,6 +7529,7 @@ func_mode_link () | |
45 | if test "$avoid_version" = yes && test "$need_version" = no; then | 58 | if test "$avoid_version" = yes && test "$need_version" = no; then | |
46 | major= | 59 | major= | |
47 | versuffix= | 60 | versuffix= | |
48 | + versuffix2= | 61 | + versuffix2= | |
49 | verstring="" | 62 | verstring="" | |
50 | fi | 63 | fi | |
51 | 64 | |||
52 | @@ -7630,7 +7636,7 @@ func_mode_link () | 65 | @@ -7630,7 +7640,7 @@ func_mode_link () | |
53 | *-*-netbsd*) | 66 | *-*-netbsd*) | |
54 | # Don't link with libc until the a.out ld.so is fixed. | 67 | # Don't link with libc until the a.out ld.so is fixed. | |
55 | ;; | 68 | ;; | |
56 | - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) | 69 | - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) | |
57 | + *-*-openbsd* | *-*-mirbsd* | *-*-freebsd* | *-*-dragonfly*) | 70 | + *-*-openbsd* | *-*-mirbsd* | *-*-freebsd* | *-*-dragonfly*) | |
58 | # Do not include libc due to us having libc/libc_r. | 71 | # Do not include libc due to us having libc/libc_r. | |
59 | ;; | 72 | ;; | |
60 | *-*-sco3.2v5* | *-*-sco5v6*) | 73 | *-*-sco3.2v5* | *-*-sco5v6*) | |
61 | @@ -7653,6 +7659,7 @@ func_mode_link () | 74 | @@ -7653,12 +7663,14 @@ func_mode_link () | |
62 | libname_save=$libname | 75 | libname_save=$libname | |
63 | release_save=$release | 76 | release_save=$release | |
64 | versuffix_save=$versuffix | 77 | versuffix_save=$versuffix | |
65 | + versuffix2_save=$versuffix2 | 78 | + versuffix2_save=$versuffix2 | |
66 | major_save=$major | 79 | major_save=$major | |
67 | # I'm not sure if I'm treating the release correctly. I think | 80 | # I'm not sure if I'm treating the release correctly. I think | |
68 | # release should show up in the -l (ie -lgmp5) so we don't want to | 81 | # release should show up in the -l (ie -lgmp5) so we don't want to | |
69 | @@ -7659,6 +7666,7 @@ func_mode_link () | |||
70 | # add it in twice. Is that correct? | 82 | # add it in twice. Is that correct? | |
71 | release="" | 83 | release="" | |
72 | versuffix="" | 84 | versuffix="" | |
73 | + versuffix2="" | 85 | + versuffix2="" | |
74 | major="" | 86 | major="" | |
75 | newdeplibs= | 87 | newdeplibs= | |
76 | droppeddeps=no | 88 | droppeddeps=no | |
77 | @@ -7935,6 +7943,7 @@ EOF | 89 | @@ -7935,6 +7947,7 @@ EOF | |
78 | ;; | 90 | ;; | |
79 | esac | 91 | esac | |
80 | versuffix=$versuffix_save | 92 | versuffix=$versuffix_save | |
81 | + versuffix2=$versuffix2_save | 93 | + versuffix2=$versuffix2_save | |
82 | major=$major_save | 94 | major=$major_save | |
83 | release=$release_save | 95 | release=$release_save | |
84 | libname=$libname_save | 96 | libname=$libname_save |