Subject: pkg/26099: devel/p5-perl-headers fails to install (with pkgviews)
To: None <gnats-bugs@gnats.netbsd.org>
From: Rhialto <rhialto@azenomei.knuffel.net>
List: pkgsrc-bugs
Date: 06/28/2004 17:57:58
>Number:         26099
>Category:       pkg
>Synopsis:       devel/p5-perl-headers fails to install (with pkgviews)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 28 15:59:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rhialto
>Release:        NetBSD 2.0 BETA
>Organization:
>Environment:
System: NetBSD loelappie.falu.nl 2.0_BETA NetBSD 2.0_BETA (LOELAPPIE) #0: Mon Jun 28 15:22:04 CEST 2004  root@loelappie.falu.nl:/usr/src/sys/arch/i386/compile/LOELAPPIE i386
Architecture: i386
Machine: i386
>Description:
	devel/p5-perl-headers fails to install due to non-existent
	directory:
===> do-su-install [p5-perl-headers-2.0_BETA, nas-1.6nb3, gmplayer-1.0rc4nb1] ==
=> Becoming root@loelappie.falu.nl to install p5-perl-headers.
/usr/bin/su Password:
Terminal type is screen.
install -d -o root -g wheel -m 755 /usr/pkg/packages/p5-perl-headers-2.0_BETA/lib/perl5/site_perl/5.8.4/i386-netbsd
/bin/cp -R /home/tmp/devel/p5-perl-headers/work.i386/h2ph/* /usr/pkg/packages/p5-perl-headers-2.0_BETA/lib/perl5/site_perl/5.8.4/i386-netbsd
install -c -o root -g wheel -m 444 /home/tmp/devel/p5-perl-headers/work.i386/packlist /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/.packlist.h2ph
install: /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/.packlist.h2ph: open: No such file or directory
*** Error code 1

Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/devel/p5-perl-headers
*** Error code 1


Indeed, /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/ does not exist,
only up to /usr/pkg/lib/perl5/site_perl/5.8.4 .

>How-To-Repeat:
	cd pkgsrc/devel/p5-perl-headers && make install

	After the failure, retrying the install FAILS!

loelappie.0:/mnt/vol1/rhialto/cvs/pkgsrc/devel/p5-perl-headers$ make install
===> do-su-install [p5-perl-headers-2.0_BETA] ===> Installing for p5-perl-header
s-2.0_BETA
===> do-su-install [p5-perl-headers-2.0_BETA] ===> Becoming root@loelappie.falu.
nl to install p5-perl-headers.
/usr/bin/su Password:
Terminal type is screen.
===> real-su-install [p5-perl-headers-2.0_BETA] ===>  p5-perl-headers-2.0_BETA i
s already installed.
*** Error code 1

	and do does de-installing:
loelappie.0:/mnt/vol1/rhialto/cvs/pkgsrc/devel/p5-perl-headers$ make deinstall
===> do-su-deinstall [p5-perl-headers-2.0_BETA] ===> Deinstalling for p5-perl-headers
===> do-su-deinstall [p5-perl-headers-2.0_BETA] ===> Becoming root@loelappie.falu.nl to deinstall p5-perl-headers.
/usr/bin/su Password:
Terminal type is screen.                                                
Running /usr/sbin/pkg_delete -K /usr/pkg/packages p5-perl-headers-2.0_BETA
pkg_delete: package 'p5-perl-headers-2.0_BETA' is not installed, +CONTENTS missing

rm -rf finally did the trick.

>Fix:

	workaround: mkdir -p /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd


-Olaf.
-- 
___ Olaf 'Rhialto' Seibert
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.
>Release-Note:
>Audit-Trail:
>Unformatted: