Apply git-merge-changelog packaging patches from Samuel Bronson
authorIan Beckwith <ianb@erislabs.net>
Sat, 1 Mar 2014 21:07:46 +0000 (21:07 +0000)
committerIan Beckwith <ianb@erislabs.net>
Sat, 1 Mar 2014 21:07:46 +0000 (21:07 +0000)
debian/changelog
debian/compat
debian/control
debian/patches/01-gnulib-directory.patch
debian/rules
gnulib-tool

index adf034f..674b3b4 100644 (file)
@@ -1,3 +1,14 @@
+gnulib (20140202+stable-2) unstable; urgency=low
+
+  * Don't hardcode gnulib directory in 01-gnulib-directory.patch.
+    Instead, install gnulib-tool into the gnulib directory and symlink to
+    it from /usr/bin, like the docs say to do.
+  * Package git-merge-changelog (Closes: #646013).
+  * Override for lintian getting confused by example GFDL blurbs.
+  * Bump debhelper compat level to 9 for hardening flags.
+
+ -- Samuel Bronson <naesten@gmail.com>  Wed, 06 Nov 2013 21:41:19 -0500
+
 gnulib (20140202+stable-1) unstable; urgency=low
 
   * New upstream stable snapshot.
index 7f8f011..ec63514 100644 (file)
@@ -1 +1 @@
-7
+9
index baa6ff3..0eecc35 100644 (file)
@@ -2,7 +2,8 @@ Source: gnulib
 Section: devel
 Priority: optional
 Maintainer: Ian Beckwith <ianb@debian.org>
-Build-Depends: debhelper (>= 7.0.50~), texinfo
+Build-Depends: dpkg-dev (>= 1.16.2), debhelper (>= 9), autoconf, automake
+Build-Depends-Indep: texinfo
 Standards-Version: 3.9.5
 Homepage: http://www.gnu.org/software/gnulib/
 Vcs-Browser: http://erislabs.net/gitweb?p=gnulib.git
@@ -16,3 +17,14 @@ Description: GNU Portability Library
  The GNU portability library is a macro system and C declarations and
  definitions for commonly-used API elements and abstracted system behaviors. It
  can be used to improve portability and other functionality in your programs.
+
+Package: git-merge-changelog
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: git merge driver for GNU ChangeLog files
+ ChangeLog files *always* foul up most version control systems in
+ their default configuration.
+ .
+ git-merge-changelog is a tool from gnulib designed to help with this
+ for the case of GNU-style ChangeLogs; it can be used with at least
+ git, bzr, and hg.
index 57ebbf7..b9bd608 100644 (file)
@@ -22,12 +22,3 @@ Index: gnulib/gnulib-tool
  Copyright (C) $year Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  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
--  gnulib_dir=`echo "$self_abspathname" | sed -e 's,/[^/]*$,,'`
-+  gnulib_dir=/usr/share/gnulib
- }
- # func_tmpdir
index 5e8c258..1dec219 100755 (executable)
@@ -1,22 +1,34 @@
 #!/usr/bin/make -f
 
 %:
-       dh ${@}
+       dh ${@} --sourcedirectory=utils
 
 override_dh_auto_clean:
        $(MAKE) -C doc clean
+       rm -rf utils/*
+       dh_auto_clean
 
-override_dh_auto_build:
+override_dh_auto_configure-arch:
+       ./gnulib-tool --create-testdir --without-tests -S \
+               --dir=utils git-merge-changelog
+       dh_auto_configure
+
+override_dh_auto_install-arch:
+       dh_auto_install --destdir=debian/git-merge-changelog
+
+override_dh_auto_build-indep:
        $(MAKE) -C doc info
        $(MAKE) -C doc html
 
-override_dh_auto_install:
+override_dh_auto_install-indep:
        mkdir -p debian/gnulib/usr/bin
-       cp -a check-module gnulib-tool debian/gnulib/usr/bin
+       cp -a check-module debian/gnulib/usr/bin
 
        mkdir -p debian/gnulib/usr/share/gnulib
        cp -a build-aux posix-modules config doc lib m4 modules top tests \
-              MODULES.html.sh Makefile debian/gnulib/usr/share/gnulib
+             MODULES.html.sh Makefile gnulib-tool \
+             debian/gnulib/usr/share/gnulib
+       ln -s ../share/gnulib/gnulib-tool debian/gnulib/usr/bin
 
        # Fixing permissions
        chmod 0755 debian/gnulib/usr/share/gnulib/build-aux/config.guess
index 13aac1a..592f1bf 100755 (executable)
@@ -454,7 +454,7 @@ func_gnulib_dir ()
       * ) self_abspathname=`echo "$self_abspathname" | sed -e 's,/[^/]*$,,'`/"$linkval" ;;
     esac
   done
-  gnulib_dir=/usr/share/gnulib
+  gnulib_dir=`echo "$self_abspathname" | sed -e 's,/[^/]*$,,'`
 }
 
 # func_tmpdir