Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184719

Summary: dev-util/debootstrap-1.0.0 does not install pkgdetails
Product: Gentoo Linux Reporter: Natanael Copa <natanael.copa>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WONTFIX    
Severity: normal CC: armin76
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: debootstrap-1.0.6.ebuild.patch

Description Natanael Copa 2007-07-09 11:19:16 UTC
pkgdetails is compiled but never installed. Either add perl as dependency or just install pkgdetails. I think the same applies to the current stable version of debootstrap too.

--- debootstrap-1.0.0.ebuild.orig       2007-07-09 11:04:58 +0000
+++ debootstrap-1.0.0.ebuild    2007-07-09 11:13:05 +0000
@@ -28,5 +28,7 @@
 
 src_install() {
        make DESTDIR="${D}" install-allarch || die
+       exeinto /usr/lib/${PN}
+       doexe pkgdetails
        dodoc TODO
 }
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2007-07-16 12:52:08 UTC
In reply to comment #0)
> pkgdetails is compiled but never installed. Either add perl as dependency or
> just install pkgdetails.

What does the perl dep fix?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-10 16:57:43 UTC
*** Bug 198714 has been marked as a duplicate of this bug. ***
Comment 3 Natanael Copa 2007-11-11 02:00:39 UTC
(In reply to comment #1) 
> What does the perl dep fix?

debootstrap --help
E: No pkgdetails available; either install perl, or build pkgdetails.c from source

The debootstrap script provides a perl version of pkgdetails. From /usr/lib/debootstrap/functions:

  if [ -x /usr/bin/perl ]; then
    PKGDETAILS=pkgdetails_perl
    ...
  elif [ -e "$DEBOOTSTRAP_DIR/pkgdetails" ]; then
    PKGDETAILS="$DEBOOTSTRAP_DIR/pkgdetails"
  else
    PKGDETAILS=""
  fi

I just tested and the patch i provide above is actually wrong (my build environment has perl by runtime target has not so i didn't detect it first time - sorry). I'll post a new patch once i tested that it works.
Comment 4 Natanael Copa 2007-11-11 02:21:52 UTC
Created attachment 135707 [details, diff]
debootstrap-1.0.6.ebuild.patch

installs pkgdetails in correct place so perl dependency can be avoided.
Comment 5 Natanael Copa 2007-11-11 02:25:09 UTC
sight... i'm not only dup'ing my own bugs, i'm even duping my own patches...

another night sleep wasted :-(
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-02-04 21:37:22 UTC
This isn't needed anymore, is it?