Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 640184

Summary: powerpc: please prepare migration off SYMLINK_LIB=yes
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: ProfilesAssignee: PPC Porters <ppc>
Status: IN_PROGRESS ---    
Severity: normal CC: chewi, gentoo, ppc64, sam, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 641474    
Bug Blocks: 715680, 506276    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-12-07 17:00:59 UTC
default/linux/powerpc/ppc64/13.0/64bit-userland/make.defaults:SYMLINK_LIB="yes"
default/linux/powerpc/ppc64/17.0/64bit-userland/make.defaults:SYMLINK_LIB="yes"
hardened/linux/powerpc/ppc64/64bit-userland/make.defaults:SYMLINK_LIB="yes"

We'd like to kill SYMLINK_LIB support completely. Please look into preparing a new 17.1 profiles that don't use that.

You may check if app-portage/unsymlink-lib tool can be of use. It's been made for amd64 but it might work for ppc64 as well if the layout is compatible enough. If you need some changes to make it work on ppc64, let me know.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-01-09 23:27:11 UTC
At the very least we will need to recover from 17.0 breakage: bug #641474
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-10 08:36:37 UTC
Well, there's no reason why you couldn't disable SYMLINK_LIB while staying with the 'old' gcc.
Comment 3 Matt Turner gentoo-dev 2018-10-07 03:40:42 UTC
Looks good to go according to my testing. I'll make some 17.1 profiles for ppc64.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2020-01-25 07:47:31 UTC
new profiles are here ready for review

https://github.com/gentoo/gentoo/pull/14413

I did not go with 17.1 name as I'm flattening and changing structure anyway, not sure it's really needed.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2020-04-01 03:08:51 UTC
taking bug, I'm working on it.
moving ppc64 to CC. sorry for spam.
Comment 6 Larry the Git Cow gentoo-dev 2020-09-20 03:01:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6a5797ebe100a38c4b9806314e9c8dc2754cb66

commit b6a5797ebe100a38c4b9806314e9c8dc2754cb66
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-09-20 02:59:51 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-09-20 03:00:45 +0000

    app-portage/unsymlink-lib: add ~ppc64 keyword
    
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Package-Manager: Portage-3.0.7, Repoman-3.0.1
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 app-portage/unsymlink-lib/unsymlink-lib-18.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 Larry the Git Cow gentoo-dev 2021-07-05 23:23:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9e23142d3801ebf0d3b990607397bd0c4964e92

commit f9e23142d3801ebf0d3b990607397bd0c4964e92
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-07-05 23:19:53 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-07-05 23:22:27 +0000

    profiles: enable default/linux/ppc64/17.0/systemd as exp
    
    new nosymlink-lib profile
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/default/linux/ppc64/17.0/systemd/eapi   | 1 +
 profiles/default/linux/ppc64/17.0/systemd/parent | 2 ++
 profiles/profiles.desc                           | 1 +
 3 files changed, 4 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2021-07-19 07:24:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d5c09f404df0f04e5f2627e7715157cad25839

commit b8d5c09f404df0f04e5f2627e7715157cad25839
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-07-19 07:09:47 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-07-19 07:20:40 +0000

    profiles/default/linux/ppc64: add symlink bashrc check
    
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/default/linux/ppc64/profile.bashrc | 9 +++++++++
 1 file changed, 9 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2021-07-20 13:09:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=d6cd3ef9df27d59b49831d647e7ff71c5f722a8c

commit d6cd3ef9df27d59b49831d647e7ff71c5f722a8c
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-07-09 01:53:17 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-07-20 13:08:59 +0000

    2021-07-17-new-ppc64-profiles: add new item
    
    a lot of text taken from 17.1 profile news item:
    2019-06-05-amd64-17-1-profiles-are-now-stable.en.txt
    
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../2021-07-17-new-ppc64-profiles.en.txt           | 78 ++++++++++++++++++++++
 1 file changed, 78 insertions(+)
Comment 10 Georgy Yakovlev archtester gentoo-dev 2021-07-23 02:01:45 UTC
as of https://gitweb.gentoo.org/proj/releng.git/commit/?id=2b6807ae87d74d8fed6f22a6bae1b1707c24dc9c
new ppc64 stages should come with new profile.

new profiles enabled.
profile bashrc migration checker added:

got user reports that switching profile via unsymlink-lib is smooth ( we are riding amd64 success here)


TODO:
figure out ppc(32) profiles with multilib/64bit userland
implement migration for ppc(32) profiles
deprecate old ppc64be profiles
deprecate old ppc(32) profiles
Comment 11 Larry the Git Cow gentoo-dev 2021-08-03 01:05:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8f1b685e26a83eedb2b1000369ef57a7fca9c91

