X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=debian%2Fpatches%2F01-gnulib-directory.patch;h=57ebbf77e8bab13c8609f5f1901931550a7d5413;hb=e1c466d11a91615c413789ea8bc3ec358f2c6aa9;hp=4370c54b70f01002f172277fec4c35431e30627c;hpb=90735e334e89048c011e5f01eca366f1118bb640;p=gnulib.git diff --git a/debian/patches/01-gnulib-directory.patch b/debian/patches/01-gnulib-directory.patch index 4370c54b7..57ebbf77e 100644 --- a/debian/patches/01-gnulib-directory.patch +++ b/debian/patches/01-gnulib-directory.patch @@ -3,9 +3,26 @@ Description: Sets the gnulib directory. Index: gnulib/gnulib-tool =================================================================== ---- gnulib.orig/gnulib-tool 2010-04-19 18:32:48.000000000 +0100 -+++ gnulib/gnulib-tool 2010-04-19 18:32:57.000000000 +0100 -@@ -410,7 +410,7 @@ +--- gnulib.orig/gnulib-tool 2014-02-03 00:56:56.000000000 +0000 ++++ gnulib/gnulib-tool 2014-02-03 00:57:02.000000000 +0000 +@@ -323,12 +323,13 @@ + version=' '`cd "$gnulib_dir" && ./build-aux/git-version-gen /dev/null | sed -e 's/-dirty/-modified/'` + else + # gnulib copy without versioning information. +- date=`sed -e 's/ .*//;q' "$gnulib_dir"/ChangeLog` +- version= ++ date=`zcat /usr/share/doc/gnulib/changelog.gz | sed -e 's/ .*//;q'` ++ version=`zcat /usr/share/doc/gnulib/NEWS.stable.gz | grep -o -m 1 ' [0-9]\+-stable'` ++ debversion=`dpkg-query --show --showformat '${Version}' gnulib` + fi + year=`"$gnulib_dir"/build-aux/mdate-sh "$self_abspathname" | sed -e 's,^.* ,,'` + echo "\ +-gnulib-tool (GNU $package $date)$version ++gnulib-tool (GNU $package $date)$version Debian: $debversion + Copyright (C) $year Free Software Foundation, Inc. + License GPLv3+: GNU GPL version 3 or later + This is free software: you are free to change and redistribute it. +@@ -453,7 +454,7 @@ * ) self_abspathname=`echo "$self_abspathname" | sed -e 's,/[^/]*$,,'`/"$linkval" ;; esac done