FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 08-29-2011, 06:46 PM
Talles
 
Default Can't compile liblocale-gettext-perl and dpkg packages

Thanks for your attention Jonathan,



Sorry, I realy should have sent more information. Attached are the
complete error output and the end of the standard output.



Maybe is
important to know that this Debian is a virtual machine, but I think
it's nothing to do with this problem. Also, I ran this command on a
ubunu Natty and worked fine.





On 29-08-2011 14:34, Jonathan Nieder wrote:

Hi,

Talles wrote:



When trying to compile dpkg some tests cases fail.



Which test cases?






gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made Tue 26 Apr 2011 04:16:59 AM BRT using DSA key ID 9D928C9B
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./dpkg_1.15.8.11.dsc
dpkg-source --before-build dpkg-1.15.8.11
debian/rules clean
debian/rules build
../../src/cleanup.c: In function ‚??cu_prermdeconfigure‚??:
../../src/cleanup.c:136: warning: declaration of ‚??conflictor‚?? shadows a global declaration
../../src/archives.h:44: warning: shadowed declaration is here
../../src/cleanup.c: In function ‚??cu_prerminfavour‚??:
../../src/cleanup.c:160: warning: declaration of ‚??conflictor‚?? shadows a global declaration
../../src/archives.h:44: warning: shadowed declaration is here
../../src/main.c:231: warning: ‚??setobsolete‚?? defined but not used
../../dselect/pkgtop.cc: In member function ‚??virtual void packagelist::redraw1itemsel(int, int)‚??:
../../dselect/pkgtop.cc:190: warning: declaration of ‚??i‚?? shadows a previous local
../../dselect/pkgtop.cc:139: warning: shadowed declaration is here
../../dselect/pkgtop.cc:191: warning: declaration of ‚??p‚?? shadows a previous local
../../dselect/pkgtop.cc:140: warning: shadowed declaration is here
debian/rules binary

# Failed test '--list should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '--list stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xismcannot|failed).*open)'

# Failed test '--rename --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/rodir/foo should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '--rename --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/rodir/foo stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xism:error)'

# Failed test '--rename --divert /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/rodir/bar --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/bar should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '--rename --divert /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/rodir/bar --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/bar stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xism:error)'

# Failed test 'diversions contents'
# at ../../src/t/100_dpkg_divert.t line 116.
# Structures begin differing at:
# $got->[0] = ARRAY(0x9bff650)
# $expected->[0] = Does not exist

# Failed test '--rename --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/nadir/foo should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '--rename --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/nadir/foo stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xism:Permission denied)'

# Failed test '--rename --divert /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/nadir/foo --add /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# 'dpkg-divert: `local diversion of /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo to /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/nadir/foo' clashes with `local diversion of /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/nadir/foo to /root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/nadir/foo.distrib'
# '
# doesn't match '(?-xism:Permission denied)'

# Failed test 'diversions contents'
# at ../../src/t/100_dpkg_divert.t line 116.
# Structures begin differing at:
# $got->[0] = ARRAY(0x9bff680)
# $expected->[0] = Does not exist

# Failed test '/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xism:create.*new)'

# Failed test '/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xismwrite|flush|close).*new)'
mkdir: cannot create directory `/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/admindir/diversions-old': File exists

# Failed test '/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo should fail'
# at ../../src/t/100_dpkg_divert.t line 56.

# Failed test '/root/sources/dpkg-1.15.8.11/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo stderr'
# at ../../src/t/100_dpkg_divert.t line 77.
# '
# doesn't match '(?-xism:remov.*old)'
# Looks like you failed 17 tests of 235.
Failed 1/1 test programs. 17/235 subtests failed.
make[3]: *** [check-local] Error 17
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Build command 'cd dpkg-1.15.8.11 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
Making check in src
make[2]: Entering directory `/root/sources/dpkg-1.15.8.11/build-tree/src'
/usr/bin/make check-local
make[3]: Entering directory `/root/sources/dpkg-1.15.8.11/build-tree/src'
/bin/mkdir -p t.tmp
PATH="../src:../scripts:../utils:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
LC_ALL=C

srcdir=../../src builddir=.
PERL5LIB=../../scripts PERL_DL_NONLAZY=1
PERL5OPT=
/usr/bin/perl -I../../scripts
-MExtUtils::Command::MM -e "test_harness(0, '.')"
../../src/t/100_dpkg_divert.t
../../src/t/100_dpkg_divert.t ..
Dubious, test returned 17 (wstat 4352, 0x1100)
Failed 17/235 subtests

Test Summary Report
-------------------
../../src/t/100_dpkg_divert.t (Wstat: 4352 Tests: 235 Failed: 17)
Failed tests: 211, 213, 220-226, 228-235
Non-zero exit status: 17
Files=1, Tests=235, 3 wallclock secs ( 0.08 usr 0.02 sys + 0.63 cusr 1.32 csys = 2.05 CPU)
Result: FAIL
make[3]: Leaving directory `/root/sources/dpkg-1.15.8.11/build-tree/src'
make[2]: Leaving directory `/root/sources/dpkg-1.15.8.11/build-tree/src'
make[1]: Leaving directory `/root/sources/dpkg-1.15.8.11/build-tree'
 
