Package: byacc
Version: 20121003-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: arm64

byacc's use of dh-autoreconf isn't quite enough to update config.guess
and config.sub, because autoreconf only updates config.guess and
config.sub in certain circumstances which don't hold here.  The
following patch fixes this, while still preserving the property that the
changes are reverted by dh_autoreconf_clean; this is a pattern I've used
successfully in other packages.

  * Update config.guess and config.sub at build time; this was not done
    automatically by dh_autoreconf because this package does not use
    Libtool.

diff -Nru byacc-20121003/debian/rules byacc-20121003/debian/rules
--- byacc-20121003/debian/rules 2013-02-14 02:09:40.000000000 +0000
+++ byacc-20121003/debian/rules 2013-10-12 02:40:26.000000000 +0100
@@ -16,11 +16,17 @@
 endif
 
 
+# This package does not use Libtool, so special care is needed to update
+# config.guess and config.sub.
+autoreconf:
+       autoreconf -f -i
+       cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub ./
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
 
-       dh_autoreconf
+       dh_autoreconf debian/rules -- autoreconf
        dh_auto_configure -- $(shell dpkg-buildflags --export=configure) \
                --program-transform-name='s,^,b,'
 

Thanks,

-- 
Colin Watson                                       [[email protected]]


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to