Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Set/command smart-live-rebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Sat Feb 01, 2025 6:23 pm    Post subject: Set/command smart-live-rebuild Reply with quote

[Administrator note: this post, and all posts up through (but not including) my first response were originally attached to the topic Portage crashes terminal, unable to compile @world set. -Hu]

Code:
@smart-live-rebuild


What does this do? It's neither in the man page nor the wiki.
_________________
I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1890
Location: Germany

PostPosted: Sat Feb 01, 2025 8:16 pm    Post subject: Reply with quote

mrbassie wrote:
Code:
@smart-live-rebuild


What does this do? It's neither in the man page nor the wiki.

A quick search lead me to this: https://github.com/projg2/smart-live-rebuild/ The readme there explains it very well.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3939
Location: Rasi, Finland

PostPosted: Sat Feb 01, 2025 8:19 pm    Post subject: Reply with quote

I think that set is automatically constructed from packages that fill the the requirement of @installed && FEATURES=live.

man portage *snip*:
             sets.conf
                     A package set configuration file. Settings here override settings
                     from  /var/db/repos/gentoo/sets.conf  and /usr/share/portage/con‐
                     fig/sets.  The format is described extensively in the Package Set
                     Configuration section of the  html  documentation  which  is  in‐
                     stalled with portage when the "doc" USE flag is enabled.

                     Example:
                     [world]
                     class = portage.sets.base.DummyPackageSet
                     packages = @profile @selected @system

                     [usersets]
                     class = portage.sets.files.StaticFileSet
                     multiset = true
                     directory =  %(PORTAGE_CONFIGROOT)setc/portage/sets
                     world-candidate = True

                     [module-rebuild]
                     class = portage.sets.dbapi.OwnerSet
                     files = /lib/modules


EDIT: The set is added by app-portage/smart-live-rebuild so it's not part of the default sets.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!


Last edited by Zucca on Sun Feb 02, 2025 4:23 pm; edited 2 times in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2705

PostPosted: Sat Feb 01, 2025 8:28 pm    Post subject: Reply with quote

It is not a set but a command and it is not related to OP's problem in any way.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1492
Location: Richmond Hill, Canada

PostPosted: Sun Feb 02, 2025 4:55 am    Post subject: Reply with quote

logrusx wrote:
It is not a set but a command and it is not related to OP's problem in any way.


I must say, I disagreed.

If you install correctly it extend the Portage builtin to have the "smart-live-rebuild" as additional to existing default sets.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2705

PostPosted: Sun Feb 02, 2025 5:08 am    Post subject: Reply with quote

pingtoo wrote:
logrusx wrote:
It is not a set but a command and it is not related to OP's problem in any way.


I must say, I disagreed.

If you install correctly it extend the Portage builtin to have the "smart-live-rebuild" as additional to existing default sets.


I must say I disagree. Look closely at the original command. The user alerted the quote.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4693
Location: Germany

PostPosted: Sun Feb 02, 2025 8:10 am    Post subject: Reply with quote

You can using smart-live-rebuild directly or as set - both works :)
/usr/share/doc/smart-live-rebuild-1.4.1/README.bz2 wrote:
Portage set support
-------------------
Apart from being called directly, smart-live-rebuild provides a package
set for portage-2.2, called ``smartliverebuild.sets.SmartLiveRebuildSet``.
Please take a look at ``sets.conf.example`` file for a use example.

Code:
emerge --list-sets | grep smart
smart-live-rebuild
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23101

PostPosted: Sun Feb 02, 2025 2:28 pm    Post subject: Reply with quote

logrusx wrote:
I must say I disagree. Look closely at the original command. The user alerted the quote.

Best Regards,
Georgi
It is both a set and a command, and different posters in these threads have referred to it in different ways. picarica (author of the original thread Portage crashes terminal, unable to compile @world set) wrote it as a set:
picarica wrote:
Code:
$ sudo emerge --sync;sudo emerge -a --verbose --update --deep --newuse --keep-going --with-bdeps=y @world && sudo emerge @smart-live-rebuild
Later, ingenarel posted it as a command
ingenarel wrote:
Code:
sudo emerge --ask --deep --verbose --update --newuse @world && sudo smart-live-rebuild
After that, mrbassie asked what the set does:
mrbassie wrote:
Code:
@smart-live-rebuild

What does this do?
Thus, depending on whose quote you want to look at, you can say it was altered (if you compare mrbassie's quote as a set to ingenarel's post as a command) or you can say it was a straight quote if you compare mrbassie's quote as a set to picarica's original question as a set. This would have been somewhat clearer if mrbassie's question had quoted the post (and poster name) that he was questioning.

For users who have not installed the package app-portage/smart-live-rebuild, neither the set nor the command is available, which makes researching this very slightly harder. (Though as Banana's first post here demonstrates, it's not particularly hard to find with a search engine.)
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2705

PostPosted: Sun Feb 02, 2025 3:16 pm    Post subject: Reply with quote

Hu wrote:
It is both a set and a command, and different posters in these threads have referred to it in different ways.


OK, I'll admit it's my bad this time. And I apologize to everybody involved. However I still support it's off topic and diverting attention from the original issue, so thanks for taking into account my complaint and splitting the thread.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3939
Location: Rasi, Finland

PostPosted: Sun Feb 02, 2025 4:21 pm    Post subject: Reply with quote

Don't quote me on this, but
    I think @smart-live-rebuild, the set, invokes the command smart-live-rebuild to construct the items to the before-mentioned set.

_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Fri Feb 07, 2025 7:13 pm    Post subject: Reply with quote

Zucca wrote:
Don't quote me on this, but
    I think @smart-live-rebuild, the set, invokes the command smart-live-rebuild to construct the items to the before-mentioned set.

Sorry I had to. An older boy made me.

Code:
$ emerge -pv @smart-live-rebuild
emerge: There are no sets to satisfy 'smart-live-rebuild'. The following sets exist:

    changed-deps
    changed-subslot
    deprecated-live-rebuild
    downgrade
    esteam
    installed
    live-rebuild
    module-rebuild
    preserved-rebuild
    profile
    rebuilt-binaries
    rust-rebuild
    security
    selected
    selected-packages
    selected-sets
    system
    unavailable
    unavailable-binaries
    world
    x11-module-rebuild


Hence the question.
_________________
I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3504

PostPosted: Fri Feb 07, 2025 8:35 pm    Post subject: Reply with quote

I don't know anything about the set, but there is a standalone tool which does the same things as emerge @live-rebuild, but cheaper
Code:
# eix app-portage/smart-live-rebuild
[I] app-portage/smart-live-rebuild
     Available versions:  1.4.1^t **9999*l^t {test PYTHON_TARGETS="pypy3 python3_10 python3_11 python3_12 python3_13"}
     Installed versions:  1.4.1^t(09:57:42 PM 01/21/2025)(-test PYTHON_TARGETS="python3_11 python3_12 -pypy3 -python3_10 -python3_13")
     Homepage:            https://github.com/projg2/smart-live-rebuild/
     Description:         Check live packages for updates and emerge them as necessary


_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2144

PostPosted: Fri Feb 07, 2025 9:09 pm    Post subject: Reply with quote

app-portage/smart-live-rebuild installs /usr/share/portage/config/sets/smart-live-rebuild.conf which provides the set. I'm not sure what confusion remains here -- it's been answered a few times above.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3939
Location: Rasi, Finland

PostPosted: Sat Feb 08, 2025 6:07 am    Post subject: Reply with quote

I may sound stupid but:
mrbassie wrote:
Hence the question.
You need to first install the package: app-portage/smart-live-rebuild
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum