Package: libpaper
Version: 1.1.24+nmu2
Severity: normal
Tags: patch
User: debian-...@lists.debian.org
Usertags: arm64

The code in debian/rules that's apparently supposed to update
config.guess and config.sub doesn't work properly, because it fails if
those files already exist.  You can see this by looking in a build log:

  ln -s /usr/share/misc/config.sub . || true
  ln: failed to create symbolic link `./config.sub': File exists
  ln -s /usr/share/misc/config.guess . || true
  ln: failed to create symbolic link `./config.guess': File exists

As a result, the current libpaper package is unbuildable on arm64, which
is newer than the config.guess/config.sub shipped in the source package.
The following trivial patch would ease porting.  (A less minimal version
would, and IMO nowadays should, involve switching from this hand-rolled
code to dh-autoreconf; but that would probably involve fixing #496126
too.)

  * Fix get_misc_file rule so that config.guess and config.sub are actually
    updated.

diff -Nru libpaper-1.1.24+nmu2ubuntu1/debian/rules 
libpaper-1.1.24+nmu2ubuntu2/debian/rules
--- libpaper-1.1.24+nmu2ubuntu1/debian/rules    2012-11-22 12:18:47.000000000 
+0000
+++ libpaper-1.1.24+nmu2ubuntu2/debian/rules    2013-02-12 01:04:19.000000000 
+0000
@@ -37,7 +37,7 @@
 version        := $(shell dpkg-parsechangelog | \
                        sed -ne 's/^Version: *\([0-9]\+:\)*//p')
 
-get_misc_file          = ln -s /usr/share/misc/$(1) . || true
+get_misc_file          = ln -sf /usr/share/misc/$(1) . || true
 update_config_sub       := $(call get_misc_file,config.sub)
 update_config_guess     := $(call get_misc_file,config.guess)
 

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to