[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#437768: perl-byacc: not handling nostrip build option (policy 10.1)



user debian-cross@lists.debian.org
usertags 437768 + ftcbfs
tags 437768 + patch
severity 437768 normal
thanks

The lack of nostrip support has more consequences these days. It also 
means that no -dbgsym package is generated. Last but not least, as 
install uses the build architecture strip, a cross build fails at the 
stripping step. I'm attaching a patch to make the install program 
substitutable. Once doing so, debhelper will substitute a non-stripping 
install and handle stripping during dh_strip. Please consider applying 
it.

Helmut
--- perl-byacc-2.0.orig/Makefile
+++ perl-byacc-2.0/Makefile
@@ -30,6 +30,7 @@
 
 CC	      = gcc -Wall
 CPP	      = /lib/cpp	      
+INSTALL       = install
 
 LDFLAGS	      +=
 
@@ -115,11 +116,11 @@
 
 install:	$(PROGRAM) $(LIBRARY) $(DEST) $(LIB_DEST) $(MAN_DEST)
 		@echo Installing $(PROGRAM) in $(DEST)
-		@install -s $(PROGRAM) $(DEST)
+		@$(INSTALL) -s $(PROGRAM) $(DEST)
 		@echo Installing $(LIBRARY) in $(LIB_DEST)
 		@cp $(LIBRARY) $(LIB_DEST)/$(LIBRARY)
 		@$(RANLIB) $(LIB_DEST)/$(LIBRARY)
-		@install $(PROGRAM).man $(MAN_DEST)/$(PROGRAM).1
+		@$(INSTALL) $(PROGRAM).man $(MAN_DEST)/$(PROGRAM).1
 
 library:	$(LIBRARY)
 

Reply to: