Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454414 - emerge -uDN @system will fail, when 9.0 --> 9.1 upgrade.
Summary: emerge -uDN @system will fail, when 9.0 --> 9.1 upgrade.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-28 11:30 UTC by Yuta SATOH
Modified: 2013-01-29 13:26 UTC (History)
0 users

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


Attachments
patch for freebsd-lib-9.1.ebuild (454414-lib.patch,602 bytes, patch)
2013-01-28 11:41 UTC, Yuta SATOH
Details | Diff
patch for freebsd-sources-9.1.ebuild (454414-sources.patch,638 bytes, patch)
2013-01-28 11:43 UTC, Yuta SATOH
Details | Diff
using ${RV} way patch for freebsd-sources-9.1.ebuild (454414-sources-new.patch,1.85 KB, patch)
2013-01-28 14:10 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 2013-01-28 11:30:50 UTC
* freebsd-lib is required SYS.
When upgrading, SYS seems to need to be included in WORKDIR.
In fact, SYS will be extracted only when USE=build.

original report: Bug 444920 comment #6


* need /usr/src/sys-9.1
Some sys-freebsd packages requires /usr/src/sys-9.1.
However, if the USE flag is not enabled symlink, it will not be created.


Reproducible: Always

Steps to Reproduce:
1. eselect profile set default/bsd/fbsd/x86/9.1
2. emerge -uDN @system
Comment 1 Yuta SATOH 2013-01-28 11:41:58 UTC
Created attachment 337094 [details, diff]
patch for freebsd-lib-9.1.ebuild

Extract ${SYS} in all cases.
Comment 2 Yuta SATOH 2013-01-28 11:43:07 UTC
Created attachment 337096 [details, diff]
patch for freebsd-sources-9.1.ebuild

When /usr/src/sys-${RV} does not exist, create it.
Comment 3 Alexis Ballier gentoo-dev 2013-01-28 13:01:31 UTC
(In reply to comment #1)
> Created attachment 337094 [details, diff] [details, diff]
> patch for freebsd-lib-9.1.ebuild
> 
> Extract ${SYS} in all cases.

nope, you are supposed to have it as a symlink to your freebsd-sources install. and doing this without taking care of its patches is a no go anyway.
Comment 4 Yuta SATOH 2013-01-28 13:35:24 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Created attachment 337094 [details, diff] [details, diff] [details, diff]
> > patch for freebsd-lib-9.1.ebuild
> > 
> > Extract ${SYS} in all cases.
> 
> nope, you are supposed to have it as a symlink to your freebsd-sources
> install. and doing this without taking care of its patches is a no go anyway.

Thank you for your comment.

As you say, I have confirmed that patch for freebsd-lib is not required.
I think that it needs a patch for freebsd-sources.


FYI,
Result of running `emerge freebsd-sources` without USE=symlink.

$ ls -lha /usr/src
lrwxr-xr-x   1 root  wheel      10B May  5  2012 sys -> sys-9.0-r0
lrwxr-xr-x   1 root  wheel      10B May  5  2012 sys-9.0 -> sys-9.0-r0
drwxr-xr-x  57 root  wheel     1.0k May  5  2012 sys-9.0-r0
drwxr-xr-x  57 root  wheel     1.0k Jan 26 01:18 sys-9.1
Comment 5 Alexis Ballier gentoo-dev 2013-01-28 13:41:42 UTC
what we could do: use $PV instead of $PVR for slot in freebsd-sources, install to sys-${PV} and it should fix the problems, no?
Comment 6 Yuta SATOH 2013-01-28 14:10:11 UTC
Created attachment 337104 [details, diff]
using ${RV} way patch for freebsd-sources-9.1.ebuild

(In reply to comment #5)
> what we could do: use $PV instead of $PVR for slot in freebsd-sources,
> install to sys-${PV} and it should fix the problems, no?

I think ${RV} is better.
When version beta/rc, problem occurs again.

I was confirmed to solve this problem by applying the patch attached.
Comment 7 Alexis Ballier gentoo-dev 2013-01-29 13:26:42 UTC
(In reply to comment #6)
> Created attachment 337104 [details, diff] [details, diff]
> using ${RV} way patch for freebsd-sources-9.1.ebuild
> 
> (In reply to comment #5)
> > what we could do: use $PV instead of $PVR for slot in freebsd-sources,
> > install to sys-${PV} and it should fix the problems, no?
> 
> I think ${RV} is better.
> When version beta/rc, problem occurs again.
> 
> I was confirmed to solve this problem by applying the patch attached.

applied, thanks!
(and indeed RV is better)