Old 08-29-2011, 07:31 PM
Jonathan Nieder
 
Default Can't compile liblocale-gettext-perl and dpkg packages

Talles wrote:

> # Failed test '--list should fail'
> # at ../../src/t/100_dpkg_divert.t line 56.

That's odd. Looking at t/100_dpkg_divert.t, that means that @$args
was ("--list") but $opts{'expect_failure'} was true, and none of the
tests are actually set up that way.

I suspect your perl installation is broken. If it is installed
under /usr/local --- great, time to fix it. Otherwise, I don't
know what to tell you, but hopefully the above can be enough of a
lead to track it down.

If that doesn't work, I would suggest sprinkling the .t file with
debugging "print" statements to figure out what happened.

Cheers,
Jonathan


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110829193150.GE9045@elie.gateway.2wire.net">http ://lists.debian.org/20110829193150.GE9045@elie.gateway.2wire.net
 
Old 08-29-2011, 08:49 PM
Talles Silva
 
Default Can't compile liblocale-gettext-perl and dpkg packages

No, that's not my case. Perl was installed using apt and it is not under
/usr/local. I tried to reinstall the latest version and installed
another version of the perl package but did not work. I will follow your
advise and debug the .t file. If I have some news I will let you know.



Thanks for your help.


Talles Silva


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E5BFB58.1070307@mav.com.br">http://lists.debian.org/4E5BFB58.1070307@mav.com.br
 
Old 08-29-2011, 09:23 PM
Jonathan Nieder
 
Default Can't compile liblocale-gettext-perl and dpkg packages

Jonathan Nieder wrote:
> Talles wrote:

>> # Failed test '--list should fail'
>> # at ../../src/t/100_dpkg_divert.t line 56.
>
> That's odd. Looking at t/100_dpkg_divert.t, that means that @$args
> was ("--list") but $opts{'expect_failure'} was true, and none of the
> tests are actually set up that way.

Doh --- apparently I can't read.

Here's the test:

| SKIP: {
| skip "running under fakeroot", 3, if (defined($ENV{FAKEROOTKEY}));
|
| # An inexistent diversions db file should not be considered a failure,
| # but a failure to open it should be.
| install_diversions(');
| system("chmod 000 $admindir/diversions");
| call_divert_sort(['--list'], expect_failure => 1,
| expect_stderr_like => qr/(cannot|failed).*open/, expect_stdout => ');
| system("chmod 644 $admindir/diversions");
| }

I assume you are running tests as root. This was fixed by 7e17d3bf
(dpkg-divert: fix the test-suite to also skip tests that would fail if
run as root, 2011-07-27).

Sorry for the misdirection,
Jonathan


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110829212346.GG9045@elie.gateway.2wire.net">http ://lists.debian.org/20110829212346.GG9045@elie.gateway.2wire.net
 
Old 08-29-2011, 09:50 PM
Talles Silva
 
Default Can't compile liblocale-gettext-perl and dpkg packages

Thanks Jonathan. That's it!
I just can't compile as root. It solved my problem.

Thanks a lot,


Jonathan Nieder wrote:
I assume you are running tests as root. This was fixed by 7e17d3bf
(dpkg-divert: fix the test-suite to also skip tests that would fail if
run as root, 2011-07-27).


Talles Silva


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E5C09AA.3060201@mav.com.br">http://lists.debian.org/4E5C09AA.3060201@mav.com.br
 

Thread Tools




All times are GMT. The time now is 07:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org