Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419465 - stage1 fails create, with baselayout-2.1 on gfbsd
Summary: stage1 fails create, with baselayout-2.1 on gfbsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH, REGRESSION, REVIEWED
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2012-06-03 09:43 UTC by Yuta SATOH
Modified: 2012-08-20 20:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for baselayout-2.1 Makefile (baselayout-2.1-fbsd.patch,491 bytes, patch)
2012-06-03 09:48 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2012-06-03 09:43:01 UTC
When creating the new stage1, freebsd-ubin will fail with the following error message.

!!! Cannot write to '/tmp/stage1root/var/run'.


I checked /tmp/stage1root/var, found the cause.
Symbolic link that target /run will be created.

# ls -lha /var/tmp/catalyst/tmp/default/stage1-amd64-fbsd-9.0-20120603/tmp/stage1root/var/run \
/var/tmp/catalyst/tmp/default/stage1-amd64-fbsd-9.0-20120603/tmp/stage1root/var/lock

/var/tmp/catalyst/tmp/default/stage1-amd64-fbsd-9.0-20120603/tmp/stage1root/var/run -> /run
/var/tmp/catalyst/tmp/default/stage1-amd64-fbsd-9.0-20120603/tmp/stage1root/var/lock -> /run/lock
Comment 1 Yuta SATOH 2012-06-03 09:48:59 UTC
Created attachment 314039 [details, diff]
patch for baselayout-2.1 Makefile

As far as I can see from baselayout-2.1-r1.ebuild, /run will be create only in Linux.

<snip>
if use kernel_linux; then
       mkdir -p "${ROOT}"/run
<snip>
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-06-03 11:49:37 UTC
The baselayout changes appear to have broken creation of new Gentoo FreeBSD stages. The proposed patch looks sane to me. I am reassigning this to base-system.
Comment 3 Naohiro Aota gentoo-dev 2012-06-20 06:16:15 UTC
(In reply to comment #2)
> The baselayout changes appear to have broken creation of new Gentoo FreeBSD
> stages. The proposed patch looks sane to me. I am reassigning this to
> base-system.

It seems this is already fixed in SVN tree. 

http://sources.gentoo.org/cgi-bin/viewvc.cgi/baselayout/trunk/Makefile?r1=3201&r2=3200&pathrev=3201

OTH, stabilzation process for -2.1-r1 is going. base-system team, please comment how to deal with this patch.
New release will come soon? Revbump and apply this patch on -2.1?
Comment 4 SpanKY gentoo-dev 2012-08-20 20:45:15 UTC
should be all set now in the tree; thanks for the report!

Commit message: Version bump
http://sources.gentoo.org/sys-apps/baselayout/baselayout-2.2.ebuild?rev=1.1