pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/postfix postfix: use pkgconfig instead of icu-con...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7324600249e3
branches:  trunk
changeset: 354468:7324600249e3
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Oct 31 04:19:07 2016 +0000

description:
postfix: use pkgconfig instead of icu-config to find icu cflags
and ldflags. should help PR pkg/51354: mail/postfix eai option does not
work because of test in makedef.

bump PKGREVISION

diffstat:

 mail/postfix/Makefile.common  |   3 ++-
 mail/postfix/distinfo         |   4 ++--
 mail/postfix/patches/patch-ai |  27 +++++++++++++++++++--------
 3 files changed, 23 insertions(+), 11 deletions(-)

diffs (110 lines):

diff -r 4cfe60d7840c -r 7324600249e3 mail/postfix/Makefile.common
--- a/mail/postfix/Makefile.common      Mon Oct 31 04:10:38 2016 +0000
+++ b/mail/postfix/Makefile.common      Mon Oct 31 04:19:07 2016 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile.common,v 1.5 2016/10/28 16:10:51 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.6 2016/10/31 04:19:07 maya Exp $
 # used by mail/postfix/Makefile
 # used by mail/postfix/Makefile.module
 
 DISTNAME=      postfix-3.1.3
+PKGREVISION=   1
 CATEGORIES=    mail
 MASTER_SITES=  ftp://ftp.porcupine.org/mirrors/postfix-release/official/
 MASTER_SITES+= http://postfix.it-austria.net/releases/official/
diff -r 4cfe60d7840c -r 7324600249e3 mail/postfix/distinfo
--- a/mail/postfix/distinfo     Mon Oct 31 04:10:38 2016 +0000
+++ b/mail/postfix/distinfo     Mon Oct 31 04:19:07 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.165 2016/10/09 12:28:19 taca Exp $
+$NetBSD: distinfo,v 1.166 2016/10/31 04:19:07 maya Exp $
 
 SHA1 (postfix-3.1.3.tar.gz) = 0c1d57a929c66fe57e6cd9d25bb7d05fc72363d0
 RMD160 (postfix-3.1.3.tar.gz) = d974c821d39ff273bafeba06e69aca57cb56d374
@@ -6,5 +6,5 @@
 Size (postfix-3.1.3.tar.gz) = 4338730 bytes
 SHA1 (patch-aa) = f2c418a2fd34da7325ea2823ddd14043768f0111
 SHA1 (patch-ag) = e3d818cd75225c5b50960659827c6e27767cbd58
-SHA1 (patch-ai) = 17b29cceadba3055ae198e1802a786468ecc9eff
+SHA1 (patch-ai) = c5b9e395586e03ede5e4d6e7763f1d18a725fc08
 SHA1 (patch-src_dns_dns__lookup.c) = b04d35b1df1b60409c903d2fb5bafb16b848523d
diff -r 4cfe60d7840c -r 7324600249e3 mail/postfix/patches/patch-ai
--- a/mail/postfix/patches/patch-ai     Mon Oct 31 04:10:38 2016 +0000
+++ b/mail/postfix/patches/patch-ai     Mon Oct 31 04:19:07 2016 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-ai,v 1.35 2016/03/23 12:55:18 gdt Exp $
+$NetBSD: patch-ai,v 1.36 2016/10/31 04:19:07 maya Exp $
 
 1) Add shlib definitions for NetBSD 5; the build system must be
 hard-coded per OS per version.  Not yet reported upstream.
 
 2) Make this pkgsrc friendly.
 
---- makedefs.orig      2015-07-19 14:24:25.000000000 +0000
+--- makedefs.orig      2016-08-20 00:08:42.000000000 +0000
 +++ makedefs
-@@ -292,6 +292,12 @@ case "$SYSTEM.$RELEASE" in
+@@ -309,6 +309,12 @@ case "$SYSTEM.$RELEASE" in
     NetBSD.4*) SYSTYPE=NETBSD4
                ;;
     NetBSD.5*) SYSTYPE=NETBSD5
@@ -20,7 +20,7 @@
                ;;
     NetBSD.6*) SYSTYPE=NETBSD6
                : ${SHLIB_SUFFIX=.so}
-@@ -372,13 +378,6 @@ case "$SYSTEM.$RELEASE" in
+@@ -389,13 +395,6 @@ case "$SYSTEM.$RELEASE" in
                esac
                ;;
     ULTRIX.4*) SYSTYPE=ULTRIX4
@@ -34,7 +34,7 @@
                for l in syslog resolv; do
                    if [ -f /usr/local/lib/lib$l.a ]; then
                        SYSLIBS="$SYSLIBS -l$l"
-@@ -416,33 +415,8 @@ case "$SYSTEM.$RELEASE" in
+@@ -437,33 +436,8 @@ case "$SYSTEM.$RELEASE" in
                esac;;
                # Tested with RedHat 3.03 on 20020729.
      Linux.1*) SYSTYPE=LINUX1
@@ -68,7 +68,7 @@
                for name in nsl resolv $GDBM_LIBS
                do
                    for lib in /usr/lib64 /lib64 /usr/lib /lib
-@@ -503,25 +477,6 @@ EOF
+@@ -524,25 +498,6 @@ EOF
                : ${PLUGIN_LD="${CC-gcc} -shared"}
                ;;
    Linux.[34].*)       SYSTYPE=LINUX$RELEASE_MAJOR
@@ -94,7 +94,7 @@
                for name in nsl resolv
                do
                    for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/*
-@@ -542,24 +497,6 @@ EOF
+@@ -563,24 +518,6 @@ EOF
                ;;
       GNU.0*|GNU/kFreeBSD.[567]*)
                SYSTYPE=GNU0
@@ -119,7 +119,7 @@
                for name in nsl resolv
                do
                    for lib in /usr/lib64 /lib64 /usr/lib /lib
-@@ -590,25 +527,13 @@ EOF
+@@ -611,25 +548,13 @@ EOF
  HP-UX.A.09.*) SYSTYPE=HPUX9
                SYSLIBS=-ldbm
                CCARGS="$CCARGS -DMISSING_USLEEP"
@@ -145,3 +145,14 @@
                ;;
  ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543
                RANLIB=echo
+@@ -757,8 +682,8 @@ esac
+ #
+ case "$CCARGS" in
+ *-DNO_EAI*) ;;
+-       *) icu_cppflags=`(icu-config --cppflags) 2>/dev/null` && {
+-              icu_ldflags=`(icu-config --ldflags) 2>/dev/null` && {
++       *) icu_cppflags=`(pkg-config --cflags icu-i18n) 2>/dev/null` && {
++              icu_ldflags=`(pkg-config --libs icu-i18n) 2>/dev/null` && {
+                   trap 'rm -f makedefs.test makedefs.test.[co]' 1 2 3 15
+                   cat >makedefs.test.c <<'EOF'
+ #include <unicode/uidna.h>



Home | Main Index | Thread Index | Old Index