aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* glsa-check: add man page exit valuesAaron Bauman2019-08-301-0/+12
| | | | | | | | Bug: https://bugs.gentoo.org/587930 Reported-by: Bandie Yip Kojote <bandie@ttygap.net> Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: add exit code for affected GLSAsAaron Bauman2019-08-301-0/+1
| | | | | | | | Bug: https://bugs.gentoo.org/587930 Reported-by: Bandie Yip Kojote <bandie@ttygap.net> Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Remove 'new' target from glsa-listZac Medico2019-08-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=8190a7299a618e0ce120fe1c894b944075576342 commit 8190a7299a618e0ce120fe1c894b944075576342 Author: rbu <rbu@gentoo.org> AuthorDate: 2009-08-18 18:25:59 +0000 Commit: rbu <rbu@gentoo.org> CommitDate: 2009-08-18 18:25:59 +0000 Remove 'new' target from glsa-list Everyone should use 'affected' or 'all' Update man page and changelog svn path=/trunk/gentoolkit/; revision=672 Bug: https://bugs.gentoo.org/693088 Acked-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Make --pretend output nicerZac Medico2019-08-301-5/+15
| | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=72ba7b1274faf37451b1641ee51140f53f4b7098 commit 72ba7b1274faf37451b1641ee51140f53f4b7098 Author: rbu <rbu@gentoo.org> AuthorDate: 2009-08-18 17:47:20 +0000 Commit: rbu <rbu@gentoo.org> CommitDate: 2009-08-18 17:47:20 +0000 Make --pretend output in glsa-check nicer. Add colors and fix linebreaks. svn path=/trunk/gentoolkit/; revision=670 Bug: https://bugs.gentoo.org/693088 Acked-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Fix traceback with glsa-check -f (Bug 275105)Zac Medico2019-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=232d69fa230abb490e0b0f8eef550f28745be6a3 commit 232d69fa230abb490e0b0f8eef550f28745be6a3 Author: fuzzyray <fuzzyray@gentoo.org> AuthorDate: 2009-06-22 20:45:49 +0000 Commit: fuzzyray <fuzzyray@gentoo.org> CommitDate: 2009-06-22 20:45:49 +0000 Fix traceback with glsa-check -f (Bug 275105) svn path=/trunk/gentoolkit/; revision=665 Bug: https://bugs.gentoo.org/693088 Acked-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add test case for unshare_net code in portage.processMike Gilbert2019-08-301-0/+38
| | | | | | Code by Zac Medico, with some small tweaks. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Use RTNETLINK to configure the loopback interfaceMike Gilbert2019-08-302-16/+108
| | | | | | | | This eliminates the dependency on iproute2 on Linux. Bug: https://bugs.gentoo.org/690758 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* rsync: proxychains compatibility (bug 693026)Zac Medico2019-08-301-0/+7
| | | | | | | | | | Use the original hostname if it resolves to a single IP, since DNS lookup must occur in the rsync process for compatibility with things like proxychains that allocate a surrogate IP which is only valid within the current process. Bug: https://bugs.gentoo.org/693026 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Hide non-vuln glsas in quiet modeZac Medico2019-08-291-4/+12
| | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=d3e4aad5a03efbd5089f96558d2ddd1e9bf158a8 commit d3e4aad5a03efbd5089f96558d2ddd1e9bf158a8 Author: vapier <vapier@gentoo.org> AuthorDate: 2010-03-07 01:37:57 +0000 Commit: vapier <vapier@gentoo.org> CommitDate: 2010-03-07 01:37:57 +0000 glsa-check: hide non-vuln glsas in quiet mode svn path=/trunk/gentoolkit/; revision=750 Bug: https://bugs.gentoo.org/692872 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Add --quiet optionZac Medico2019-08-292-6/+14
| | | | | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=cd5a8e80f949f649b6d2b174bc899f1f092684fd commit cd5a8e80f949f649b6d2b174bc899f1f092684fd Author: fuzzyray <fuzzyray@gentoo.org> AuthorDate: 2009-05-07 22:15:50 +0000 Commit: fuzzyray <fuzzyray@gentoo.org> CommitDate: 2009-05-07 22:15:50 +0000 Add patch from Robert Buchholz: Add quiet option Incorporate option to quiet down glsa-check, based on a patch by Thilo Bangert <bangert@gentoo.org> in bug #170784. This option will also suppress sending of empty mail, based on a patch by Christian Gut <cycloon@is-root.org> in bug #182990. svn path=/trunk/gentoolkit/; revision=633 Bug: https://bugs.gentoo.org/692872 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin/glsa-check: align help menu with the man page updatesAaron Bauman2019-08-261-14/+13
| | | | | | | | | * This simply aligns the help menu text with the man page * Update copyright * Bump version to 1.0.1 Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* man/glsa-check.1: update the glsa-check man pageAaron Bauman2019-08-261-62/+57
| | | | | | | | | | | | | * Remove "Gentoo" from the name. It is obvious. * Change "SYNTAX" to "SYNOPSIS" which is more common among man pages * Update description to use the command name vice "This tool" * Move bug reporting information to BUGS section * Remove references to the "portage tree". Just call it a repo. * Add the "sets" all, new, and affected to the SYNOPSIS * Sentence case and add periods to all option descriptions Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Updates for portage-2.3.73 releaseportage-2.3.73Zac Medico2019-08-232-1/+7
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* preserve-libs: ignore dropped non-soname symlink (bug 692698)Zac Medico2019-08-231-4/+11
| | | | | | | | | | | | Fix the dblink _find_libs_to_preserve method to ignore a dropped non-soname symlink. For example, pam-1.3.1-r1 drops the non-soname symlink named libpam_misc.so, and we don't want this to trigger unnecessary preservation of the corresponding library, since the corresponding libpam_misc.so.0 soname symlink and the hardlink that it references are still provided by pam-1.3.1-r1. Bug: https://bugs.gentoo.org/692698 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* RepoConfig: add properties-allowed attributeZac Medico2019-08-231-1/+7
| | | | | Bug: https://bugs.gentoo.org/690786 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* unpack: Restore error message.Arfrever Frehtes Taifersar Arahesis2019-08-231-1/+1
| | | | | | | This was inavertently reverted with commit 17ecafa949. Fixes: 17ecafa949c87a6f2a2d2c98c7de18ed06f08f2f Signed-off-by: Zac Medico <zmedico@gentoo.org>
* doebuild_environment: add newline to PORTAGE_COMPRESSION_COMMAND messagesZac Medico2019-08-201-3/+3
| | | | | Fixes: cff2c0149142 ("Support different compressors for binary packages") Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Updates for portage-2.3.72 releaseportage-2.3.72Zac Medico2019-08-183-1/+24
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: install in /usr/bin (bug 463952)Zac Medico2019-08-182-1/+67
| | | | | | | | In order to eliminate the duplicate implementation from gentoolkit, install glsa-check into /usr/bin and add man page from gentoolkit. Bug: https://bugs.gentoo.org/463952 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* repoman: support metadata/layout.conf restrict-allowedZac Medico2019-08-182-2/+12
| | | | | Bug: https://bugs.gentoo.org/690786 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* portage/glsa.py: only check for revision based on GLSA DTDAaron Bauman2019-08-182-11/+6
| | | | | | | | | * All GLSA's have been converted to use the revision attribute * If there is no count attribute then raise a GlsaFormatException * Ensure the attribute is an integer Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* AmbiguousPackageName: initialize self.args for pypy compatZac Medico2019-08-181-1/+5
| | | | | | | | | | | | | | | | | For pypy 7.1 self.args is empty, triggering this IndexError: Traceback (most recent call last): File "<string>", line 53, in <module> File "/usr/lib/pypy2.7/site-packages/_emerge/main.py", line 1289, in emerge_main return run_action(emerge_config) File "/usr/lib/pypy2.7/site-packages/_emerge/actions.py", line 3230, in run_action emerge_config.args, spinner) File "/usr/lib/pypy2.7/site-packages/_emerge/actions.py", line 2081, in action_uninstall for i in e.args[0]: IndexError: tuple index out of range Bug: https://bugs.gentoo.org/692412 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* unpack: Restore error message.Ulrich Müller2019-08-181-1/+1
| | | | | | | This was inavertently reverted with commit 17ecafa949. Fixes: 17ecafa949c87a6f2a2d2c98c7de18ed06f08f2f Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Revert "Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit"Zac Medico2019-08-151-8/+0
| | | | | | | This reverts commit 7cb39877b7f6231ce11f1161cf2d3fe42e287b59. Bug: https://bugs.gentoo.org/692262 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* econf: Unconditionally die on error in EAPIs 0 to 3.Ulrich Müller2019-08-131-0/+2
| | | | | | | | | | | As specified by PMS: "econf [...] Should any portion of it fail, it must abort the build using die, unless run using nonfatal, in which case it must return non-zero exit status." https://projects.gentoo.org/pms/7/pms.html#x1-12800012.3.8 Bug: https://bugs.gentoo.org/692024 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* unpack: Unconditionally die if an unpacker returns an error.Ulrich Müller2019-08-132-73/+27
| | | | | | | | | | | | | As specified by PMS: "If unpacking a supported file format fails, unpack shall abort the build process." https://projects.gentoo.org/pms/7/pms.html#x1-13500012.3.15: This partially reverts commit 525e69351d45621c34a9326fcbc11ca592cb6539, as far as unpack() is concerned. Bug: https://bugs.gentoo.org/691776 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Allow ESYSROOT and BROOT in the pkg_setup phaseMichał Górny2019-08-131-3/+4
| | | | | | | This follows a recent change to PMS. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* dblink._collision_protect: Detect internal collisions.Arfrever Frehtes Taifersar Arahesis2019-08-112-4/+154
| | | | | | | | | | | | | | | | Implement detection of internal collisions (between files of the same package, located in separate directories in the installation image (${D}) corresponding to merged directories in the target filesystem (${ROOT})). This provides protection against overwriting some files when performing merging of files from ${D} to ${ROOT} in some filesystem layouts (such as /-merged layout or /usr-merged layout). Internal collisions between identical files are silently ignored. Bug: https://bugs.gentoo.org/690484 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* lib/p/util/_dyn_libs/LinkageMapELF.py: get dep graph from EROOT.Benda Xu2019-08-111-2/+3
| | | | | | | | On Prefix, the preserve-libs feature should search for shared libraries consumers from EROOT instead of ROOT. Bug: https://bugs.gentoo.org/646090 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin/ebuild: Fix to work with installed packageZac Medico2019-08-101-1/+6
| | | | | | | | | | | | | | | | Fix the following AttributeError error: # ebuild /var/db/pkg/sys-apps/portage-2.3.71/portage-2.3.71.ebuild clean pretend clean Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/ebuild", line 318, in <module> type_name=pkg_type) File "/usr/lib64/python3.6/site-packages/_emerge/Package.py", line 72, in __init__ db = self.cpv._db AttributeError: 'str' object has no attribute '_db' Bug: https://bugs.gentoo.org/532674 Fixes: bfe7892202b8 ("_pkg_str: add _db attribute (bug 640318)") Signed-off-by: Zac Medico <zmedico@gentoo.org>
* _xattr._XattrSystemCommands.{get,list}: Do not hide stderr and fix ↵Arfrever Frehtes Taifersar Arahesis2019-08-081-3/+3
| | | | | | | | ResourceWarning. Bug: https://bugs.gentoo.org/691638 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* EbuildExecuter: remove unused _live_eclasses attributeZac Medico2019-08-051-2/+0
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* repoman: Update for a repoman-2.3.17 releaserepoman-2.3.17Zac Medico2019-08-042-1/+7
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Updates for portage-2.3.71 releaseportage-2.3.71Zac Medico2019-08-042-1/+8
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* process: add _has_ipv6() functionZac Medico2019-08-041-3/+40
| | | | | | | | | Add _has_ipv6() function and use it in _configure_loopback_interface() to decide whether to add an IPv6 address. Bug: https://bugs.gentoo.org/691290 Reviewed-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* ebuild: apply_priorities (PORTAGE_NICENESS)Felix Neumärker2019-08-031-0/+3
| | | | | | | | Respect PORTAGE_NICENESS variable. Closes: https://github.com/gentoo/portage/pull/441 Signed-off-by: Felix Neumärker <xdch47@posteo.de> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* process: redirect IPv6 'ip' command output to /dev/nullMike Gilbert2019-08-021-2/+4
| | | | | Bug: https://bugs.gentoo.org/691290 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Updates for portage-2.3.70 releaseportage-2.3.70Zac Medico2019-08-013-1/+16
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox.ini: py34: lxml<4.4.0Zac Medico2019-08-011-1/+2
| | | | | | lxml-4.4.0 does not support py34. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Configure additional addresses on the lo interface for network-sandboxMike Gilbert2019-08-011-13/+37
| | | | | | | | | | | | | | | | | This works around some strange behavior in glibc's getaddrinfo() implementation when the AI_ADDRCONFIG flag is set. For example: struct addrinfo *res, hints = { .ai_family = AF_INET, .ai_flags = AI_ADDRCONFIG }; getaddrinfo("localhost", NULL, &hints, &res); This returns no results if there are no non-loopback addresses configured. Bug: https://bugs.gentoo.org/690758 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=12377#c13 Reviewed-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* doebuild.py: Override network-sandbox in unpack only for live ebuilds.Ulrich Müller2019-07-301-8/+3
| | | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Reviewed-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* man/ebuild.5: Document PROPERTIES="live".Ulrich Müller2019-07-271-2/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* man/ebuild.5: Fix .nf macro usage.Ulrich Müller2019-07-271-2/+4
| | | | | | | | Several .nf (no-fill mode) blocks were not terminated by .fi, causing broken formatting of the rest of the manpage. Fixes: cdcf4a28409daa7c56a0c2c94054f48bd5e43c6d Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Drop removed git and tla from list of live eclasses.Ulrich Müller2019-07-272-4/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Support PROPERTIES="live".Ulrich Müller2019-07-274-8/+19
| | | | | Bug: https://bugs.gentoo.org/233589 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* repoman: add 'user.eclass' to deprecated eclassesMichał Górny2019-07-241-0/+1
| | | | | | | Make repoman report user.eclass as deprecated by GLEP 81. Reviewed-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Fix emaint -c binhost support for binpkg-multi-instanceDaniel M. Weeks2019-07-231-5/+10
| | | | | | | | | | | | The check function should operate the same way as the fix function when using FEATURES=binpkg-multi-instance (using the correct _instance_key) otherwise packages will be erroneously reported as missing. Fixes: 328dd4712f88 ("binpkg-multi-instance 3 of 7") Closes: https://github.com/gentoo/portage/pull/439 Bug: https://bugs.gentoo.org/690446 Signed-off-by: Daniel M. Weeks <dan@danweeks.net> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* dispatch-conf: use writemsg for unicode safety (bug 690304)Zac Medico2019-07-201-5/+6
| | | | | Bug: https://bugs.gentoo.org/690304 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Updates for portage-2.3.69 releaseportage-2.3.69Zac Medico2019-07-102-1/+11
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* repos.conf: default sync-webrsync-verify-signatureZac Medico2019-07-106-8/+42
| | | | | | | | | | | | | | | | | | Enable sync-webrsync-verify-signature by default in repos.conf (due to dependencies the ebuild will make this conditional on USE=rsync-verify in the same way as the default sync-rsync-verify-metamanifest value). Use a new PORTAGE_TEMP_GPG_DIR variable to distinguish indirect emerge-webrsync calls that use gemato for secure key refresh, and disable direct emerge-webrsync calls. Deprecate FEATURES=webrsync-gpg and use it to trigger a backward-compatibility mode where direct emerge-webrsync calls are allowed (but trigger a warning message). Since direct emerge-webrsync calls do not use gemato for secure key refresh, this behavior will not be supported in a future release. Bug: https://bugs.gentoo.org/689506 Signed-off-by: Zac Medico <zmedico@gentoo.org>