Skip to content

Commit

Permalink
- Update devel/libtool and devel/libltdl to version 2.4.2.418
Browse files Browse the repository at this point in the history
- Patch libtool so it uses the same library version specification as on
  Darwin, Linux and other systems.  Given the version current:revision:age
  a library will be given the extension .so.major.age.revision with major
  equal to current-age.  Before libtool would use .so.current on FreeBSD.
- Patch libtoolize to remove two cases of umask 0 that caused libltdl
  files to be copied world writable (--ltdl option)
- Let USES=libtool patch this new version correctly
- Adjust all ports with USES=libtool:build and bump PORTREVISION on their
  dependent ports if a library version changed

PR:		194068
Exp-run by:	antoine
Approved by:	portmgr (antoine)
  • Loading branch information
TijlCoosemans committed Oct 5, 2014
1 parent b304305 commit 8808f90
Show file tree
Hide file tree
Showing 50 changed files with 280 additions and 241 deletions.
2 changes: 2 additions & 0 deletions Mk/Uses/libtool.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ patch-libtool:
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \
-e '/if.*linkmode.*prog.*mode.*!= relink/s/if.*;/if :;/'\
-e '/if.*prog.*linkmode.*relink !=.*mode/s/if.*;/if :;/'\
-e '/if.*linkmode.*prog.*mode.* = relink/s/||.*;/;/' \
-e '/if.*prog.*linkmode.*relink = .*mode/s/||.*;/;/' \
-e 's/|-p|-pg|/|-B*|-p|-pg|/'

.if ! ${libtool_ARGS:Moldver}
Expand Down
2 changes: 1 addition & 1 deletion archivers/tardy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PORTNAME= tardy
PORTVERSION= 1.28
DISTVERSIONSUFFIX= .D001.orig
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= archivers
MASTER_SITES= SF/tardy/${PORTVERSION}/
DISTNAME= ${PORTNAME}_${PORTVERSION}${DISTVERSIONSUFFIX}
Expand Down
2 changes: 1 addition & 1 deletion audio/libnoise/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= libnoise
DISTVERSION= 1.0.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20sources/${PORTVERSION}
DISTNAME= ${PORTNAME}src-${DISTVERSION}
Expand Down
1 change: 1 addition & 0 deletions audio/libnoise/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ include/noise/vectortable.h
lib/libnoise.a
lib/libnoise.so
lib/libnoise.so.0
lib/libnoise.so.0.0.0
@dirrm include/noise/model
@dirrm include/noise/module
@dirrm include/noise
2 changes: 1 addition & 1 deletion devel/bglibs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= bglibs
PORTVERSION= 1.106
PORTREVISION= 5
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= http://untroubled.org/${PORTNAME}/archive/ \
Expand Down
6 changes: 4 additions & 2 deletions devel/bglibs/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ lib/bglibs/libbg-path.a
lib/bglibs/libbg-str.a
lib/bglibs/libbg-sysdeps.a
lib/bglibs/libbg-sysdeps.so
lib/bglibs/libbg-sysdeps.so.2
lib/bglibs/libbg-sysdeps.so.1
lib/bglibs/libbg-sysdeps.so.1.1.1
lib/bglibs/libbg-unix.a
lib/bglibs/libbg.a
lib/bglibs/libbg.so
lib/bglibs/libbg.so.2
lib/bglibs/libbg.so.1
lib/bglibs/libbg.so.1.1.1
lib/bglibs/libinstaller.a
lib/bglibs/libinstcheck.a
lib/bglibs/libinstshow.a
Expand Down
1 change: 1 addition & 0 deletions devel/cdialog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= cdialog
PORTVERSION= 1.2.20140219
PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= devel
MASTER_SITES= ftp://invisible-island.net/${PORTNAME:S|^c||}/
Expand Down
1 change: 1 addition & 0 deletions devel/cdialog/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ include/cdialog/dlg_keys.h
lib/libcdialog.a
lib/libcdialog.so
lib/libcdialog.so.11
lib/libcdialog.so.11.1.0
man/man1/cdialog.1.gz
man/man3/cdialog.3.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
Expand Down
2 changes: 1 addition & 1 deletion devel/fhist/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PORTNAME= fhist
PORTVERSION= 1.21
DISTVERSIONSUFFIX= .D001
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}

