summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/prepstrip
Commit message (Collapse)AuthorAgeFilesLines
* prepstrip: preserve xattrs, bug #446420Zac Medico2012-12-111-3/+33
|
* prepstrip: handle objcopy failure, bug #446774Zac Medico2012-12-101-4/+8
|
* prepstrip: add comment for bug #445336v2.2.0_alpha144Zac Medico2012-12-011-0/+1
|
* prepstrip: avoid duplicates for bug #445336Zac Medico2012-12-011-2/+4
| | | | | This prevents us from trying to hardlink duplicate splitdebug files, avoiding ln "File exists" failure as reported in bug #445336.
* Revert "prepstrip: avoid duplicates for bug #445336"Zac Medico2012-12-011-1/+1
| | | | | | This reverts commit bba20c632e79426cd006dd2b732fcaed079ac43a. The sort needs to be inside the subshell in order for it to work as intended. A correct patch will follow.
* prepstrip: avoid duplicates for bug #445336Zac Medico2012-11-301-1/+1
| | | | | This prevents us from trying to hardlink duplicate splitdebug files, avoiding ln "File exists" failure as reported in bug #445336.
* prepstrip: check USERLAND outside of loopZac Medico2012-11-061-13/+8
|
* prepstrip: handle empty inode listZac Medico2012-11-051-1/+1
|
* prepstrip: account for new inode created by stripZac Medico2012-11-041-17/+43
| | | | | | | Since strip creates a new inode, we need to know the initial set of inodes in advance, so that we can avoid interference due to trying to strip the same (hardlinked) file multiple times in parallel. See bug #421099.
* Add eapi.sh with ___eapi_*() functions and use these functions in other files.Arfrever Frehtes Taifersar Arahesis2012-09-261-2/+3
|
* Convert funcs of isolated-functions.sh to __ prefixed namespace.Brian Harring2012-09-131-5/+5
|
* Convert funcs of bashrc-functions.sh to __ prefixed namespace.Brian Harring2012-09-131-6/+6
|
* prepstrip: avoid debugedit/strip interferenceZac Medico2012-08-231-14/+16
| | | | This will fix bug #421099.
* installsources: fix file permissions, bug #430962Nico Roeser2012-08-111-1/+1
|
* prepstrip: avoid rm warning about cwdZac Medico2012-07-151-0/+1
|
* 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-121-4/+16
| | | | | | | | | | | 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>
* 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>
* 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-081-1/+1
| | | | | | | 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-071-1/+2
| | | | | | | | 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).
* Add EPREFIX and ED support in all ebuild helpers.Zac Medico2011-11-011-12/+14
| | | | 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>
* Update timestamps in headers of modified files.Zac Medico2011-07-121-1/+1
|
* Remove all hasq/useq calls for bug #199722.Zac Medico2011-07-081-11/+11
|
* Substitute bash builtin >> for touch command.Zac Medico2010-12-191-1/+1
| | | | | It should be faster to use the bash builtin, and also allows us to avoid issues with touch breakage (like in bug #348640).
* Remove all \a (alert/bell/beep) tokens (bug 336024)Sebastian Luther2010-09-061-1/+1
|
* Add back executable bits, accidentally removed in previous commit.Zac Medico2010-03-241-0/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use find with -print0 for absolute safety.Zac Medico2009-10-231-2/+2
| | | | svn path=/main/trunk/; revision=14707
* Bug #289967 - Update installsources rsync code for >=debugedit-4.4.6-r2.Zac Medico2009-10-231-9/+23
| | | | | | Thanks to Peter Alfredsen <loki_val@g.o> for this patch. svn path=/main/trunk/; revision=14706
* Support QA_DT_HASH_${ARCH} and QA_PRESTRIPPED_${ARCH} (bug #271416).Arfrever Frehtes Taifersar Arahesis2009-08-211-0/+2
| | | | svn path=/main/trunk/; revision=14114
* Move ebuild helpers into an ebuild-helpers subdirectory.Zac Medico2009-03-121-0/+178
svn path=/main/trunk/; revision=13063