aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtirpc/soname-suffix.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-02 19:00:15 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-02 22:23:13 +0000
commit6f62ddbfe7ccdfc3b0ba83e793bfd195b024f460 (patch)
tree602d06cdd9c93ac6a9879b851402ff980285e1ef /main/libtirpc/soname-suffix.patch
parentb7a4209c1a1f789562a8a9c989155cd8842ba34e (diff)
downloadaports-6f62ddbfe7ccdfc3b0ba83e793bfd195b024f460.tar.gz
aports-6f62ddbfe7ccdfc3b0ba83e793bfd195b024f460.tar.bz2
aports-6f62ddbfe7ccdfc3b0ba83e793bfd195b024f460.tar.xz
main/libtirpc: upgrade to 1.3.1
Diffstat (limited to 'main/libtirpc/soname-suffix.patch')
-rw-r--r--main/libtirpc/soname-suffix.patch69
1 files changed, 38 insertions, 31 deletions
diff --git a/main/libtirpc/soname-suffix.patch b/main/libtirpc/soname-suffix.patch
index 4941bab172..1e07ed442c 100644
--- a/main/libtirpc/soname-suffix.patch
+++ b/main/libtirpc/soname-suffix.patch
@@ -1,9 +1,23 @@
-Allow to append a suffix to the library name via configuration
-variable SONAME_SUFFIX.
+Allow appending a suffix with SONAME_SUFFIX=
+diff --git a/Makefile.am b/Makefile.am
+index 3f60637..252568b 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -46,7 +46,7 @@ nobase_include_HEADERS += \
+ endif
+
+ pkgconfigdir=$(libdir)/pkgconfig
+-pkgconfig_DATA = libtirpc.pc
++pkgconfig_DATA = libtirpc@SONAME_SUFFIX@.pc
+
+ CLEANFILES = cscope.* *~
+ DISTCLEANFILES = Makefile.in libtirpc*.tar.gz
+diff --git a/configure.ac b/configure.ac
+index 8065881..c1a2a97 100644
--- a/configure.ac
+++ b/configure.ac
-@@ -74,6 +74,8 @@
+@@ -74,6 +74,8 @@ AC_ARG_ENABLE(symvers,
[],[enable_symvers=yes])
AM_CONDITIONAL(SYMVERS, test "x$enable_symvers" = xyes)
@@ -12,7 +26,7 @@ variable SONAME_SUFFIX.
AC_CANONICAL_BUILD
# Check for which host we are on and setup a few things
# specifically based on the host
-@@ -98,6 +100,7 @@
+@@ -98,6 +100,7 @@ AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent])
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
@@ -21,20 +35,28 @@ variable SONAME_SUFFIX.
+AC_OUTPUT
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -46,7 +46,7 @@
- endif
-
- pkgconfigdir=$(libdir)/pkgconfig
--pkgconfig_DATA = libtirpc.pc
-+pkgconfig_DATA = libtirpc@SONAME_SUFFIX@.pc
+diff --git a/libtirpc.pc.in b/libtirpc.pc.in
+index d2c7878..090b3fa 100644
+--- a/libtirpc.pc.in
++++ b/libtirpc.pc.in
+@@ -3,10 +3,10 @@ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
- CLEANFILES = cscope.* *~
- DISTCLEANFILES = Makefile.in libtirpc*.tar.gz
+-Name: libtirpc
++Name: libtirpc@SONAME_SUFFIX@
+ Description: Transport Independent RPC Library
+ Requires:
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -ltirpc
++Libs: -L${libdir} -ltirpc@SONAME_SUFFIX@
+ Libs.private: -lpthread
+ Cflags: -I${includedir}/tirpc
+diff --git a/src/Makefile.am b/src/Makefile.am
+index b2d5436..7280403 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
-@@ -10,12 +10,12 @@
+@@ -10,12 +10,12 @@ noinst_HEADERS = rpc_com.h debug.h
AM_CPPFLAGS = -I$(top_srcdir)/tirpc -include config.h -DPORTMAP -DINET6 \
-D_GNU_SOURCE -Wall -pipe
@@ -51,7 +73,7 @@ variable SONAME_SUFFIX.
binddynport.c bindresvport.c \
clnt_bcast.c clnt_dg.c clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \
clnt_vc.c rpc_dtablesize.c getnetconfig.c getnetpath.c getrpcent.c \
-@@ -27,26 +27,26 @@
+@@ -27,26 +27,26 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c \
auth_time.c debug.c
if AUTHDES
@@ -86,18 +108,3 @@ variable SONAME_SUFFIX.
CLEANFILES = cscope.* *~
DISTCLEANFILES = Makefile.in
---- a/libtirpc.pc.in
-+++ b/libtirpc.pc.in
-@@ -3,10 +3,10 @@
- libdir=@libdir@
- includedir=@includedir@
-
--Name: libtirpc
-+Name: libtirpc@SONAME_SUFFIX@
- Description: Transport Independent RPC Library
- Requires:
- Version: @PACKAGE_VERSION@
--Libs: -L@libdir@ -ltirpc
-+Libs: -L@libdir@ -ltirpc@SONAME_SUFFIX@
- Libs.private: -lpthread
- Cflags: -I@includedir@/tirpc