public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Forced rebuild of a package...how?
@ 2018-02-04  4:20 tuxic
  2018-02-04  4:33 ` Ian Bloss
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: tuxic @ 2018-02-04  4:20 UTC (permalink / raw
  To: Gentoo

Hi,

after installing linux-4.15.1 (downloaded from kernel.org) I want to
reinstall (beside others) nvidia drivers.

Emerge told me:
|    >emerge nvidia-drivers
|    Calculating dependencies... done!
|    >>> Jobs: 0 of 0 complete                           Load avg: 1.05, 0.65, 0.34
|    >>> Auto-cleaning packages...
|    
|    >>> No outdated packages were found on your system.


That is valid for the previous installed kernel...but not for the one 

This was updated just before
Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24

My make.conf has this options:
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"


Thanks for any help in advance!

Cheers
Meino




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Forced rebuild of a package...how?
  2018-02-04  4:20 [gentoo-user] Forced rebuild of a package...how? tuxic
@ 2018-02-04  4:33 ` Ian Bloss
  2018-02-04  4:41 ` Dale
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Ian Bloss @ 2018-02-04  4:33 UTC (permalink / raw
  To: Gentoo

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

https://wiki.gentoo.org/wiki/Kernel/Upgrade
man emerge

On Sat, Feb 3, 2018, 8:20 PM <tuxic@posteo.de> wrote:

> Hi,
>
> after installing linux-4.15.1 (downloaded from kernel.org) I want to
> reinstall (beside others) nvidia drivers.
>
> Emerge told me:
> |    >emerge nvidia-drivers
> |    Calculating dependencies... done!
> |    >>> Jobs: 0 of 0 complete                           Load avg: 1.05,
> 0.65, 0.34
> |    >>> Auto-cleaning packages...
> |
> |    >>> No outdated packages were found on your system.
>
>
> That is valid for the previous installed kernel...but not for the one
>
> This was updated just before
> Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
> Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24
>
> My make.conf has this options:
> EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n
> --changed-deps"
>
>
> Thanks for any help in advance!
>
> Cheers
> Meino
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1471 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Forced rebuild of a package...how?
  2018-02-04  4:20 [gentoo-user] Forced rebuild of a package...how? tuxic
  2018-02-04  4:33 ` Ian Bloss
@ 2018-02-04  4:41 ` Dale
  2018-02-04  4:54   ` tuxic
  2018-02-04 23:39 ` [gentoo-user] " Nikos Chantziaras
  2018-02-09 10:39 ` Kai Krakow
  3 siblings, 1 reply; 9+ messages in thread
