]> git.pld-linux.org Git - packages/dante.git/commitdiff
- updated to 1.4.2 auto/th/dante-1.4.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 16 Apr 2017 10:15:48 +0000 (12:15 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 16 Apr 2017 10:15:48 +0000 (12:15 +0200)
- updated build patch
- removed obsolete format patch
- added cpp patch (fix compatibility with recent gcc preprocessors)

dante-build.patch
dante-cpp.patch [new file with mode: 0644]
dante-format.patch [deleted file]
dante.spec

index 41db72bd47d50d7b55cca3e42e9ac9b0738fe025..db199d38603396357384b28463432975d40c596f 100644 (file)
@@ -1,32 +1,23 @@
---- dante-1.4.1/compiler.m4~   2014-08-02 22:05:19.000000000 +0200
-+++ dante-1.4.1/compiler.m4    2014-10-24 22:16:03.014015699 +0200
-@@ -368,29 +368,6 @@
-       esac
-     fi
-     CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=1"
--else
--    #autoconf_compflags is set to "-g -O2" with GCC
--    #override CFLAGS when running configure to avoid this
--    CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=0"
+--- dante-1.4.2/compiler.m4.orig       2017-04-16 09:24:45.152661908 +0200
++++ dante-1.4.2/compiler.m4    2017-04-16 09:27:39.452659919 +0200
+@@ -437,7 +437,6 @@
+     #autoconf_compflags is set to "-g -O2" with GCC
+     #override CFLAGS when running configure to avoid this
+     CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=0"
 -    CFLAGS="$CFLAGS${CFLAGS:+ }$autoconf_compflags"
--
--    case $COMPTYPE in
--      gcc)
--          if test x"$aixldbug" != x; then
--              #disable debug info
--              if echo $CFLAGS | grep -- "-g" >/dev/null; then
--                  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
--              fi
--              CFLAGS="$CFLAGS${CFLAGS:+ }-g0"
+     case $COMPTYPE in
+       gcc)
+@@ -447,12 +446,6 @@
+                   CFLAGS="`echo $CFLAGS | sed -e 's/-g //g'`"
+               fi
+               CFLAGS="$CFLAGS${CFLAGS:+ }-g0"
 -          else
 -              #use -ggdb also when not debugging
--              if echo $CFLAGS | grep -- "-g" >/dev/null; then
--                  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
+-              if echo $CFLAGS | grep -- "-g " >/dev/null; then
+-                  CFLAGS="`echo $CFLAGS | sed -e 's/-g //g'`"
 -              fi
 -              CFLAGS="$CFLAGS${CFLAGS:+ }-ggdb"
--          fi
--          ;;
--    esac
- fi
- #check whether to compilation warnings
+           fi
+           ;;
+     esac
diff --git a/dante-cpp.patch b/dante-cpp.patch
new file mode 100644 (file)
index 0000000..e10c22b
--- /dev/null
@@ -0,0 +1,45 @@
+--- dante-1.4.2/acinclude.m4.orig      2017-01-23 20:28:08.000000000 +0100
++++ dante-1.4.2/acinclude.m4   2017-04-16 11:08:02.385924479 +0200
+@@ -1106,6 +1106,8 @@
+ dnl test function that tries to determine if a specified errno error exists
+ m4_define([checkerrno],
+  [AC_MSG_CHECKING(for errno symbol $3)
++  CPPFLAGS_save="$CPPFLAGS"
++  CPPFLAGS="$CPPFLAGS -P"
+   AC_PREPROC_IFELSE(
+        [AC_LANG_PROGRAM([[#include <errno.h>]],
+                         [[
+@@ -1117,7 +1119,9 @@
+        [AC_MSG_RESULT([OK])
+         $1="$$1 $3"
+         cat conftest.i | grep errnoval: >>$2],
+-       [AC_MSG_RESULT([no])])])
++       [AC_MSG_RESULT([no])])
++  CPPFLAGS="$CPPFLAGS_save"
++])
+ AC_DEFUN([L_CHECKERRNO],
+  [checkerrno($@)])
+@@ -1127,8 +1131,11 @@
+ dnl test function that tries to determine if a specified errno error exists
+ m4_define([checkgaierror],
+  [AC_MSG_CHECKING(for getaddrinfo() error $3)
++  CPPFLAGS_save="$CPPFLAGS"
++  CPPFLAGS="$CPPFLAGS -P"
+   AC_PREPROC_IFELSE(
+        [AC_LANG_PROGRAM([[
++//#define _GNU_SOURCE 1
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netdb.h>]],
+@@ -1142,7 +1149,9 @@
+         $1="$$1 $3"
+         AC_DEFINE(HAVE_ERR_$3, 1, [$3 gai error found])
+         cat conftest.i | grep gaierrval: >>$2],
+-       [AC_MSG_RESULT([no])])])
++       [AC_MSG_RESULT([no])])
++  CPPFLAGS="$CPPFLAGS_save"
++])
+ AC_DEFUN([L_CHECKGAIERROR],
+  [checkgaierror($@)])
diff --git a/dante-format.patch b/dante-format.patch
deleted file mode 100644 (file)
index b41f744..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---- dante-1.4.1/lib/upnp.c.orig        2014-08-21 18:21:50.000000000 +0200
-+++ dante-1.4.1/lib/upnp.c     2014-10-25 18:12:07.582908742 +0200
-@@ -828,7 +828,7 @@
- {
-    const char *function = "sighandler()";
--   slog(LOG_DEBUG, function);
-+   slog(LOG_DEBUG, "%s", function);
-    upnpcleanup(-1);
-    /* reinstall original signal handler. */
-@@ -936,7 +936,7 @@
- {
-    const char *function = "atexit_upnpcleanup()";
--   slog(LOG_DEBUG, function);
-+   slog(LOG_DEBUG, "%s", function);
-    upnpcleanup(-1);
- }
- #endif /* SOCKS_CLIENT */
index 98eeb13759fa8594765b8b7b0a38166695e32548..4cf24bde08e5a9bba9cdb9f852c7792abe130a69 100644 (file)
@@ -1,5 +1,4 @@
-# TODO:
-# - examine ldap and sasl support (deps are pulled into *.la, no direct linking anywhere?)
+# NOTE: ldap and sasl seems stub in this (free only?) version
 #
 # Conditional build:
 %bcond_without upnp    # UPnP support (via miniupnp)
@@ -7,22 +6,23 @@
 Summary:       A free Socks v4/v5 client implementation
 Summary(pl.UTF-8):     Darmowa implementacja klienta Socks v4/5
 Name:          dante
-Version:       1.4.1
+Version:       1.4.2
 Release:       1
 License:       BSD-like
 Group:         Networking/Daemons
-Source0:       ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
-# Source0-md5: 68c2ce12119e12cea11a90c7a80efa8f
+#Source0Download: http://www.inet.no/dante/download.html
+Source0:       http://www.inet.no/dante/files/%{name}-%{version}.tar.gz
+# Source0-md5: 29c2931339655da51576c4d2b7bf16f3
 Source1:       sockd.init
 Patch0:                %{name}-am.patch
 Patch1:                %{name}-build.patch
-Patch2:                %{name}-format.patch
+Patch2:                %{name}-cpp.patch
 URL:           http://www.inet.no/dante/
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake
 BuildRequires: cyrus-sasl-devel
 BuildRequires: heimdal-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
 BuildRequires: libwrap-devel
 %{?with_upnp:BuildRequires:    miniupnpc-devel >= 1.6}
 BuildRequires: openldap-devel
@@ -71,10 +71,8 @@ Summary:     Development files for socks library
 Summary(pl.UTF-8):     Pliki programistyczne biblioteki socks
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
-Requires:      cyrus-sasl-devel
 Requires:      heimdal-devel
 %{?with_upnp:Requires: miniupnpc-devel >= 1.6}
-Requires:      openldap-devel
 Requires:      pam-devel
 
 %description devel
This page took 0.104655 seconds and 4 git commands to generate.