[gentoo-user] Re: upgrade to gcc-6.4.0

2018-03-30 Thread Kai Krakow
Am Thu, 15 Mar 2018 20:37:45 -0600 schrieb thelma:

> On 03/15/2018 08:26 PM, the...@sys-concept.com wrote:
>> I'm upgrading one of my older boxes to newer gcc-6.4.0
>> After switching to gcc-6.4.0 
>> source /etc/profile
>> 
>> running: emerge --ask --oneshot sys-devel/libtool
>> 
>> !!! Your current profile is deprecated and not supported anymore.
>> !!! Use eselect profile to update your profile.
>> !!! Please upgrade to the following profile if possible:
>> 
>> default/linux/amd64/17.0/desktop
>> 
>> You may use the following command to upgrade:
>> 
>> eselect profile set default/linux/amd64/17.0/desktop
>> 
>> 
>> These are the packages that would be merged, in order:
>> 
>> Calculating dependencies... done!
>> [ebuild U  ] sys-devel/automake-1.15.1-r2 [1.15-r2] USE="{-test%}" 
>> [ebuild   R] sys-devel/libtool-2.4.6-r3 
>> [blocks B  ] > blocking sys-devel/libtool-2.4.6-r3)
>> 
>>  * Error: The above package list contains packages which cannot be
>>  * installed at the same time on the same system.
>> --
>> I did not switch to new profile "17" yet.  I was trying to rebuild 
>> "sys-devel/libtool" first, but got a blocker.
> 
> I upgraded the "sys-apps/sandbox" and now it allows me to run:
> emerge --ask --oneshot sys-devel/libtool
> 
> So why didn't emerge do it automatically, upgrade the "sandbox" ?

Running "emerge --oneshot" doesn't consider reverse dependencies.

You can manually inject those with

# emerge --ask --oneshot sys-devel/libtool --reinstall-atoms=sys-apps/sandbox
 

If you want to inject more than one dependency, use

# ... --reinstall-atoms={a,b,c}

or

# ... --reinstall-atoms="a b c"


-- 
Regards,
Kai

Replies to list-only preferred.




Re: [gentoo-user] Re: upgrade to gcc-6.4.0

2018-03-15 Thread thelma
On 03/15/2018 08:51 PM, Nikos Chantziaras wrote:
[snip]

>> I did not switch to new profile "17" yet.  I was trying to rebuild
>> "sys-devel/libtool" first, but got a blocker.
> 
> There's a news item describing how to upgrade the profile. It involves a
> full world rebuild though, so you should probably schedule that
> appropriately.
> 
>   $ eselect news list
> 
> to see current news items. The item in question has the title:
> 
>   [number] New 17.0 profiles in the Gentoo repository
> 
> to read it, use:

Yes, I was following it.

--quote---
 If you are not already running a hardened setup with PIE enabled, then
switching the profile involves the following steps:
If not already done,
* Use gcc-config to select gcc-6.4.0 or later as system compiler
* Re-source /etc/profile:
. /etc/profile
* Re-emerge libtool
emerge -1 sys-devel/libtool
Then,
* Select the new profile with eselect
* Re-emerge, in this sequence, gcc, binutils, and glibc
emerge -1 sys-devel/gcc:6.4.0
emerge -1 sys-devel/binutils
emerge -1 sys-libs/glibc
* Rebuild your entire system
emerge -e @world
end quote--

Though, I still run onto the error I posted above but it is solved now.

---
Thelma



[gentoo-user] Re: upgrade to gcc-6.4.0

2018-03-15 Thread Nikos Chantziaras

On 16/03/18 04:26, the...@sys-concept.com wrote:

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

 default/linux/amd64/17.0/desktop

You may use the following command to upgrade:

 eselect profile set default/linux/amd64/17.0/desktop
[...]
I did not switch to new profile "17" yet.  I was trying to rebuild 
"sys-devel/libtool" first, but got a blocker.


There's a news item describing how to upgrade the profile. It involves a 
full world rebuild though, so you should probably schedule that 
appropriately.


  $ eselect news list

to see current news items. The item in question has the title:

  [number] New 17.0 profiles in the Gentoo repository

to read it, use:

  $ eselect news read [number]