|
From: Serge L. <fi...@in...> - 2005-11-02 11:58:29
|
Dear Heiko, Bruce
I've done it. The intermediate file was created...
This diff is an example only.
The syntax of config/perl-ext is the following:
>Convert-ASN1
>DBI
>DBD-mysql "$CONFIG_MYSQL_CLIENT" = "y"
>DBI-DBD-Pg "$CONFIG_POSTGRESQL_CLIENT" = "y"
>DBI-DBD-mysql "$CONFIG_MYSQL_CLIENT" = "y"
>libwww-perl
>perl-ldap "$CONFIG_OPENLDAPLIB" = "y" -a "$CONFIG_MYSQL_CLIENT" = "y"
--- build-1/scripts/perl 2005-10-18 11:42:58.000000000 +0400
+++ build/scripts/perl 2005-11-02 14:46:32.000000000 +0300
@@ -65,8 +65,27 @@
do
bzcat $PATCH | patch -p0 || exit 1
done
+
+# Do the list with checked dependencies
+ if [ -f $DL_DIR/tmp/perl-ext.tmp ]; then
+ rm -f $DL_DIR/tmp/perl-ext.tmp
+ fi
+
+ while read line
+ do
+ f=`echo $line | cut -d' ' -f1 `
+ s=`echo $line | cut -d' ' -f2- `
+
+ if [ "$f" = "$s" ]; then
+ echo $fi >> $DL_DIR/tmp/perl-ext.tmp
+ else
+ if `eval test $s` ; then
+ echo $f >> $DL_DIR/tmp/perl-ext.tmp
+ fi
+ fi
+ done < $MYDIR/config/perl-ext
- for EXT in $(cat $MYDIR/config/perl-ext)
+ for EXT in $(cat $DL_DIR/tmp/perl-ext.tmp | grep -v "^#")
do
pushd $DL_DIR/tmp/perl-*/$EXT*
echo "******** compiling perl extension $EXT ********"
--
Best regards,
Serge mailto:fi...@in...
|