• [gentoo-user] Manually updating gentoo-sources

    From Dale@21:1/5 to All on Fri Feb 4 01:00:01 2022
    Howdy,

    I found a old email from Neil, hope you see this, and I think I followed
    it correctly but maybe I either missed something or things have changed
    since those instructions were posted.  What I'm wanting to do, update gentoo-sources manually and remove them manually as well but running
    emerge -auDN world doesn't pull in newer versions and --depclean leaves
    the older versions alone as well.  Following the email info, I ended up
    with this:


    root@fireball / # cat /etc/portage/sets.conf
    [kernels]
    class = portage.sets.dbapi.OwnerSet
    world-candidate = False
    files = /usr/src
    root@fireball / # cat /etc/portage/sets/kernels
    sys-kernel/gentoo-sources
    root@fireball / #



    and this I've tried with and without:


    root@fireball / # cat /var/lib/portage/world_sets
    kernels
    root@fireball / #



    This is what I get tho:



    root@fireball / # emerge -auDN world
    Error during set creation: Redefinition of set 'kernels' (sections:
    'usersets', 'kernels')

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



    There's nothing in the world file for gentoo-sources so it should be the
    sets that pulls anything in.  For some reason tho, it wants to update
    when I run my usual update world command.  That's not what I'm looking
    for.  Did I miss something?  Have things changed and I need to adjust something to the new way? 

    Thanks.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Dale on Fri Feb 4 09:20:01 2022
    On Thu, 3 Feb 2022 17:49:59 -0600, Dale wrote:
    I found a old email from Neil, hope you see this, and I think I followed
    it correctly but maybe I either missed something or things have changed
    since those instructions were posted.  What I'm wanting to do, update gentoo-sources manually and remove them manually as well but running
    emerge -auDN world doesn't pull in newer versions and --depclean leaves
    the older versions alone as well.  Following the email info, I ended up
    with this:

    root@fireball / # cat /etc/portage/sets.conf
    [kernels]
    class = portage.sets.dbapi.OwnerSet
    world-candidate = False
    files = /usr/src

    I do this.

    root@fireball / # cat /etc/portage/sets/kernels
    sys-kernel/gentoo-sources
    root@fireball / #

    But not this.

    and this I've tried with and without:


    root@fireball / # cat /var/lib/portage/world_sets
    kernels
    root@fireball / #

    If you add the set to world_sets, it's the same as putting the kernel in
    world.

    This is what I get tho:

    root@fireball / # emerge -auDN world
    Error during set creation: Redefinition of set 'kernels' (sections: 'usersets', 'kernels')

    That's because there's already a set called kernels - emerge --list-sets
    will show you all of them. Just rename your set.


    --
    Neil Bothwick

    without C people would code in Basi, Pasal and Obol

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmH838EACgkQ92eFu0QS MJg1dg//dIe3bC6QUP9xRV1hgoPeXiHSmopryEKM7pkFxK88gMq+9OKaO7nPJ89M Rwre1HVB1YaUxRZnlDnUDRc2VdlVMMkOTXx4JQHjPcGr/YweHxQrCDJzYyr+dQVS +4O2We2Sc+Si+xFS82dfR+wlenCEOKEemANXW7g1yfq90ajTJ9fRjo77gYnDT0ph hevJQIlZnR3m8ZOjfSSHP9mF6KfDKoq7nwh0PiUDHhrOZ9ye1Pz28E2GE5pNzrNj jEAhEZrX77TxHT7gil3dBgD74ZAmsbNoiixf57gD7ZKAifMwKYeKojYCj/p/TRv/ fcaiGkPmyNqINv6vOF3SBPWA0xxPbMpgCDphChZ4ogGvnjMsQ/guZlb2E1RxIs+V cB/Ri0Y7HocmqFlndAyFMQ5jfQmWiczpxb8gTN5PERFMz5jgn7R1U0beqj9PjLbB p2B4R0l91XbRifdgo/MHqEwwgGOIubBNG9+7gwEOP4ezsv32HWJzH+z9JwIjAjeF UhijhQVADj8ODLnwL1qWCx/cA89ZqwQaDsoZpGQMBv0asl036NK2PubPpVlhX10p KuAmc5e2uD5VXvpNzbukBJ5Y59nAYvH32xXf1ccJNkUPz4KCShPgsQzocxWfw/Ev aPgbOTq3OtAdhO47l1i8LcmGFmZRQ1td5RcOzdaEWWYAXjfS0xY=
    =1s/U
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Neil Bothwick on Fri Feb 4 18:50:01 2022
    Neil Bothwick wrote:
    On Thu, 3 Feb 2022 17:49:59 -0600, Dale wrote:
    I found a old email from Neil, hope you see this, and I think I followed
    it correctly but maybe I either missed something or things have changed
    since those instructions were posted.  What I'm wanting to do, update
    gentoo-sources manually and remove them manually as well but running
    emerge -auDN world doesn't pull in newer versions and --depclean leaves
    the older versions alone as well.  Following the email info, I ended up
    with this:

    root@fireball / # cat /etc/portage/sets.conf
    [kernels]
    class = portage.sets.dbapi.OwnerSet
    world-candidate = False
    files = /usr/src
    I do this.

    I renamed this to gentoo-sources.  Like this:

    root@fireball / # cat /etc/portage/sets.conf
    [gentoo-sources]
    class = portage.sets.dbapi.OwnerSet
    world-candidate = False
    files = /usr/src
    root@fireball / #



    root@fireball / # cat /etc/portage/sets/kernels
    sys-kernel/gentoo-sources
    root@fireball / #
    But not this.

    Removed that.



    and this I've tried with and without:


    root@fireball / # cat /var/lib/portage/world_sets
    kernels
    root@fireball / #
    If you add the set to world_sets, it's the same as putting the kernel in world.

    Removed that too. 

    This is what I get tho:
    root@fireball / # emerge -auDN world
    Error during set creation: Redefinition of set 'kernels' (sections:
    'usersets', 'kernels')
    That's because there's already a set called kernels - emerge --list-sets
    will show you all of them. Just rename your set.




    OK.  Renamed as above and I get this now:


    root@fireball / # emerge -auDN world

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

    Calculating dependencies... done!
    [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo, 5.14.15:5.14.15::gentoo, 5.15.17:5.15.17::gentoo] USE="-build -experimental -symlink" 120,568 KiB

    Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB

    Would you like to merge these packages? [Yes/No]

    It still wants to upgrade.  Could it be that something is pulling it in
    as a dependency or something?  Am I still doing something wrong? This is
    a update to the above:


    root@fireball / # cat /etc/portage/sets.conf
    [gentoo-sources]
    class = portage.sets.dbapi.OwnerSet
    world-candidate = False
    files = /usr/src
    root@fireball / # cat /etc/portage/sets/kernels
    cat: /etc/portage/sets/kernels: No such file or directory
    root@fireball / # cat /var/lib/portage/world_sets
    root@fireball / # root@fireball / # cat /var/lib/portage/world | grep kernel sys-kernel/dracut
    #sys-kernel/gentoo-sources:5.10.46
    #sys-kernel/gentoo-sources:5.14.15
    #sys-kernel/gentoo-sources:5.15.17
    #sys-kernel/gentoo-sources:5.6.7
    sys-kernel/linux-firmware
    root@fireball / #


    Note the gentoo-sources is commented out, thought it might help.


    Thoughts? Thanks.

    Dale

    :-) :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Neil Bothwick on Sat Feb 5 01:00:01 2022
    Neil Bothwick wrote:
    On Fri, 4 Feb 2022 11:44:01 -0600, Dale wrote:

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

    Calculating dependencies... done!
    [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo
    [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo, 5.14.15:5.14.15::gentoo,
    5.15.17:5.15.17::gentoo] USE="-build -experimental -symlink" 120,568 KiB

    Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB

    Would you like to merge these packages? [Yes/No]

    It still wants to upgrade.  Could it be that something is pulling it in
    as a dependency or something?  Am I still doing something wrong? This is
    a update to the above:
    It is probably being pulled in as a dependency of virtual/linux-sources, which is part of your profile.




    So I need to go back to my old way, mask them all and unmask when I want
    to upgrade?  It's what I'm used to doing anyway.  lol 

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Dale on Sat Feb 5 00:40:01 2022
    On Fri, 4 Feb 2022 11:44:01 -0600, Dale wrote:

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

    Calculating dependencies... done!
    [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo, 5.14.15:5.14.15::gentoo, 5.15.17:5.15.17::gentoo] USE="-build -experimental -symlink" 120,568 KiB

    Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB

    Would you like to merge these packages? [Yes/No]

    It still wants to upgrade.  Could it be that something is pulling it in
    as a dependency or something?  Am I still doing something wrong? This is
    a update to the above:

    It is probably being pulled in as a dependency of virtual/linux-sources,
    which is part of your profile.


    --
    Neil Bothwick

    Would a fly without wings be called a walk?

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmH9uG4ACgkQ92eFu0QS MJjDRBAAq/n2Dg6H/h5R4PouBMjDd/OTJSfwfVctNnIJx7+E9W9rOx8JkWJHKooP 0+FQs9fQFdJoETcTUCgKcLl5Gpxg6RmR2yMCA2CTHUhoi5Y6AewAkWbjIpNd1RHB J8dAn52BUCP4WM2Sf7MQgWkre50MM40BO+6yXDBPJqExS01iO0ZcjNmhAFs8G0Is Ot9UfmQ6vCcQmyI3rMo8wxDLvMecswCzmADyVUDujpxYLEA4FzKc/exWgj36Fjz3 HLTdRXa20BCquLcMmOAQ08s56ZQv4hxJ9up5eLjp00eFbamjgsRwd27HPWU2D8D3 FmyKELN4Yw2vHRhxmYA8QjrW1dhEMEW6SgF1JalTMX3JSU0wMxVemCOIaBvSQUBq 0lInjyyYQDQ1CDnR0/9ZxRhsR/Aw/AngA11xQEhHgNX6Ckg0h5cEAwfeIfZhE92k qkaH7g+OigqVzYSdBs2QgqUD2fOQRqoZ/PH2kuWc4oTQ5b7PPEkV2m47gvnKIfJm IeZ4heBntGcSt8+tyjORwk57CruHmTQ6NcLRhlAN9vpFo39fCH6XGM3ga2MW+BRy tDZGrEMdZ9fgdsZ5RRiUjfdmUaQgsjg9dRCQPPDdfHnulk2jIWfmjPygjajfJP2i f95Xc2ZURlGv0lY9nzcmplvze8yoWVf+mjZIDaFfgrLNM3I3bqQ=
    =shhE
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Dale on Sat Feb 5 09:00:02 2022
    On Fri, 4 Feb 2022 17:53:36 -0600, Dale wrote:

    Calculating dependencies... done!
    [ebuild  NS   ~] sys-kernel/gentoo-sources-5.16.3:5.16.3::gentoo
    [5.6.7:5.6.7::gentoo, 5.10.46:5.10.46::gentoo,
    5.14.15:5.14.15::gentoo, 5.15.17:5.15.17::gentoo] USE="-build
    -experimental -symlink" 120,568 KiB

    Total: 1 package (1 in new slot), Size of downloads: 120,568 KiB

    Would you like to merge these packages? [Yes/No]

    It still wants to upgrade.  Could it be that something is pulling it
    in as a dependency or something?  Am I still doing something wrong?
    This is a update to the above:
    It is probably being pulled in as a dependency of
    virtual/linux-sources, which is part of your profile.

    So I need to go back to my old way, mask them all and unmask when I want
    to upgrade?  It's what I'm used to doing anyway.  lol 

    You're using ~amd64 sources, which means they update frequently. I found
    this annoying so I only use the stable sources, even on ~amd64 systems to
    keep updates to a reasonable level while ensuring I don't miss important updates. I added this to package.accept_keywords

    sys-kernel/gentoo-sources -~amd64
    sys-kernel/linux-headers -~amd64

    Having said that, it wants to install a new kernel this morning :-/


    --
    Neil Bothwick

    If you can smile when things go wrong, you have someone in mind to blame.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmH+Lc0ACgkQ92eFu0QS MJjvFBAApU97PFLSVpw4ePTqnWKdn3HWIQSFiPAuV6RuIVHBa2Bd0jaH4HhZSnk4 NFGcy2+RyWHMH58GjgpdfzGHpeTDoStvsQTPZ64qa5co+FxEBiY7lFySubtdc1cV g0dZDks27f90PECm8QmRzPp4FxilJcZoocUUXnm8pnDmzh7Hjyvskw4N9nvP6lE4 yCYcDPLdxyy4SbTmjO+HjQ4nvmT0CQjihW0kV0xGKnPFegvqYdgMK4j1gEw8W/lZ fPwX9bZx0UdQvEL4osMYpuKN5ClsfbTr//RQ4CyCyFJ590bn9OvxH8zl6gfcTgcH 1sbVKefYU3A3sGfrQSbXCb9dCX0uw55+bDuRF/wsBbm298Zkw/pDY9Ep5yGW/yTA SzAZwQ5F9CJ8ij8IoEVhyqHqumfxZb/gI04UtIvt7TWeZUvlZlvOe8ljZYVDkrp4 1xlO0awMdHw98ZqSM4V3zXAxJlgGhRs+WpkunFzx9WXSAennyvbve5oJLdzyd6K3 AEFLKiAnkpNH0F+/aG0fQcu8EEteOfe5PEnzGtTkFMIdVhl3RERr6rkgvku6+S4+ 5asGvFsrTdrxiK20wRSsK1xSO4YbGtoXjo4QDE7ojhV5u8lSvfL+Xxhv4MuvfTxK 2LQYHt92ZnM5w4fG29zVvRkY6YMW8Y6h8tbulACkgepiyx9bS/c=
    =RQ2B
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arve Barsnes@21:1/5 to Neil Bothwick on Sat Feb 5 09:30:01 2022
    On Sat, 5 Feb 2022 at 08:57, Neil Bothwick <neil@digimed.co.uk> wrote:
    You're using ~amd64 sources, which means they update frequently. I found
    this annoying so I only use the stable sources, even on ~amd64 systems to keep updates to a reasonable level while ensuring I don't miss important updates. I added this to package.accept_keywords

    sys-kernel/gentoo-sources -~amd64
    sys-kernel/linux-headers -~amd64

    Having said that, it wants to install a new kernel this morning :-/

    If you want a bit more control, I'd just mask it completely in /etc/portage/package.mask/ and then unmask whatever version you want
    to install in /etc/portage/package.unmask

    Regards,
    Arve

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Arve Barsnes on Sat Feb 5 09:40:02 2022
    On Sat, 5 Feb 2022 09:20:41 +0100, Arve Barsnes wrote:

    You're using ~amd64 sources, which means they update frequently. I
    found this annoying so I only use the stable sources, even on ~amd64 systems to keep updates to a reasonable level while ensuring I don't
    miss important updates. I added this to package.accept_keywords

    sys-kernel/gentoo-sources -~amd64
    sys-kernel/linux-headers -~amd64

    Having said that, it wants to install a new kernel this morning :-/

    If you want a bit more control, I'd just mask it completely in /etc/portage/package.mask/ and then unmask whatever version you want
    to install in /etc/portage/package.unmask

    Surely, if you do that, the virtual will just pull in another source
    package when the version you have unmasked it dropped from the tree?

    I don't want that much control, because that also carries the
    responsibility of ensuring I am not running a kernel with a security
    flaw. Just sticking to stable sources give infrequent, but important,
    updates.


    --
    Neil Bothwick

    Snacktrek, n.:
    The peculiar habit, when searching for a snack, of constantly
    returning to the refrigerator in hopes that something new will have
    materialized.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmH+N7EACgkQ92eFu0QS MJjjbhAAk+B4ayfrabe33n/mxY4ctIEIgbpYM0AmMuTReLCYQuDI8wEY8W4VQHSd dlnVTTpIesWl6wbmsIHTWMfj24QZ4/6mk0bTJUV0P7pNy1K3Us6K5hjZ9UkAtJEM s8EXA3jIfkOLk25fP6YAOE1iF2VsfBmS09vflndLCJjYgfMFmbLI7xUf073IKDy9 1IPoE4sSNAzFaMVakB7Qkmy94eR2HUsgSQKTQvO5RS5mFVCynR+nZw2vzCznbQzB 6cRlCb8c2D8mdxzivBGTt+lBrPniZX8eW5F6g0VPyoci7uYqSMpLHccsBPQT/4UU Hp3WpInpTnYgyUS5b2IHnUboNP/Hyi5ywvjyHi9lhXzYHtChqF92EG630AAqJHjj V/JcdV+JLwYTKZF/e6waOHW43UkX2zjD8WdKvjzw/ilAwElR81cnQ3QqxkAAUGZj zPQpfeNP3Vn3Hp+SuM33LcgmlGre/05HiUfIfspVnTuYLpx8W5FV3Sf6/PmpAW73 0BO9w3AqU5lp0mq1ptIWkGGBV0eFEJQ8uJS59u50OmBmEFk4lAPnUiP4T+e3+i2L tgR/WYGT2A0PwwDz/YUy9u6VezlPgBUAzD41raeYZsSpmPNSB7/Vvu1lqOmjJRjF sID2UqlyywJ4UyUUB31bmxF8pnJq+Y57NjgOvY18U7+n2EtYigA=
    =ZnMM
    -----END PGP S