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

Bug#1519: perl postinst complains about not finding /usr/local/include



PACKAGE: perl
VERSION: 5.001-3

I noticed that the perl postinst complains about not finding
/usr/local/include on intital 0.93r6 install.  The postinst contains:

#!/bin/sh -

set -e

PHDIR=/usr/lib/perl5/i486-linux

makeheaders () {
	echo "Creating Perl header files.  This may take a while..."
	(cd /usr/include; find . -type d | (cd $PHDIR; xargs install -d))
	(cd /usr/include; find . -name '*.h' | xargs h2ph ) > /dev/null
	(cd /usr/include; h2ph linux/* asm/* ) > /dev/null
	(cd /usr/local/include; find . -type d | (cd $PHDIR; xargs install -d))
	(cd /usr/local/include;
		for i in `find . -name '*.h'`
		do cat $i | h2ph > $PHDIR/`echo $i | sed -e 's/\.h$/\.ph/'`;
		done;
	) > /dev/null
[...]

Suggest that a test be made for the presence of /usr/local/include or,
possibly, that stderr be sent to /dev/null.

mitchell@mdd.comm.mot.com (Bill Mitchell)



Reply to: