Builds undistributalbe debs without perl in the standard path.
Hi,
When perl executable is not in the standard path (/usr/local/bin/perl,
for instance), it generates perl scripts with the corresponding header
and results in undistributable debs.
----------------------------------------------------------------
% which perl
/usr/local/bin/perl
% head -5 /usr/sbin/update-alternatives
#! /usr/local/bin/perl --
$admindir="/var/lib/dpkg"; # This line modified by Makefile
$dpkglibdir="/usr/lib/dpkg"; # This line modified by Makefile
$version="1.10"; # This line modified by Makefile
----------------------------------------------------------------
I understand that is because dpkg is no longer for GNU/Linux system
only. I think it's good idea to restrict PATH for configure in
debian/rules.
Index: debian/rules
===================================================================
RCS file: /cvs/dpkg/dpkg/debian/rules,v
retrieving revision 1.65
diff -u -r1.65 rules
--- debian/rules 2001/11/15 00:18:08 1.65
+++ debian/rules 2002/01/01 23:42:43
@@ -28,7 +28,7 @@
$(BUILD)/config.status:
$(checkdir)
install -d $(@D)
- cd $(@D) && LDFLAGS=$(LDFLAGS) $(DIR)/configure \
+ cd $(@D) && LDFLAGS=$(LDFLAGS) PATH=/usr/bin:/bin $(DIR)/configure \
--prefix=/usr \
--datadir=/usr/share \
--mandir=/usr/share/man \
--
YAEGASHI Takeshi <t@keshi.org> <takeshi@yaegashi.jp> <yaegashi@dodes.org>
Reply to: