From c4c229578cc9d8da99b84a1781029d67a6a6f83f Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 9 Mar 2013 21:33:00 +0000 Subject: aptitude (0.6.9.1-1+dyson2) unstable; urgency=low * Fixed typo in patch name * Use GNU strerror_r only if _GNU_SOURCE is defined, do not check for Glibc; build depends on libc1-dev >= 2.10-11 --- debian/changelog | 8 ++++++++ debian/control | 1 + debian/patches/0003-include-siagnal.h-for-kill.patch | 20 -------------------- debian/patches/0003-include-signal.h-for-kill.patch | 20 ++++++++++++++++++++ debian/patches/0005-strerror_r.patch | 13 ++++++------- debian/patches/series | 2 +- 6 files changed, 36 insertions(+), 28 deletions(-) delete mode 100644 debian/patches/0003-include-siagnal.h-for-kill.patch create mode 100644 debian/patches/0003-include-signal.h-for-kill.patch diff --git a/debian/changelog b/debian/changelog index 1a6ceda2..1f3a09ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +aptitude (0.6.9.1-1+dyson2) unstable; urgency=low + + * Fixed typo in patch name + * Use GNU strerror_r only if _GNU_SOURCE is defined, + do not check for Glibc; build depends on libc1-dev >= 2.10-11 + + -- Igor Pashev Sat, 09 Mar 2013 21:32:40 +0000 + aptitude (0.6.9.1-1) experimental; urgency=low * Really silence errors when debtags is not installed diff --git a/debian/control b/debian/control index 82ed5f66..b1b01932 100644 --- a/debian/control +++ b/debian/control @@ -11,6 +11,7 @@ Build-Depends: libapt-pkg-dev (>= 0.9.7), debhelper (>= 9), librsvg2-bin, libboost-dev, libboost-serialization-dev, libboost-python-dev, libboost-iostreams-dev, libboost-test-dev, libgtest-dev, google-mock, libsqlite3-dev, dpkg-dev (>= 1.16.1), + libc1-dev ( >= 2.10-11) [illumos-any], pkg-config Vcs-Git: git://git.debian.org/git/aptitude/aptitude.git Vcs-Browser: http://git.debian.org/?p=aptitude/aptitude.git;a=summary diff --git a/debian/patches/0003-include-siagnal.h-for-kill.patch b/debian/patches/0003-include-siagnal.h-for-kill.patch deleted file mode 100644 index bd13e572..00000000 --- a/debian/patches/0003-include-siagnal.h-for-kill.patch +++ /dev/null @@ -1,20 +0,0 @@ -From: Igor Pashev -Date: Sat, 1 Sep 2012 14:47:36 +0000 -Subject: #include for kill() - ---- - src/ui.cc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/ui.cc b/src/ui.cc -index 1f8bfe3..9f91a15 100644 ---- a/src/ui.cc -+++ b/src/ui.cc -@@ -36,6 +36,7 @@ - #include - #include - -+#include - #include - #include - #include diff --git a/debian/patches/0003-include-signal.h-for-kill.patch b/debian/patches/0003-include-signal.h-for-kill.patch new file mode 100644 index 00000000..bd13e572 --- /dev/null +++ b/debian/patches/0003-include-signal.h-for-kill.patch @@ -0,0 +1,20 @@ +From: Igor Pashev +Date: Sat, 1 Sep 2012 14:47:36 +0000 +Subject: #include for kill() + +--- + src/ui.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/ui.cc b/src/ui.cc +index 1f8bfe3..9f91a15 100644 +--- a/src/ui.cc ++++ b/src/ui.cc +@@ -36,6 +36,7 @@ + #include + #include + ++#include + #include + #include + #include diff --git a/debian/patches/0005-strerror_r.patch b/debian/patches/0005-strerror_r.patch index 8a6ce20c..0aba0d4c 100644 --- a/debian/patches/0005-strerror_r.patch +++ b/debian/patches/0005-strerror_r.patch @@ -6,17 +6,16 @@ Subject: strerror_r() src/generic/util/util.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -diff --git a/src/generic/util/util.cc b/src/generic/util/util.cc -index 065d533..eea90a4 100644 ---- a/src/generic/util/util.cc -+++ b/src/generic/util/util.cc -@@ -208,10 +208,15 @@ string sstrerror(int errnum) +Index: aptitude/src/generic/util/util.cc +=================================================================== +--- aptitude.orig/src/generic/util/util.cc 2013-03-09 18:28:30.615140195 +0000 ++++ aptitude/src/generic/util/util.cc 2013-03-09 18:35:31.188026320 +0000 +@@ -208,10 +208,14 @@ while(bufsize < 512 * 512) { char *buf = new char[bufsize]; - -+// http://stackoverflow.com/questions/4266354/how-to-tell-if-glibc-is-used -+#if defined(__GLIBC__) && defined(_GNU_SOURCE) ++#if defined(_GNU_SOURCE) char *result = strerror_r(errnum, buf, bufsize); - - if(result == NULL) diff --git a/debian/patches/series b/debian/patches/series index c8d8af6d..a39fb171 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,5 @@ 0001-include-termios.h-for-TIOCGWINSZ.patch 0002-control-reaches-end-of-non-void-function.patch -0003-include-siagnal.h-for-kill.patch +0003-include-signal.h-for-kill.patch 0004-Invalid-Valid-Until-entry-in-Release-file.patch 0005-strerror_r.patch -- cgit v1.2.3