summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* savedconfig.eclass: do not re-use config file schemeMike Gilbert2021-11-051-14/+1
| | | | | | | | | | This causes file collisions when save_config is used in a multi-slotted package and the config file is named ${PN}. Reverts: a0c35ad8ee8f8f89ba6044dd5b44e9479c6a1775 Bug: https://bugs.gentoo.org/686348 Closes: https://bugs.gentoo.org/818904 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* savedconfig.eclass: drop faulty permissions checkMike Gilbert2021-09-291-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This check was meant to test if the user has accidentally restricted access to the /etc/portage/savedconfig directory. There are a few problems: 1. We don't actually need read access on the directory. We really need the execute bit set so that we can access files within the directory. 2. There may be permissions issues on subdirectories, and we would fail to detect them. 3. There is no easy way to distingish between EACCES and ENOENT using shell commands. We get an exit status of 1 from [[ -r ${path} ]] if there is a permissions problem or if some component of the path does not exist. This makes resolving problem 2 difficult without using a more robust language with direct access to errno. Instead of trying to detect a permissions problem, just output a warning telling the user to check permissions if we cannot find a config file. Bug: https://bugs.gentoo.org/289168 Bug: https://bugs.gentoo.org/814995 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* savedconfig.eclass: Remove @ROFF from eclass documentation.Ulrich Müller2020-02-221-10/+10
| | | | | | | | Remove all @ROFF tokens, because they make conversion to any format other than a man page very difficult. Replace the numbered list by explicitly numbered paragraphs. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/savedconfig.eclass: rewrite the ROFF macrosGöktürk Yüksek2019-11-251-5/+5
| | | | | | | | | | | | | man2html cannot cope with multi-character number-register names and also doesn't recognize the square brackets in the '\n' escape sequence. This breaks the autogenerated HTML output. Rename the number-register from "step" to "R" and get rid of the square brackets. URL: https://archives.gentoo.org/gentoo-dev/message/b619a5775cbe6d0b650d827338ef8ca2 Closes: https://bugs.gentoo.org/699476 Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org> Acked-by: Lars Wendler <polynomial-c@gentoo.org>
* savedconfig.eclass: define @SUPPORTED_EAPISMichał Górny2019-09-151-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* savedconfig.eclass: Only check config file candidate onceThomas Deutschmann2019-08-081-4/+8
| | | | | | | | | | Due to the injection of $CTARGET and $CHOST in file path we could end up with an already checked config file candidate if $CTARGET or $CHOST isn't used. This commit will make sure that we don't check the same file twice. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* savedconfig.eclass: Always quote filename in outputThomas Deutschmann2019-08-081-3/+3
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* savedconfig.eclass: Re-use configuration file schemeArfrever Frehtes Taifersar Arahesis2019-08-081-13/+27
| | | | | | | | | Make save_config() re-use configuration file scheme used by restore_config(). Fixes: https://bugs.gentoo.org/686348 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* savedconfig.eclass: Ban EAPI 4David Seifert2019-06-051-1/+1
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* savedconfig.eclass: Remove old EAPI ED/EROOT workaroundsDavid Seifert2019-05-251-11/+10
| | | | | | | * Also limit to EAPIs that are in use at the moment. Closes: https://bugs.gentoo.org/685382 Signed-off-by: David Seifert <soap@gentoo.org>
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+155
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed