Bug 218877 - baselayout-2.0.0 fails with USE="build"
Bug#: 218877 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: blocker Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: kcodyjr@gmail.com
Component: baselayout
URL: 
Summary: baselayout-2.0.0 fails with USE="build"
Keywords:  
Status Whiteboard: 
Opened: 2008-04-22 12:48 0000
Description:   Opened: 2008-04-22 12:48 0000
Doing a catalyst stage1 using stage3-amd64-hardened-2007.0 as seed.

Very short package.keywords file; baselayout and its deps.

In pkg_preinst:

1. make_opts is not defined anywhere
2. emake tries to run in ${T}, with no Makefile

I could be missing something or doing something drastically wrong.

Let me know if you need stuff pasted or anything.

Reproducible: Always

Steps to Reproduce:
1. set up catalyst stage1 spec file
2. invoke catalyst, wait, wait, wait...
3. watch the fireworks
4. chdir to seed root; chroot; ln -s /bin/true /bin/make_opts
5. invoke catalyst
6. watch the fireworks

Actual Results:  
make: Entering directory `/var/tmp/portage/sys-apps/baselayout-2.0.0/temp'
make: *** No rule to make target `layout'.  Stop.
make: Leaving directory `/var/tmp/portage/sys-apps/baselayout-2.0.0/temp'

------- Comment #1 From Kevin Cody Jr. 2008-04-23 00:29:06 0000 -------
Created an attachment (id=150665) [details]
patch against baselayout-2.0.0.ebuild


Changes emake line to one that works for me.

Also, dismounts and remounts ${ROOT}proc, as catalyst bind-mounts it.

------- Comment #2 From SpanKY 2008-05-10 10:03:02 0000 -------
$S wont be available for binpkgs ... ive fixed this in cvs, please test

http://sources.gentoo.org/sys-apps/baselayout/baselayout-2.0.0.ebuild?r1=1.4&r2=1.5