Expand Down
2 changes: 1 addition & 1 deletion devel/libdsp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= libdsp
PORTVERSION= 5.0.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable-src/${PORTVERSION} \
http://mirror.mcx2.org/
Expand Down
3 changes: 2 additions & 1 deletion devel/libdsp/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ include/dsp/dspop.h
include/dsp/dsptypes.h
lib/libdsp.a
lib/libdsp.so
lib/libdsp.so.10
lib/libdsp.so.2
lib/libdsp.so.2.8.1
@dirrm include/dsp
2 changes: 1 addition & 1 deletion devel/libexplain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= libexplain
PORTVERSION= 1.3.${PATCHLEVEL}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION:R}
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
Expand Down
3 changes: 2 additions & 1 deletion devel/libexplain/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ include/libexplain/write.h
include/libexplain/writev.h
lib/libexplain.a
lib/libexplain.so
lib/libexplain.so.55
lib/libexplain.so.51
lib/libexplain.so.51.4.0
libdata/pkgconfig/libexplain.pc
man/man1/explain.1.gz
man/man1/explain_lca2010.1.gz
Expand Down
21 changes: 10 additions & 11 deletions devel/libltdl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
# $FreeBSD$

PORTNAME= libltdl
MASTERDIR= ${.CURDIR}/../../devel/libtool
PORTREVISION= 0

COMMENT= System independent dlopen wrapper

.include "${.CURDIR}/../libtool/Makefile.common"

LICENSE= LGPL21
USE_LDCONFIG= yes
USES= libtool:keepla
CONFIGURE_ARGS= --enable-ltdl-install
LICENSE_FILE= ${WRKSRC}/COPYING.LIB

CONFIGURE_WRKSRC=${WRKSRC}/libltdl
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist
INFO= # empty
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-ltdl-install
INSTALL_TARGET= install-strip
USES+= libtool:keepla # .la file used in ltdl.m4
USE_LDCONFIG= yes
WRKSRC_SUBDIR= libltdl

.include "${MASTERDIR}/Makefile"
.include <bsd.port.mk>
3 changes: 1 addition & 2 deletions devel/libltdl/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ lib/libltdl.a
lib/libltdl.la
lib/libltdl.so
lib/libltdl.so.7
lib/libltdl.so.7.3.0
@dirrm include/libltdl
lib/libltdl.so.7.3.1
5 changes: 3 additions & 2 deletions devel/libmaa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= libmaa
PORTVERSION= 1.3.2
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= SF/dict/${PORTNAME}/${PORTNAME}-${PORTVERSION}
Expand All @@ -27,7 +27,8 @@ DOCS= README doc/libmaa.600dpi.ps
PLIST_FILES= include/maa.h \
lib/libmaa.a \
lib/libmaa.so \
lib/libmaa.so.3
lib/libmaa.so.3 \
lib/libmaa.so.3.0.0
PORTDOCS= ${DOCS:T}

post-install:
Expand Down
40 changes: 17 additions & 23 deletions devel/libtool/Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
# Created by: Motoyuki Kasahara <[email protected]>
# $FreeBSD$

PORTNAME?= libtool
PORTVERSION= 2.4.2
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= libtool
DISTNAME= libtool-${PORTVERSION}
PORTNAME= libtool
PORTREVISION= 0

MAINTAINER= [email protected]
COMMENT?= Generic shared library support script
COMMENT= Generic shared library support script

LICENSE?= GPLv2
.include "${.CURDIR}/../libtool/Makefile.common"

CONFLICTS= libtool-fixed-[0-9]*
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4

USES+= makeinfo
GNU_CONFIGURE= yes
CONFIGURE_ARGS?= --disable-ltdl-install
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
INFO?= libtool
CONFIGURE_ARGS= --disable-ltdl-install
MAKE_ARGS= MAKEINFOFLAGS=--no-split
USES+= makeinfo

post-extract:
@${RM} -f ${WRKSRC}/doc/*.info*
INFO= libtool

post-patch:
@${REINPLACE_CMD} -e 's|sed gsed|sed|g' \
-e 's|CC=cc|CC=${CC}|g' \
${WRKSRC}/configure ${WRKSRC}/libltdl/configure

post-configure:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
@${RM} -f ${WRKSRC}/doc/*.info*
.for f in build-aux/ltmain.sh configure libtoolize.in m4/libtool.m4
@${TOUCH} -mr ${WRKSRC}/${f}.orig ${WRKSRC}/${f}
.endfor

.include <bsd.port.mk>
12 changes: 12 additions & 0 deletions devel/libtool/Makefile.common
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# $FreeBSD$

PORTVERSION= 2.4.2.418
PORTREVISION?= 0 # Leave this zero. Set in Makefile instead.
CATEGORIES= devel
MASTER_SITES= GNU_ALPHA/libtool
DISTNAME= libtool-${PORTVERSION}

MAINTAINER= [email protected]

DISTINFO_FILE= ${.CURDIR}/../libtool/distinfo
USES= tar:xz
4 changes: 2 additions & 2 deletions devel/libtool/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (libtool-2.4.2.tar.gz) = b38de44862a987293cd3d8dfae1c409d514b6c4e794ebc93648febf9afc38918
SIZE (libtool-2.4.2.tar.gz) = 2632347
SHA256 (libtool-2.4.2.418.tar.xz) = 6465c7e6ebb7c9083aa610d510498aadf7be0c6dc5f2f4e57008686879d27d8c
SIZE (libtool-2.4.2.418.tar.xz) = 941808
30 changes: 30 additions & 0 deletions devel/libtool/files/patch-build-aux_ltmain.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
--- build-aux/ltmain.sh.orig 2013-10-26 22:53:58 UTC
+++ build-aux/ltmain.sh
@@ -8598,13 +8598,13 @@ func_mode_link ()
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
- darwin|linux|osf|windows|none)
+ darwin|freebsd-elf|linux|osf|windows|none)
func_arith $number_major + $number_minor
current=$func_arith_result
age=$number_minor
revision=$number_revision
;;
- freebsd-aout|freebsd-elf|qnx|sunos)
+ freebsd-aout|qnx|sunos)
current=$number_major
revision=$number_minor
age=0
@@ -8690,8 +8690,9 @@ func_mode_link ()
;;

freebsd-elf)
- major=.$current
- versuffix=.$current
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=$major.$age.$revision
;;

irix | nonstopux)
42 changes: 42 additions & 0 deletions devel/libtool/files/patch-configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
--- configure.orig 2013-10-26 22:53:35 UTC
+++ configure
@@ -11582,7 +11582,8 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
need_version=no
need_lib_prefix=no
;;
@@ -16739,7 +16740,8 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
need_version=no
need_lib_prefix=no
;;
@@ -19695,7 +19697,8 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
need_version=no
need_lib_prefix=no
;;
@@ -22786,7 +22789,8 @@ freebsd* | dragonfly*)
version_type=freebsd-$objformat
case $version_type in
freebsd-elf*)
- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+ soname_spec='$libname$release$shared_ext$major'
need_version=no
need_lib_prefix=no
;;
23 changes: 0 additions & 23 deletions devel/libtool/files/patch-libltdl-Makefile.in

This file was deleted.

Loading

0 comments on commit 8808f90

Please sign in to comment.