Bug#928334: iputils FTCBFS: Uses the build architecture compiler

2019-05-02 Thread Nguyen Van. Hieu

Source: iputils
Version: 3:20180629-2
Severity: normal
Tags: patch
User:helm...@debian.org
Usertags: rebootstrap

Hi,

iputils fails to cross build from source, because it uses the build
architecture compiler.
Using "dh_auto_build" instead of "$(MAKE)" can solve this problem.
Please consider applying the attached patch.

Hieu.

diff -Nru iputils-20180629/debian/rules iputils-20180629/debian/rules
--- iputils-20180629/debian/rules   2018-08-03 23:53:09.0 +0700
+++ iputils-20180629/debian/rules   2018-08-03 23:53:09.0 +0700
@@ -17,11 +17,11 @@
 
 build-arch: configure
dh_testdir
-   $(MAKE) $(TARGETS)
+   dh_auto_build -- $(TARGETS)
 
 build-indep: configure
dh_testdir
-   $(MAKE) -C doc man
+   dh_auto_build -- -C doc man
 
 build: build-arch build-indep
 
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com


Bug#928317: xcb FTCBFS: Uses the build architecture compiler

2019-05-01 Thread Nguyen Van. Hieu

Source: xcb
Version: 2.4-4.3
Severity: normal
Tags: patch
User:helm...@debian.org
Usertags: rebootstrap

Hi,

xcb fails to cross build from source, because it uses the build
architecture compiler.
Using "dh_auto_build" instead of "$(MAKE)" can solve this problem.
Please consider applying the attached patch.

Hieu.

diff -Nru xcb-2.4/debian/rules xcb-2.4/debian/rules
--- xcb-2.4/debian/rules2012-05-11 17:23:09.0 +0700
+++ xcb-2.4/debian/rules2012-05-11 18:25:15.0 +0700
@@ -10,7 +10,7 @@
 override_dh_auto_build:
# CCOPTIONS is used to pass CFLAGS, CPPFLAGS when compiling .c files,
# EXTRA_LOAD_FLAGS when linking the program.
-   $(MAKE) \
+   dh_auto_build -- \
CCOPTIONS="$(CFLAGS) $(CPPFLAGS)" \
EXTRA_LOAD_FLAGS="-I. $(CFLAGS) $(LDFLAGS)"
cp xcb.man debian/xcb.1
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com


Bug#927923: unhtml FTCBFS: Uses the build architecture compiler

2019-04-24 Thread Nguyen Van. Hieu

Source: unhtml
Version: 2.3.9-4
Severity: normal
Tags: patch
User:helm...@debian.org
Usertags: rebootstrap

Hi,

unhtml fails to cross build from source, because it uses the build
architecture compiler.
Using "dh_auto_build" instead of "$(MAKE)" can solve this problem.
Please consider applying the attached patch.

Hieu.

diff -Nru unhtml-2.3.9/debian/rules unhtml-2.3.9/debian/rules
--- unhtml-2.3.9/debian/rules   2012-06-24 01:42:50.0 +0700
+++ unhtml-2.3.9/debian/rules   2017-01-21 23:35:10.0 +0700
@@ -10,7 +10,7 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 override_dh_auto_build:
-   $(MAKE) CFLAGS="$(FLAGS)"
+   dh_auto_build -- CFLAGS="$(FLAGS)"
 
 override_dh_auto_install:
install -m 755 -D $(PACKAGE) debian/$(PACKAGE)/usr/bin/$(PACKAGE)
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com


Bug#927861: mdm FTCBFS: Uses the build architecture strip

2019-04-24 Thread Nguyen Van. Hieu

Source: mdm
Version: 0.1.3-2.1
Severity: normal
Tags: patch
User:helm...@debian.org
Usertags: rebootstrap

Hi,

mdm strips during make install by passing -s to install. This
causes cross compilation failure as the build architecture strip is used,
and it does not generate a useful -dbgsym package.

Please consider applying the attached patch for fix this issue.

Hieu.

diff -u mdm-0.1.3/Makefile mdm-0.1.3/Makefile
--- mdm-0.1.3/Makefile
+++ mdm-0.1.3/Makefile
@@ -46,9 +46,9 @@
 install-bin : all 
$(INSTALL) -d $(BIN_D_DIR) $(LIB_D_DIR)
$(INSTALL) scripts/mdm.screen scripts/ncpus $(BIN_D_DIR)
-   $(INSTALL) -s mdm-run $(BIN_D_DIR)
+   $(INSTALL) mdm-run $(BIN_D_DIR)
$(LN) -f -s mdm-run $(BIN_D_DIR)/mdm-sync
-   $(INSTALL) -s mdm-master mdm-slave mdm-top $(LIB_D_DIR)
+   $(INSTALL)  mdm-master mdm-slave mdm-top $(LIB_D_DIR)
$(SED) -i -e "s:MDM_LIB:$(LIB_DIR):" $(BIN_D_DIR)/mdm.screen
 
 install-docs :
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com


Bug#927843: wmwave FTCBFS: hard codes build architecture compiler, uses build architecture strip

2019-04-23 Thread Nguyen Van. Hieu

Source: wmwave
Version: 0.4-10
Severity: normal
Tags: patch
User:helm...@debian.org
Usertags: rebootstrap

Hi,

wmwave fails to cross build from source, because the upstream build
system hard codes the build architecture compiler "cc" in its Makefile,
and it uses the build architecture strip on host architecture ELF objects.
 - Replacing "cc" with "$(CC)" in Makefile and "$(MAKE)" with "dh_auto_build"
   in debian/rules.
 - Adding a host architecture prefix to strip.

wmwave cross builds successfully. Please consider applying the attached patch.

Hieu.

diff -u wmwave-0.4/Makefile wmwave-0.4/Makefile
--- wmwave-0.4/Makefile
+++ wmwave-0.4/Makefile
@@ -15,13 +15,13 @@
 default:all
 
 .c.o:
-   cc $(CFLAGS) -I/usr/X11R6/share/include -c $< -o $*.o
+   $(CC) $(CFLAGS) -I/usr/X11R6/share/include -c $< -o $*.o
 
 wmwave.o: wmwave.c wmwave-master.xpm
-   cc $(CFLAGS) -I/usr/X11R6/share/include -c wmwave.c -o $*.o
+   $(CC) $(CFLAGS) -I/usr/X11R6/share/include -c wmwave.c -o $*.o
 
 wmwave: $(OBJS) wmwave.o
-   cc $(CFLAGS) -o wmwave $(OBJS) -lXext $(LIBDIR) $(LIBS) wmwave.o
+   $(CC) $(CFLAGS) -o wmwave $(OBJS) -lXext $(LIBDIR) $(LIBS) wmwave.o
 
 all:: wmwave
 
diff -u wmwave-0.4/debian/rules wmwave-0.4/debian/rules
--- wmwave-0.4/debian/rules
+++ wmwave-0.4/debian/rules
@@ -13,7 +13,7 @@
CFLAGS += -O2
 endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-   INSTALL_OPTS = -s
+   INSTALL_OPTS = -s --strip-program=$(DEB_HOST_GNU_TYPE)-strip
 endif
 
 configure: configure-stamp
@@ -26,7 +26,7 @@
dh_testdir
 
# Add here commands to compile the package.
-   $(MAKE) CFLAGS="$(CFLAGS)"
+   dh_auto_build -- CFLAGS="$(CFLAGS)"
#/usr/bin/docbook-to-man debian/wmwave.sgml > wmwave.1
 
touch build-stamp
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com


Bug#927773: wmnet FTCBFS: uses the build architecture compiler

2019-04-22 Thread Nguyen Van. Hieu

Source: wmnet
Version: 1.06-1
Severity: normal
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi,

wmnet fails to cross build from source, because it uses the build
architecture compiler.
Using "dh_auto_build" instead of "make" can solve this problem.
Please consider applying the attached patch.

Hieu.

diff -Nru wmnet-1.06/debian/rules wmnet-1.06/debian/rules
--- wmnet-1.06/debian/rules 2012-03-04 03:13:23.0 +0700
+++ wmnet-1.06/debian/rules 2012-03-04 03:20:19.0 +0700
@@ -10,7 +10,7 @@
dh_testdir
 
xmkmf
-   make
+   dh_auto_build
 
touch build-stamp
 
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com