Bug#860275: msp430mcu: invalid paths returned from /usr/bin/msp430mcu-config
Chris Lamb
lamby at debian.org
Thu Apr 13 21:13:00 UTC 2017
Source: msp430mcu
Version: 20120406-2
Severity: important
Tags: patch
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that msp430mcu-config has invalid configuration paths based on the
build path, eg:
│ │ │ │ --prefix)
│ │ │ │ - echo /build/1st/msp430mcu-20120406/debian/msp430mcu/usr
│ │ │ │ + echo /build/msp430mcu-20120406/2nd/debian/msp430mcu/usr
│ │ │ │ ;;
│ │ │ │ --scriptpath)
│ │ │ │ - echo /build/1st/msp430mcu-20120406/debian/msp430mcu/usr/msp430/lib/ldscripts
│ │ │ │ + echo /build/msp430mcu-20120406/2nd/debian/msp430mcu/usr/msp430/lib/ldscripts
│ │ │ │ ;;
│ │ │ │ --incpath)
│ │ │ │ - echo /build/1st/msp430mcu-20120406/debian/msp430mcu/usr/msp430/include
│ │ │ │ + echo /build/msp430mcu-20120406/2nd/debian/msp430m
Patch attached. There's probably a cleaner overall solution but I'll
leave that with you. :)
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2017-04-13 21:55:46.082806261 +0100
--- b/debian/rules 2017-04-13 22:08:43.858311603 +0100
@@ -2,7 +2,8 @@
# Package name, source dir and target installation dir.
PACKAGE=msp430mcu
-DESTDIR=$(CURDIR)/debian/$(PACKAGE)/usr
+TARGET=$(CURDIR)/debian/$(PACKAGE)
+DESTDIR=$(TARGET)/usr
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
@@ -28,6 +29,7 @@
dh_installdirs
MSP430MCU_ROOT=$(CURDIR) scripts/install.sh $(DESTDIR)
+ sed -i -e 's!$(TARGET)!!g' $(DESTDIR)/bin/msp430mcu-config # Strip build path
binary-arch: binary-indep
More information about the Reproducible-bugs
mailing list