From: Dale @ 2018-02-04  4:41 UTC (permalink / raw
  To: gentoo-user

tuxic@posteo.de wrote:
> Hi,
>
> after installing linux-4.15.1 (downloaded from kernel.org) I want to
> reinstall (beside others) nvidia drivers.
>
> Emerge told me:
> |    >emerge nvidia-drivers
> |    Calculating dependencies... done!
> |    >>> Jobs: 0 of 0 complete                           Load avg: 1.05, 0.65, 0.34
> |    >>> Auto-cleaning packages...
> |    
> |    >>> No outdated packages were found on your system.
>
>
> That is valid for the previous installed kernel...but not for the one 
>
> This was updated just before
> Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
> Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24
>
> My make.conf has this options:
> EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"
>
>
> Thanks for any help in advance!
>
> Cheers
> Meino
>

I tested this here.  Like you, I added --changed-deps to make.conf with
the plan to remove it later.  It seems when that is put there, it
doesn't emerge like it usually would.  It acts like it is looking for a
update not a re-emerge of the same version.  However, when I removed
that option, it works as it should.  I don't know why it does that but
that is what it is doing.  So, remove --changed-deps and try again.  It
should work.

Is that a bug?  Don't know.  It may be that it is intentional but maybe
it shouldn't be. 

Hope that helps.

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Forced rebuild of a package...how?
  2018-02-04  4:41 ` Dale
@ 2018-02-04  4:54   ` tuxic
  2018-02-04  5:25     ` Dale
  0 siblings, 1 reply; 9+ messages in thread
From: tuxic @ 2018-02-04  4:54 UTC (permalink / raw
  To: gentoo-user

On 02/03 10:41, Dale wrote:
> tuxic@posteo.de wrote:
> > Hi,
> >
> > after installing linux-4.15.1 (downloaded from kernel.org) I want to
> > reinstall (beside others) nvidia drivers.
> >
> > Emerge told me:
> > |    >emerge nvidia-drivers
> > |    Calculating dependencies... done!
> > |    >>> Jobs: 0 of 0 complete                           Load avg: 1.05, 0.65, 0.34
> > |    >>> Auto-cleaning packages...
> > |    
> > |    >>> No outdated packages were found on your system.
> >
> >
> > That is valid for the previous installed kernel...but not for the one 
> >
> > This was updated just before
> > Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
> > Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24
> >
> > My make.conf has this options:
> > EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"
> >
> >
> > Thanks for any help in advance!
> >
> > Cheers
> > Meino
> >
> 
> I tested this here.  Like you, I added --changed-deps to make.conf with
> the plan to remove it later.  It seems when that is put there, it
> doesn't emerge like it usually would.  It acts like it is looking for a
> update not a re-emerge of the same version.  However, when I removed
> that option, it works as it should.  I don't know why it does that but
> that is what it is doing.  So, remove --changed-deps and try again.  It
> should work.
> 
> Is that a bug?  Don't know.  It may be that it is intentional but maybe
> it shouldn't be. 
> 
> Hope that helps.
> 
> Dale
> 
> :-)  :-) 
> 

Hi Dale,

thanks for the info and help!

Just a few seconds before I found the reason for all that reasons :)

It seems that -- exactly as you said -- this option prevents
reemergeing of the same packages again.

If you want to force an update "gnu/foobar" (for example) you need to
submit

    emerge --selective=n gnu/foobar

which temporarily overwrites --changed-deps.

By the way: I appreciate helps like yours much more than just pointing
to the obvious docs. ;)

Cheers! 
Meino




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Forced rebuild of a package...how?
  2018-02-04  4:54   ` tuxic
@ 2018-02-04  5:25     ` Dale
  0 siblings, 0 replies; 9+ messages in thread
From: Dale @ 2018-02-04  5:25 UTC (permalink / raw
  To: gentoo-user

tuxic@posteo.de wrote:
> On 02/03 10:41, Dale wrote:
>> tuxic@posteo.de wrote:
>>> Hi,
>>>
>>> after installing linux-4.15.1 (downloaded from kernel.org) I want to
>>> reinstall (beside others) nvidia drivers.
>>>
>>> Emerge told me:
>>> |    >emerge nvidia-drivers
>>> |    Calculating dependencies... done!
>>> |    >>> Jobs: 0 of 0 complete                           Load avg: 1.05, 0.65, 0.34
>>> |    >>> Auto-cleaning packages...
>>> |    
>>> |    >>> No outdated packages were found on your system.
>>>
>>>
>>> That is valid for the previous installed kernel...but not for the one 
>>>
>>> This was updated just before
>>> Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
>>> Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24
>>>
>>> My make.conf has this options:
>>> EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"
>>>
>>>
>>> Thanks for any help in advance!
>>>
>>> Cheers
>>> Meino
>>>
>> I tested this here.  Like you, I added --changed-deps to make.conf with
>> the plan to remove it later.  It seems when that is put there, it
>> doesn't emerge like it usually would.  It acts like it is looking for a
>> update not a re-emerge of the same version.  However, when I removed
>> that option, it works as it should.  I don't know why it does that but
>> that is what it is doing.  So, remove --changed-deps and try again.  It
>> should work.
>>
>> Is that a bug?  Don't know.  It may be that it is intentional but maybe
>> it shouldn't be. 
>>
>> Hope that helps.
>>
>> Dale
>>
>> :-)  :-) 
>>
> Hi Dale,
>
> thanks for the info and help!
>
> Just a few seconds before I found the reason for all that reasons :)
>
> It seems that -- exactly as you said -- this option prevents
> reemergeing of the same packages again.
>
> If you want to force an update "gnu/foobar" (for example) you need to
> submit
>
>     emerge --selective=n gnu/foobar
>
> which temporarily overwrites --changed-deps.
>
> By the way: I appreciate helps like yours much more than just pointing
> to the obvious docs. ;)
>
> Cheers! 
> Meino
>

I noticed this behavior the other day.  I just didn't have a chance to
look into it at the time then forgot about it.  When I saw your post, it
reminded me that I ran into the same issue.  It was time to look into it
and see if it made that difference.  Now we know. 

With that option, I don't know if the module-rebuild set would work or
not.  I suspect it may result in the same.  To be honest, I don't use it
because the only one there is for me is nvidia-drivers. 

Glad to help.  It's not like I don't get help from this list on
occasion.  ;-) 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] Re: Forced rebuild of a package...how?
  2018-02-04  4:20 [gentoo-user] Forced rebuild of a package...how? tuxic
  2018-02-04  4:33 ` Ian Bloss
  2018-02-04  4:41 ` Dale
@ 2018-02-04 23:39 ` Nikos Chantziaras
  2018-02-05  3:02   ` tuxic
  2018-02-09 10:39 ` Kai Krakow
  3 siblings, 1 reply; 9+ messages in thread
From: Nikos Chantziaras @ 2018-02-04 23:39 UTC (permalink / raw
  To: gentoo-user

On 04/02/18 06:20, tuxic@posteo.de wrote:
> Hi,
> 
> after installing linux-4.15.1 (downloaded from kernel.org) I want to
> reinstall (beside others) nvidia drivers.
> 
> Emerge told me:
> |    >emerge nvidia-drivers

As a side-note, I recommend using this instead:

   emerge @module-rebuild

which will rebuild all external modules, so you don't have to remember 
or know which packages install external kernel modules.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: Forced rebuild of a package...how?
  2018-02-04 23:39 ` [gentoo-user] " Nikos Chantziaras
@ 2018-02-05  3:02   ` tuxic
  0 siblings, 0 replies; 9+ messages in thread
From: tuxic @ 2018-02-05  3:02 UTC (permalink / raw
  To: gentoo-user

On 02/05 01:39, Nikos Chantziaras wrote:
> On 04/02/18 06:20, tuxic@posteo.de wrote:
> > Hi,
> > 
> > after installing linux-4.15.1 (downloaded from kernel.org) I want to
> > reinstall (beside others) nvidia drivers.
> > 
> > Emerge told me:
> > |    >emerge nvidia-drivers
> 
> As a side-note, I recommend using this instead:
> 
>   emerge @module-rebuild
> 
> which will rebuild all external modules, so you don't have to remember or
> know which packages install external kernel modules.
> 
> 

Hi Nikos,

thank you! :)

Cheers!
Meino




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] Re: Forced rebuild of a package...how?
  2018-02-04  4:20 [gentoo-user] Forced rebuild of a package...how? tuxic
                   ` (2 preceding siblings ...)
  2018-02-04 23:39 ` [gentoo-user] " Nikos Chantziaras
@ 2018-02-09 10:39 ` Kai Krakow
  2018-02-09 10:43   ` Kai Krakow
  3 siblings, 1 reply; 9+ messages in thread
From: Kai Krakow @ 2018-02-09 10:39 UTC (permalink / raw
  To: gentoo-user

Am Sun, 04 Feb 2018 05:20:03 +0100 schrieb tuxic:

> after installing linux-4.15.1 (downloaded from kernel.org) I want to
> reinstall (beside others) nvidia drivers.
> 
> Emerge told me:
> |    >emerge nvidia-drivers
> |    Calculating dependencies... done!
> |    >>> Jobs: 0 of 0 complete                           Load avg: 1.05, 0.65, 0.34
> |    >>> Auto-cleaning packages...
> |    
> |    >>> No outdated packages were found on your system.
> 
> 
> That is valid for the previous installed kernel...but not for the one 
> 
> This was updated just before
> Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
> Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24
> 
> My make.conf has this options:
> EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"
> 
> 
> Thanks for any help in advance!

I'm using this script to automate the process:

$ cat /etc/kernel/postinst.d/70-emerge-module-rebuild
#!/bin/bash
exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n @module-rebuild

(I don't know why "env -i PATH=$PATH" is needed but otherwise it won't
work correctly sometimes)


You could add "--changed-deps=n" there because otherwise it won't play
well with using "--changed-deps" as a default.

Now, when you run "make modules_install install", it will automatically
rebuild kernel modules.

BTW, I have another script to also install the kernel in systemd-boot
which also rebuilds initramfs (dracut here):

$ cat /etc/kernel/postinst.d/zz-systemd-boot
#!/bin/bash
/usr/bin/kernel-install remove $1 $2
/usr/bin/kernel-install add $1 $2


-- 
Regards,
Kai

Replies to list-only preferred.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] Re: Forced rebuild of a package...how?
  2018-02-09 10:39 ` Kai Krakow
@ 2018-02-09 10:43   ` Kai Krakow
  0 siblings, 0 replies; 9+ messages in thread
From: Kai Krakow @ 2018-02-09 10:43 UTC (permalink / raw
  To: gentoo-user

Am Fri, 09 Feb 2018 11:39:25 +0100 schrieb Kai Krakow:

> Am Sun, 04 Feb 2018 05:20:03 +0100 schrieb tuxic:
> 
>> after installing linux-4.15.1 (downloaded from kernel.org) I want to
>> reinstall (beside others) nvidia drivers.
>> 
>> Emerge told me:
>> |    >emerge nvidia-drivers
>> |    Calculating dependencies... done!
>> |    >>> Jobs: 0 of 0 complete                           Load avg: 1.05, 0.65, 0.34
>> |    >>> Auto-cleaning packages...
>> |    
>> |    >>> No outdated packages were found on your system.
>> 
>> 
>> That is valid for the previous installed kernel...but not for the one 
>> 
>> This was updated just before
>> Sun Feb  4 04:21:46 2018 <<< sys-apps/portage-2.3.23
>> Sun Feb  4 04:21:51 2018 >>> sys-apps/portage-2.3.24
>> 
>> My make.conf has this options:
>> EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps"
>> 
>> 
>> Thanks for any help in advance!
> 
> I'm using this script to automate the process:
> 
> $ cat /etc/kernel/postinst.d/70-emerge-module-rebuild
> #!/bin/bash
> exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n @module-rebuild
> 
> (I don't know why "env -i PATH=$PATH" is needed but otherwise it won't
> work correctly sometimes)

After reading the rest of the thread, it is now:

$ cat /etc/kernel/postinst.d/70-emerge-module-rebuild
#!/bin/bash
exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n --selective=n @module-rebuild


> You could add "--changed-deps=n" there because otherwise it won't play
> well with using "--changed-deps" as a default.
> 
> Now, when you run "make modules_install install", it will automatically
> rebuild kernel modules.
> 
> BTW, I have another script to also install the kernel in systemd-boot
> which also rebuilds initramfs (dracut here):
> 
> $ cat /etc/kernel/postinst.d/zz-systemd-boot
> #!/bin/bash
> /usr/bin/kernel-install remove $1 $2
> /usr/bin/kernel-install add $1 $2





-- 
Regards,
Kai

Replies to list-only preferred.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-02-09 10:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-04  4:20 [gentoo-user] Forced rebuild of a package...how? tuxic
2018-02-04  4:33 ` Ian Bloss
2018-02-04  4:41 ` Dale
2018-02-04  4:54   ` tuxic
2018-02-04  5:25     ` Dale
2018-02-04 23:39 ` [gentoo-user] " Nikos Chantziaras
2018-02-05  3:02   ` tuxic
2018-02-09 10:39 ` Kai Krakow
2018-02-09 10:43   ` Kai Krakow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox