From: Sebastian Harl Date: Sat, 6 Jun 2009 13:57:00 +0000 (+0200) Subject: patches: Added static_sstrerror.dpatch. X-Git-Tag: liboping-1.3.1-1~24 X-Git-Url: https://git.tokkee.org/?p=pkg-liboping.git;a=commitdiff_plain;h=18d9594f85b2513b78bcd3a8eb821aab88c17a6f patches: Added static_sstrerror.dpatch. This is an upstream patch to make a private function in liboping static. Build-depend on and use dpatch. --- diff --git a/debian/changelog b/debian/changelog index 0f73e6f..74b3365 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,12 +6,17 @@ liboping (1.1.2-1) unstable; urgency=low - Do not ignore 'make clean' errors. - Use config.{guess,sub} provided by autotools-dev to fix a FTBFS on avr32, thanks to Bradley Smith for reporting this (Closes: #529460). + - Use dpatch. * debian/control: - Use ${binary:Version} instead of ${Source-Version}. - Updated Standards-Version to 3.8.1. - Added Homepage and Vcs-{Git,Browser} fields. + - Build-depend on dpatch. + * debian/patches/: + - Added static_sstrerror.dpatch - upstream patch to make a private + function in liboping static. - -- Sebastian Harl Sat, 06 Jun 2009 15:43:49 +0200 + -- Sebastian Harl Sat, 06 Jun 2009 15:56:40 +0200 liboping (0.3.5-1) unstable; urgency=low diff --git a/debian/control b/debian/control index c10e1ef..2404289 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: liboping Section: libs Priority: optional Maintainer: Sebastian Harl -Build-Depends: debhelper (>= 4.0.0), autotools-dev +Build-Depends: debhelper (>= 4.0.0), autotools-dev, dpatch Standards-Version: 3.8.1 Homepage: http://verplant.org/liboping/ Vcs-Git: git://git.tokkee.org/pkg-liboping.git diff --git a/debian/patches/00list b/debian/patches/00list new file mode 100644 index 0000000..febb817 --- /dev/null +++ b/debian/patches/00list @@ -0,0 +1,2 @@ +static_sstrerror.dpatch + diff --git a/debian/patches/static_sstrerror.dpatch b/debian/patches/static_sstrerror.dpatch new file mode 100755 index 0000000..564102c --- /dev/null +++ b/debian/patches/static_sstrerror.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## static_sstrerror.dpatch by Sebastian Harl +## +## DP: src/liboping.c: Made sstrerror() static. +## DP: +## DP: This is a private helper function only. + +@DPATCH@ + +diff a/src/liboping.c b/src/liboping.c +--- a/src/liboping.c ++++ b/src/liboping.c +@@ -145,7 +145,7 @@ struct pingobj + /* Even though Posix requires "strerror_r" to return an "int", + * some systems (e.g. the GNU libc) return a "char *" _and_ + * ignore the second argument ... -tokkee */ +-char *sstrerror (int errnum, char *buf, size_t buflen) ++static char *sstrerror (int errnum, char *buf, size_t buflen) + { + buf[0] = 0; + diff --git a/debian/rules b/debian/rules index 43ed9fc..9fe0725 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,9 @@ else CFLAGS += -O2 endif -config.status: configure +include /usr/share/dpatch/dpatch.make + +config.status: configure $(DPATCH_STAMPFN) dh_testdir for file in config.guess config.sub; do \ @@ -40,7 +42,7 @@ build-stamp: config.status touch build-stamp -clean: +clean: unpatch dh_testdir dh_testroot rm -f build-stamp