Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491774 - profiles: MASKED PACKAGES error occurs when upgrading to freebsd-sources-9.2 from -9.1.
Summary: profiles: MASKED PACKAGES error occurs when upgrading to freebsd-sources-9.2 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal enhancement (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 14:29 UTC by Yuta SATOH
Modified: 2015-05-22 13:31 UTC (History)
1 user (show)

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


Attachments
sample patch for profiles/releases/freebsd-9.2/package.mask (491774.patch,1.06 KB, patch)
2013-11-20 14:35 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-11-20 14:29:57 UTC
I want to change the upgrade steps below.

1. eselect profile set default/bsd/fbsd/amd64/9.2
2. USE="build-generic" emerge freebsd-sources
3. reboot
4. update FreeBSD's userland.


However, it does not work because -usbin is masked.
Please change the p.mask for ease the upgrade or please comment a better way.

Thanks in advance.


# emerge -pv freebsd-sources

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] sys-freebsd/freebsd-mk-defs-9.2 [9.1] USE="-profile" 16 kB
[ebuild  NS    ] sys-freebsd/freebsd-sources-9.2:0 [9.1-r1:9.1] USE="build-generic -dtrace -profile" 17 kB
[ebuild     U  ] sys-freebsd/freebsd-contrib-9.2 [9.1] USE="-profile" 934 kB
[ebuild     U  ] sys-freebsd/freebsd-lib-9.2 [9.1-r2] USE="ipv6 ssl -atm -bluetooth -build -hesiod (-kerberos) -netware -profile -usb -zfs (-bootstrap%) (-multilib%*)" ABI_X86="(32%*) (64%*) (-x32)" 5,772 kB
[uninstall     ] dev-libs/libelf-0.8.13-r1  USE="nls -debug"
[blocks b      ] dev-libs/libelf ("dev-libs/libelf" is blocking sys-freebsd/freebsd-lib-9.2)
[ebuild     U  ] sys-freebsd/freebsd-ubin-9.2 [9.1] USE="ipv6 ssl -ar -atm -audit -bluetooth -build (-kerberos) -netware -nis -profile -usb -zfs" ABI_X86="(32%*) (64%*) (-x32)" 7 kB
[ebuild     U  ] sys-freebsd/freebsd-libexec-9.2 [9.1] USE="ipv6 pam ssl (-kerberos) -nis -profile -xinetd" ABI_X86="(32%*) (64%*) (-x32)" 0 kB
[ebuild     U  ] sys-freebsd/freebsd-usbin-9.2 [9.1] USE="ipv6 pam ssl -acpi -atm -audit -bluetooth -build -floppy (-kerberos) -minimal -netware -nis -profile -usb" 1,274 kB

Total: 7 packages (6 upgrades, 1 in new slot, 1 uninstall), Size of downloads: 8,017 kB
Conflict: 1 block

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-freebsd/freebsd-libexec:0

  (sys-freebsd/freebsd-libexec-9.1::gentoo, installed) pulled in by
    =sys-freebsd/freebsd-libexec-9.1* required by (sys-freebsd/freebsd-sbin-9.1::gentoo, installed)

  (sys-freebsd/freebsd-libexec-9.2::gentoo, ebuild scheduled for merge) pulled in by
    =sys-freebsd/freebsd-libexec-9.2* required by (sys-freebsd/freebsd-usbin-9.2::gentoo, ebuild scheduled for merge)

sys-freebsd/freebsd-lib:0

  (sys-freebsd/freebsd-lib-9.1-r2::gentoo, installed) pulled in by
    =sys-freebsd/freebsd-lib-9.1* required by (sys-freebsd/freebsd-libexec-9.1::gentoo, installed)
    (and 2 more with the same problem)

  (sys-freebsd/freebsd-lib-9.2::gentoo, ebuild scheduled for merge) pulled in by
    =sys-freebsd/freebsd-lib-9.2*[usb?,bluetooth?,netware?] required by (sys-freebsd/freebsd-usbin-9.2::gentoo, ebuild scheduled for merge)
    >=sys-freebsd/freebsd-lib-9.1-r11[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?] required by (sys-freebsd/freebsd-libexec-9.2::gentoo, ebuild scheduled for merge)
    (and 2 more with the same problems)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


!!! The following installed packages are masked:
- sys-freebsd/freebsd-share-9.1::gentoo (masked by: package.mask)
/usr/portage/profiles/releases/freebsd-9.2/package.mask:
# Make sure we don't get wrong versions

- sys-freebsd/freebsd-sbin-9.1::gentoo (masked by: package.mask)
- sys-freebsd/freebsd-bin-9.1::gentoo (masked by: package.mask)
- sys-freebsd/freebsd-pam-modules-9.1::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 1 Yuta SATOH 2013-11-20 14:35:07 UTC
Created attachment 363658 [details, diff]
sample patch for profiles/releases/freebsd-9.2/package.mask

Please keep <freebsd-cddl-9.2_alpha and <freebsd-usbin-9.1_alpha.

NOTE,
<freebsd-cddl-9.2_alpha is the information for 10.0 profile.
Comment 2 Greg Trigg 2013-12-09 03:48:14 UTC
(In reply to Yuta SATOH from comment #0)
> I want to change the upgrade steps below.
> 
> 1. eselect profile set default/bsd/fbsd/amd64/9.2
> 2. USE="build-generic" emerge freebsd-sources
> 3. reboot
> 4. update FreeBSD's userland.
> 

Is this a replacement for the upgrade steps outlined in the Gentoo FreeBSD Wiki?  Is this all I have to do to upgrade from 9.1 to 9.2?
Comment 3 Yuta SATOH 2013-12-12 15:31:11 UTC
(In reply to Greg Trigg from comment #2)
> (In reply to Yuta SATOH from comment #0)
> > I want to change the upgrade steps below.
> > 
> > 1. eselect profile set default/bsd/fbsd/amd64/9.2
> > 2. USE="build-generic" emerge freebsd-sources
> > 3. reboot
> > 4. update FreeBSD's userland.
> > 
> 
> Is this a replacement for the upgrade steps outlined in the Gentoo FreeBSD
> Wiki?  Is this all I have to do to upgrade from 9.1 to 9.2?

I have written about upgrading from a very old version (7.2).
When the minor upgrade, a lot of skippable description...

All you need to do is the following 5-steps.

1. Change to latest profile
2. Updating sys-apps/portage
3. Kernel update & reboot (USE="build-generic" emerge freebsd-sources && reboot)
   FYI, Create and install the kernel automatically from 9.2.
4. Updating FreeBSD userland
5. Cleaning


I don't plan to update wiki for 9.2.
Because FreeBSD 10.0 released soon.
Comment 4 Yuta SATOH 2015-05-22 13:31:13 UTC
9.2 is deprecated. Contains fixed in 10.1.