Source: openbox-menu
Version: 0.8.0-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

openbox-menu fails to cross build from source, because it fails finding
packages with the build architecture pkg-config. It also calls the build
architecture strip, which not only breaks cross compilation, but also
-dbgsym packages. After fixing both, openbox-menu cross builds a -dbgsym
package successfully.

Helmut
diff --minimal -Nru openbox-menu-0.8.0/debian/changelog 
openbox-menu-0.8.0/debian/changelog
--- openbox-menu-0.8.0/debian/changelog 2016-03-03 11:54:19.000000000 +0100
+++ openbox-menu-0.8.0/debian/changelog 2017-08-07 19:37:41.000000000 +0200
@@ -1,3 +1,12 @@
+openbox-menu (0.8.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Make pkg-config substitutable.
+    + Do not strip during install.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 07 Aug 2017 19:37:41 +0200
+
 openbox-menu (0.8.0-1) unstable; urgency=medium
 
   * New upstream release. (Closes: #797016, #797022, #797241)
diff --minimal -Nru openbox-menu-0.8.0/debian/patches/debian_build.patch 
openbox-menu-0.8.0/debian/patches/debian_build.patch
--- openbox-menu-0.8.0/debian/patches/debian_build.patch        2015-11-30 
18:05:21.000000000 +0100
+++ openbox-menu-0.8.0/debian/patches/debian_build.patch        2017-08-07 
19:37:41.000000000 +0200
@@ -1,10 +1,19 @@
 Description: Make makefile compatible with Debian's standards.
 Author: Mateusz Łukasik <mat...@linuxmint.pl>
-Last-Update: 2013-11-30
+Last-Update: 2017-08-07
 
 --- a/Makefile
 +++ b/Makefile
-@@ -7,7 +7,7 @@ CC=gcc
+@@ -1,5 +1,6 @@
+-LIBS= `pkg-config --libs glib-2.0 gtk+-2.0 libmenu-cache`
+-CFLAGS+= -g -Wall `pkg-config --cflags glib-2.0 gtk+-2.0 libmenu-cache`
++PKG_CONFIG ?= pkg-config
++LIBS= `$(PKG_CONFIG) --libs glib-2.0 gtk+-2.0 libmenu-cache`
++CFLAGS+= -g -Wall `$(PKG_CONFIG) --cflags glib-2.0 gtk+-2.0 libmenu-cache`
+ CC=gcc
+ #-DG_DISABLE_DEPRECATED
+ 
+@@ -7,7 +8,7 @@
  CFLAGS+=-DWITH_ICONS
  # Uncomment this line if Openbox can display SVG icons 
  # Check SVG support with '$ ldd /usr/bin/openbox | grep svg', librsvg must 
appear..
@@ -13,3 +24,11 @@
  
  prefix= /usr/local
  DESTDIR ?= $(prefix)
+@@ -31,7 +32,6 @@
+       @rm -rf doc
+ 
+ install:
+-      @strip -s openbox-menu
+       @install -Dm 755 openbox-menu $(BINDIR)/openbox-menu
+ 
+ doc:

Reply via email to