genpi64-overlay icon indicating copy to clipboard operation
genpi64-overlay copied to clipboard

[WIP] profiles: remove obsolete package.accept_keywords entries

Open andrey-utkin opened this issue 4 years ago • 5 comments

The removed entries are now keyworded for both arm and arm64 in main Gentoo tree.

Bash script:

cat profiles/targets/rpi3/package.accept_keywords/* \
| grep -v -E '^$|^#|^=' \
| awk '{ print $1 }' \
| sort -u \
| while read CATPN; do
      REPO=/usr/portage
      if grep -q 'KEYWORDS=.*arm .*arm64' $REPO/$CATPN/*.ebuild &>/dev/null; then
          echo $CATPN
      fi
  done \
| while read CATPN; do
      # How the heck to not match anything which just begins with CATPN and has some suffix?
      sed -i -e "\\:^${CATPN}:d" profiles/targets/rpi3/package.accept_keywords/*
  done \
  ;

find profiles/targets/rpi3/package.accept_keywords/* -empty | xargs git rm -f

andrey-utkin avatar Jul 05 '19 22:07 andrey-utkin

Thanks, been meaning to do that for some time ^-^

Unfortunately, as I'm travelling atm, I can't immediately check the impact of this.

Would you mind therefore getting a current copy of the gentoo-on-rpi3-64bit image, applying this PR, then doing a pretend emptytree @world emerge (with bdeps) to ensure nothing wants to be downgraded (or worse!) as a result?

If that works out OK, I'll merge it.

Best, sakaki

[email protected]

sakaki- avatar Jul 08 '19 00:07 sakaki-

Will take me a while to get back to this, sorry, don't be surprised.

andrey-utkin avatar Jul 16 '19 11:07 andrey-utkin

I reviewed what I was attempting to do here, and realized that my previous approach was too far from correctness.

I have run emerge --pretend --emptytree --with-bdeps=y @world, and got this result:

Total: 1122 packages (1 downgrade, 1 in new slot, 1120 reinstalls, 1118 binaries), Size of downloads: 670,296 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

media-sound/pulseaudio:0

  (media-sound/pulseaudio-13.0:0/0::gentoo, ebuild scheduled for merge) conflicts with
    >=media-sound/pulseaudio-12.2-r3[rpi-deglitch(-)] required by (dev-embedded/rpi-64bit-meta-1.5.1-r7:0/0::genpi64, binar
y scheduled for merge)


media-video/ffmpeg:0

  (media-video/ffmpeg-4.2.1:0/56.58.58::gentoo, ebuild scheduled for merge) conflicts with
    >=media-video/ffmpeg-4.2-r1[v4l2m2m-fix(-)] required by (dev-embedded/rpi-64bit-meta-1.5.1-r7:0/0::genpi64, binary sche
duled for merge)


sys-boot/rpi3-64bit-firmware:0

  (sys-boot/rpi3-64bit-firmware-1.20190925:0/0::genpi64, ebuild scheduled for merge) conflicts with
    ~sys-boot/rpi3-64bit-firmware-1.20190819[-dtbo(+)] required by (sys-kernel/bcm2711-kernel-bis-bin-4.19.73.20190924:0/0:
:genpi64, binary scheduled for merge)
    ^                             ^^^^^^^^^^
    ~sys-boot/rpi3-64bit-firmware-1.20190819[-dtbo(+)] required by (sys-kernel/bcmrpi3-kernel-bis-bin-4.19.73.20190924:0/0:
:genpi64, binary scheduled for merge)
    ^                             ^^^^^^^^^^

The only downgrade is media-gfx/gimp, and it is explanable - the package has "just recently" got keyworded arm64, but not in the latest ebuilds unfortunately.

I am now re-running having added --usepkg=n --getbinpkg=n.

andrey-utkin avatar Oct 03 '19 23:10 andrey-utkin

I see the same conflicts if i run the same command without my patch. So perhaps exactly that command is not indicative?

andrey-utkin avatar Oct 03 '19 23:10 andrey-utkin

30 Oct 2020: sadly, due legal obligations arising from a recent change in my 'real world' job, I must announce I am standing down as maintainer of this project with immediate effect. For the meantime, I will leave the repo up (for historical interest, and since the ebuilds etc. may be of use for others looking to take forward Gentoo on 64-bit RPi systems); however, there will be no further updates to the underlying binhost etc., nor will I be accepting / actioning further pull requests or bug reports from this point. Email requests for support will also have to be politely declined, so, please treat this as an effective EOL notice.

For further details, please see my post here.

Many thanks for your interest in this project!

With sincere apologies, sakaki ><

sakaki- avatar Oct 30 '20 17:10 sakaki-