commit d8f1b685e26a83eedb2b1000369ef57a7fca9c91
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-08-03 01:04:19 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-08-03 01:04:19 +0000

    profiles: drop old ppc64le profiles
    
    have been deprecated for more than a year, migration was trivial
    
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../linux/powerpc/ppc64/17.0/64bit-userland/little-endian/deprecated | 2 --
 .../linux/powerpc/ppc64/17.0/64bit-userland/little-endian/eapi       | 1 -
 .../powerpc/ppc64/17.0/64bit-userland/little-endian/make.defaults    | 5 -----
 .../linux/powerpc/ppc64/17.0/64bit-userland/little-endian/parent     | 2 --
 .../ppc64/17.0/64bit-userland/little-endian/systemd/deprecated       | 2 --
 .../powerpc/ppc64/17.0/64bit-userland/little-endian/systemd/eapi     | 1 -
 .../powerpc/ppc64/17.0/64bit-userland/little-endian/systemd/parent   | 2 --
 profiles/profiles.desc                                               | 2 --
 8 files changed, 17 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b090e1175e08c7862bf7475e1b3e847a41b8dd71

commit b090e1175e08c7862bf7475e1b3e847a41b8dd71
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-08-03 01:02:42 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-08-03 01:02:42 +0000

    profiles/profiles.desc: downgrade old ppc64 profiles to dev
    
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/profiles.desc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5d4a6df750b6696bc17c185d360c6a69c8221a5

commit d5d4a6df750b6696bc17c185d360c6a69c8221a5
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-08-03 00:59:34 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-08-03 01:00:16 +0000

    profiles/default/linux/powerpc/ppc64/17.0/64bit-userland: deprecate
    
    deprecate this profile tree
    
    Bug: https://bugs.gentoo.org/640184
    Bug: https://bugs.gentoo.org/715680
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../powerpc/ppc64/17.0/64bit-userland/deprecated   | 69 ++++++++++++++++++++++
 .../ppc64/17.0/64bit-userland/desktop/deprecated   | 69 ++++++++++++++++++++++
 .../17.0/64bit-userland/desktop/gnome/deprecated   | 69 ++++++++++++++++++++++
 .../desktop/gnome/systemd/deprecated               | 69 ++++++++++++++++++++++
 .../ppc64/17.0/64bit-userland/developer/deprecated | 69 ++++++++++++++++++++++
 5 files changed, 345 insertions(+)
Comment 12 Georgy Yakovlev archtester gentoo-dev 2021-11-23 21:37:14 UTC
ok this is mostly done.

remaining are ppc64/32bit userland profiles which I'm planning to deprecate soon as I figure out migration procedure.
Comment 13 Larry the Git Cow gentoo-dev 2022-09-19 03:21:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aefbca58ac8384e54ecb58581ff1bb37f9339b5d

commit aefbca58ac8384e54ecb58581ff1bb37f9339b5d
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2022-09-19 03:16:19 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-09-19 03:17:55 +0000

    profiles: drop default/linux/powerpc/ppc64/17.0/64bit-userland profiles
    
    Bug: https://bugs.gentoo.org/715680
    Bug: https://bugs.gentoo.org/640184
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../powerpc/ppc64/17.0/64bit-userland/deprecated   | 69 ----------------------
 .../ppc64/17.0/64bit-userland/desktop/deprecated   | 69 ----------------------
 .../powerpc/ppc64/17.0/64bit-userland/desktop/eapi |  1 -
 .../17.0/64bit-userland/desktop/gnome/deprecated   | 69 ----------------------
 .../ppc64/17.0/64bit-userland/desktop/gnome/eapi   |  1 -
 .../ppc64/17.0/64bit-userland/desktop/gnome/parent |  2 -
 .../desktop/gnome/systemd/deprecated               | 69 ----------------------
 .../17.0/64bit-userland/desktop/gnome/systemd/eapi |  1 -
 .../desktop/gnome/systemd/merged-usr/eapi          |  1 -
 .../desktop/gnome/systemd/merged-usr/parent        |  2 -
 .../64bit-userland/desktop/gnome/systemd/parent    |  2 -
 .../ppc64/17.0/64bit-userland/desktop/parent       |  2 -
 .../ppc64/17.0/64bit-userland/developer/deprecated | 69 ----------------------
 .../ppc64/17.0/64bit-userland/developer/eapi       |  1 -
 .../ppc64/17.0/64bit-userland/developer/parent     |  2 -
 .../linux/powerpc/ppc64/17.0/64bit-userland/eapi   |  1 -
 .../ppc64/17.0/64bit-userland/make.defaults        |  5 --
 .../linux/powerpc/ppc64/17.0/64bit-userland/parent |  2 -
 profiles/profiles.desc                             |  5 --
 19 files changed, 373 deletions(-)