Re: dpkg 1.16.1 configure
* Neil Williams <codehelp@debian.org>:
| Gabor: dpkg does try to avoid depending on itself, so there is no need
| for dpkg-architecture to exist in $PATH. The configure script is
| actually looking for dpkg-architecture.pl in the scripts/ directory of
| the unpacked source. So it should be entirely possible to build dpkg
| without having dpkg installed (it would make it impossible to
| bootstrap new architectures otherwise).
[...]
| What path do you need to specify to run any perl script which is not
| already in your $PATH?
ok, once more:
$ ./configure
[...]
checking dpkg cpu type... i686
configure: WARNING: i686 not found in cputable
checking dpkg operating system type... linux-gnu
configure: WARNING: linux-gnu not found in ostable
checking dpkg architecture name... configure: error: cannot determine host dpkg architecture
Checking config.log:
configure:10667: checking dpkg cpu type
configure:10675: result: i686
configure:10677: WARNING: i686 not found in cputable
configure:10689: checking dpkg operating system type
configure:10697: result: linux-gnu
configure:10699: WARNING: linux-gnu not found in ostable
configure:10711: checking dpkg architecture name
configure:10718: error: cannot determine host dpkg architecture
BTW, checking perl in config.log:
ac_cv_path_PERL=/pkg/bin/perl
$ which perl
/pkg/bin/perl
$ perl --version
This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-thread-multi
Let see ./configure again:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dpkg architecture name" >&5
$as_echo_n "checking dpkg architecture name... " >&6; }
dpkg_arch=$(cd $srcdir/scripts; \
PERL5LIB=$(pwd) $PERL dpkg-architecture.pl -t$host -qDEB_HOST_ARCH 2>/dev/null)
if test "x$dpkg_arch" = "x"; then
as_fn_error $? "cannot determine host dpkg architecture" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dpkg_arch" >&5
$as_echo "$dpkg_arch" >&6; }
fi
cat >>confdefs.h <<_ACEOF
#define ARCHITECTURE "${dpkg_arch}"
_ACEOF
So, what is failing?
(cd $srcdir/scripts; PERL5LIB=$(pwd) $PERL dpkg-architecture.pl -t$host -qDEB_HOST_ARCH 2>/dev/null)
Let me remove 2>/dev/null:
checking dpkg architecture name... Can't exec "dpkg": No such file or directory at /home/gzp/src/dpkg-1.16.1/scripts/Dpkg/Arch.pm line 52.
dpkg-architecture.pl: error: dpkg --print-architecture failed: No such file or directory
configure: error: cannot determine host dpkg architecture
Without installed dpkg I can't configure 1.16.1
Reply to: