Bug#873601: jkmeter FTCBFS: binutils build dependency unsatisfiable, hard codes build architecture compiler
Helmut Grohne
helmut at subdivi.de
Tue Aug 29 12:42:11 UTC 2017
Source: jkmeter
Version: 0.6.1-4
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
jkmeter fails to cross build from source for two reasons:
* Its explicit build dependency on binutils (host architecture)
conflicts with its implicit dependency via build-essential (build
architecture). In theory, one would do "toolchain dependency cross
translation here", but dropping the redundant dependency is easier.
* The upstream Makefile hard codes the build architecture compiler g++.
After fixing both issues, jkmeter cross builds successfully. Please
consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru jkmeter-0.6.1/debian/changelog jkmeter-0.6.1/debian/changelog
--- jkmeter-0.6.1/debian/changelog 2016-12-22 20:58:40.000000000 +0100
+++ jkmeter-0.6.1/debian/changelog 2017-08-29 14:36:28.000000000 +0200
@@ -1,3 +1,12 @@
+jkmeter (0.6.1-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Drop implicitly satisfied build dependency on binutils.
+ + Make g++ substitutable in source/Makefile.
+
+ -- Helmut Grohne <helmut at subdivi.de> Tue, 29 Aug 2017 14:36:28 +0200
+
jkmeter (0.6.1-4) unstable; urgency=medium
[ Alessio Treglia ]
diff --minimal -Nru jkmeter-0.6.1/debian/control jkmeter-0.6.1/debian/control
--- jkmeter-0.6.1/debian/control 2016-12-22 20:58:04.000000000 +0100
+++ jkmeter-0.6.1/debian/control 2017-08-29 14:36:27.000000000 +0200
@@ -6,7 +6,6 @@
Free Ekanayaka <freee at debian.org>,
Jarom??r Mike?? <mira.mikes at seznam.cz>
Build-Depends:
- binutils,
debhelper (>= 10),
libclthreads-dev (>= 2.4.0),
libclxclient-dev (>= 3.9.0),
diff --minimal -Nru jkmeter-0.6.1/debian/patches/01-makefile.patch jkmeter-0.6.1/debian/patches/01-makefile.patch
--- jkmeter-0.6.1/debian/patches/01-makefile.patch 2013-04-03 04:50:57.000000000 +0200
+++ jkmeter-0.6.1/debian/patches/01-makefile.patch 2017-08-29 14:36:28.000000000 +0200
@@ -1,13 +1,14 @@
Description: Put DESTDIR before PREFIX to set the installation path properly.
Set prefix properly and removed -march=native cpp flag
+ Make g++ substitutable
Author: Jarom??r Mike?? <mira.mikes at seznam.cz>
Author: Alessio Treglia <alessio at debian.org>
Forwarded: Fons Adriaensen <fons at kokkinizita.net>
Index: jkmeter/source/Makefile
===================================================================
--- jkmeter.orig/source/Makefile 2011-08-03 02:45:40.420992633 +0200
+++ jkmeter/source/Makefile 2011-08-03 02:46:35.887176814 +0200
@@ -19,14 +19,14 @@
# -------------------------------------------------------------------------
@@ -26,3 +27,12 @@
all: jkmeter
+@@ -40,7 +40,7 @@
+ jkmeter: LDFLAGS += -L/usr/X11R6/lib
+ jkmeter: LDFLAGS += -pthread
+ jkmeter: $(JKMETER_O)
+- g++ $(LDFLAGS) -o $@ $(JKMETER_O) $(LDLIBS)
++ $(CXX) $(LDFLAGS) -o $@ $(JKMETER_O) $(LDLIBS)
+
+ $(JKMETER_O):
+ -include $(JKMETER_O:%.o=%.d)
More information about the pkg-multimedia-maintainers
mailing list