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

Bug 246514

Summary: net-misc/scponly - setup_chroot.sh needs config.h as well (missing)
Product: Gentoo Linux Reporter: Stefan Briesenick (RETIRED) <sbriesen>
Component: New packagesAssignee: MATSUU Takuto (RETIRED) <matsuu>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Briesenick (RETIRED) gentoo-dev 2008-11-12 17:09:54 UTC
package installs "setup_chroot.sh" into docs. This tool is great for installing new chroot environments including user-accounts, but it needs also "config.h" in the same directory to work at all.

So I suggest to change the ebuild from:

  dodoc setup_chroot.sh

to something like this:

  exeopts -m0700  # just for safety
  exeinto /usr/share/doc/${PF}/config
  insinto /usr/share/doc/${PF}/config
  doexe setup_chroot.sh
  doins config.h

so this tool is directly usable without extracting first.


Reproducible: Always

Steps to Reproduce:

Actual Results:  
setup-script is installed, but doesn't work because auf missing "config.h" file.

Expected Results:  
script should work out-of-the-box.
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2008-11-12 23:19:25 UTC
ok, installing this script seems obsolete, since ebuild has a --config option. So forget it.

But unfortunately your pkg_config() doesn't work at all, since you use hard-coded libs/binaries. And even wrong ones (it's not /usr/bin/ld, but /usr/bin/id).

I got always "unknown user XXX" with it. Then I figured out, that /lib/libnss_files.so.2 was missing.

You should REALLY copy the logic from setup_chroot.sh! There "ldd" is used to figure out all the dependencies.

If you want, I can try to fix it. And also the other 2 bugs which are open.
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2008-11-13 23:05:37 UTC
fixed in CVS.