Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508708 - app-eselect/eselect-opengl: make updates atomic
Summary: app-eselect/eselect-opengl: make updates atomic
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Depends on: 531842 728286
  Show dependency tree
Reported: 2014-04-25 17:19 UTC by SpanKY
Modified: 2020-09-12 21:07 UTC (History)
1 user (show)

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

0001-update-env.d-entry-atomically.patch (0001-update-env.d-entry-atomically.patch,1.11 KB, patch)
2014-04-25 19:31 UTC, SpanKY
Details | Diff
0002-simplify-file-deletion.patch (0002-simplify-file-deletion.patch,1.36 KB, patch)
2014-04-25 19:31 UTC, SpanKY
Details | Diff
0003-do-not-delete-related-files-when-updating.patch (0003-do-not-delete-related-files-when-updating.patch,775 bytes, patch)
2014-04-25 19:31 UTC, SpanKY
Details | Diff
0004-upgrade-files-atomically.patch (0004-upgrade-files-atomically.patch,1.29 KB, patch)
2014-04-25 19:32 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2014-04-25 17:19:40 UTC
the current logic will `rm` files, then generate them in place.  this breaks parallel building in the system as there is a window where nothing exists.

i'd post a diff to the actual repo, but i have no idea where this thing is hosted.  the ebuilds and the source lacks details.
Comment 1 Matt Turner gentoo-dev 2014-04-25 18:44:47 UTC
Somewhat confusingly, eselect mesa and opengl (and a bunch of others) are in the 'extern' branch of;a=summary
Comment 2 SpanKY gentoo-dev 2014-04-25 19:31:27 UTC
Created attachment 375716 [details, diff]
Comment 3 SpanKY gentoo-dev 2014-04-25 19:31:39 UTC
Created attachment 375718 [details, diff]
Comment 4 SpanKY gentoo-dev 2014-04-25 19:31:49 UTC
Created attachment 375720 [details, diff]
Comment 5 SpanKY gentoo-dev 2014-04-25 19:32:01 UTC
Created attachment 375722 [details, diff]
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-12-31 12:25:08 UTC
eselect-opengl-1.3* no longer plays with symlinks, so atomicity has improved ;). We could try to create the two config files atomically but I don't think there's a big point in it.
Comment 7 SpanKY gentoo-dev 2015-02-17 11:52:17 UTC
(In reply to Michał Górny from comment #6)

unfortunately, updating the config files atomically is also important.  see the referenced CrOS bug report which started me investigating things.