Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829525 - sys-apps/portage-3.0.28-r1: etc-update disregards user added content automatically
Summary: sys-apps/portage-3.0.28-r1: etc-update disregards user added content automati...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-18 08:00 UTC by Georgi
Modified: 2024-05-20 17:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi 2021-12-18 08:00:05 UTC
On a downgrade from beta to stable nvidia drivers, after a notice there was a configuration change, etc-update run without arguments automatically removed commented stuff from /etc/modprobe.d/nvidia.conf which was added when the newer package was installed.

Newly added content didn't even trigger a config change notice on reemerge of the same version of the package.


etc-update should not consider user added content a trivial change and strip it out automatically, be it commented.

Reproducible: Always

Steps to Reproduce:
1. Emerge nvidia drivers 495.44-r2
2. Add a comment to /etc/modprobe.d/nvidia.conf
3. Emerge nvidia drivers 470-86-r1
4. run etc-update without parameters
Actual Results:  
etc-update removed user added comments without asking, considering them a trivial change

Expected Results:  
etc-update should provide the option to merge user added content

packages and versions used:

sys-apps/portage-3.0.28-r1
x11-drivers/nvidia-drivers-495.44-r2
x11-drivers/nvidia-drivers-470.86-r1
Comment 1 Ryoto Yayame 2024-05-20 16:33:16 UTC
(In reply to Georgi from comment #0)
>
> etc-update should not consider user added content a trivial change and strip
> it out automatically, be it commented.
>

/etc/etc-update.conf:

# Whether trivial/comment changes should be automerged
eu_automerge="yes"


It's the default value (and has been for 19 years at least).

Change it to eu_automerge="no".


This report should be closed as INVALID.
Comment 2 Georgi 2024-05-20 17:42:24 UTC
Thanks for letting me know. I'm closing this.

Best Regards,
Georgi