summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
Commit message (Collapse)AuthorAgeFilesLines
* prepstrip: avoid rm warning about cwdZac Medico2012-07-151-0/+1
|
* ecompressdir: fix brokenlink newdest logicZac Medico2012-06-011-1/+5
| | | | Was broken in commit bbacf8674168cf033de0ccb161f568d0b26f032b.
* ecompressdir: avoid ecompress.break interferenceZac Medico2012-06-011-3/+3
|
* ecompressdir: fix ln -s for bug #418309Zac Medico2012-06-011-3/+7
| | | | | This fixes parallel funk_up_dir decompress calls so that they don't inappropriately compete with eachother to fix the same broken symlinks.
* ecompressdir: fix funk_up_dir return valueZac Medico2012-06-011-2/+4
|
* prepstrip: fix installsources breakageZac Medico2012-05-141-3/+3
| | | | | The debug.sources path changed in commit 4941c3c674400116f118a9c75b520c3fd1a25490.
* prepstrip: fix hardlink race in process_elfZac Medico2012-05-141-6/+16
|
* prepstrip: fix hardlink handling for subshellsZac Medico2012-05-141-12/+17
|
* prepstrip: make splitdebug/installsources parallel safeMike Frysinger2012-05-141-24/+20
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: tweak style and document helper funcs a bitMike Frysinger2012-05-141-15/+19
| | | | | | Mostly make sure we be consistent with ${var} rather than $var. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: run the log parsing in parallel to file strippingMike Frysinger2012-05-141-5/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: wait for Pre-stripped check to finishZac Medico2012-05-141-0/+3
|
* prepstrip: disable parallel for splitdebug, etc..Zac Medico2012-05-141-2/+17
|
* prepstrip/ecompressdir: parallelize operationsMike Frysinger2012-05-122-8/+42
| | | | | | | | | | | Stealing some ideas from ferringb, add a new API for doing parallel processing in bash, and then deploy this with the stripping and compressing stages. For stripping coreutils which has about 100 ELFs, this brings time to strip down from ~7 seconds to ~0.7 seconds on my system. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fowners: return success for prefix if EUID != 0Zac Medico2012-03-291-2/+8
| | | | This is based on a patch by Jeremy Olexa from bug #409893.
* dosym: add $EPREFIX to absolute targetJeremy Olexa2012-03-291-2/+5
|
* ecompressdir: handle abs symlink, bug #405327Zac Medico2012-02-221-3/+10
|
* ecompress: don't rename dir symlink, bug #399595Zac Medico2012-01-211-0/+4
|
* add support for compressing debug sections to save spaceMike Frysinger2012-01-141-2/+4
| | | | | | | | | | | Since binutils/gdb can compress the .debug* sections with zlib into .zdebug*, we should be able to save quite a bit of space -- on my system, I saw /usr/lib/debug/ go from ~20GB to ~7.5GB. This requires binutils/gdb to be built with USE=zlib which is why this defaults to off. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: add writable workaround for everyoneMike Frysinger2012-01-141-1/+1
| | | | | | | The writable issue shows up when using `ebuild` as non-root users in non-prefix setups. So always do it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ebuild-helpers/new*: QA warn for extra argsZac Medico2011-12-2211-10/+43
|
* Strip .GCC.command.line from output files as well.Michał Górny2011-12-211-1/+1
|
* prepstrip: merge diff from prefix branchZac Medico2011-12-191-9/+26
| | | | | | | NOTE: Debug files must be installed in ${EPREFIX}/usr/lib/debug/${EPREFIX} (note that ${EPREFIX} occurs twice in this path) in order for gdb's debug-file-directory lookup to work correctly.
* Support FEATURES=force-prefix.Zac Medico2011-12-0825-25/+25
| | | | | | | This adjusts the logic from commit ff52f9dc31004becb8022e6437088d01917f413c to use FEATURES=force-prefix instead of USE=prefix. This has the advantage that we don't have to make any assumptions about the USE=prefix.
* Make USE=prefix enable EPREFIX in all EAPIs.Zac Medico2011-12-0725-26/+52
| | | | | | | | This is safe because the prefix flag should be masked in all non-prefix profiles, and older EAPIs would otherwise be useless with prefix configurations. This brings compatibility with the prefix branch of portage, which also supports EPREFIX for all EAPIs (for obvious reasons).
* ecompressdir: remove 'continue' from loop logicZac Medico2011-11-081-6/+3
| | | | Hopefully this helps us avoid errors in loop logic like bug #389047.
* Handle empty PORTAGE_COMPRESS for bug #389047.Zac Medico2011-11-071-1/+5
| | | | | | This fixes a case where empty PORTAGE_COMPRESS made ecompressdir forget to call restore_skip_dirs, such that docompress -x resulted in files not being installed due to hide_skip_dirs hiding them permanently.
* Add EPREFIX and ED support in all ebuild helpers.Zac Medico2011-11-0125-95/+144
| | | | This allows our prefix tests to use helpers like insinto, doins, and dosym.
* prepstrip: make sure eu-strip embeds right filenameMike Frysinger2011-10-111-1/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: add support for elfutils stripMike Frysinger2011-10-111-18/+46
| | | | | | | If people use strip from the elfutils package, take advantage of some of its neat features (like splitting + stripping in one step). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: extract buildid with readelf to avoid debugedit when possibleMike Frysinger2011-10-111-9/+23
| | | | | | The readelf utility is much more common than debugedit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: avoid a `dirname` with a simple ${var%/*}Mike Frysinger2011-10-101-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: tweak style of debugedit checksv2.2.0_alpha65Zac Medico2011-10-091-8/+8
| | | | | Make the checks more like the FEATURES/RESTRICT checks from commit 286675a500998e536dbbf2ee2dfe1fedf4290b38.
* prepstrip: merge debugedit checks moreZac Medico2011-10-091-5/+11
| | | | | Use a ${debugedit_found} to remember if it's found or not, and use ${debugedit_warned} to avoid showing duplicate warnings.
* prepstrip: optimize duplicate calls to `has`Mike Frysinger2011-10-091-12/+23
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: merge debugedit checksMike Frysinger2011-10-091-6/+5
| | | | | | Avoid checking for debugedit multiple times. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* prepstrip: optimize chmod slightlyMike Frysinger2011-10-091-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Revert "xml/metadata: implement XMLParser.doctype()"Zac Medico2011-08-313-19/+13
| | | | | This reverts commit ce501b36d7078db059c606d3b4f38637ad09528e. This commit had lots of unintended changes included.
* xml/metadata: implement XMLParser.doctype()Zac Medico2011-08-313-13/+19
| | | | | Avoid deprecation warnings again, like in commit 63035acd702ab0cdaac31e33676b5a20a91eae47.
* dosym: QA warn if target is existing dirZac Medico2011-08-221-1/+2
|
* dosym: QA warn if basename omitted (bug #379899)Zac Medico2011-08-221-0/+5
|
* Update timestamps in headers of modified files.Zac Medico2011-07-126-6/+6
|
* Remove all hasq/useq calls for bug #199722.Zac Medico2011-07-086-19/+19
|
* Fix last commit to work regardless of nullglob.Zac Medico2011-06-301-1/+2
|
* ecompress: beware of -k in PORTAGE_COMPRESS_FLAGSZac Medico2011-06-301-1/+4
| | | | This will fix bug #372183.
* doins: add reference to bug #239529Zac Medico2011-05-041-1/+4
| | | | | | The reasoning for the code from commit 55b3150af635a418ba3f1424132359c894db7ec4 is not really obvious, so it's helpful to reference the corresponding bug report.
* doins: tweak $DISTDIR symlink handlingZac Medico2011-04-111-2/+3
| | | | | Only match stuff inside $PORTAGE_ACTUAL_DISTDIR/ so that we don't stray from PMS.
* doins: dereference abs symlinks to filesZac Medico2011-04-111-1/+7
| | | | | | | | | Our fake $DISTDIR contains symlinks that should not be reproduced inside $D. In order to ensure that things like dodoc "$DISTDIR"/foo.pdf work as expected, we dereference symlinked files that are referenced by absolute paths. Thanks to James Cloos <cloos@jhcloos.com> for reporting this issue which he observed with the sci-mathematics/minisat ebuild.
* dodoc: update copyright datev2.2.0_alpha26Zac Medico2011-03-011-1/+1
|
* doins: fix dodoc directory error handlingZac Medico2011-02-251-0/+4
|