summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
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.
* strip trailing whitespaceMike Frysinger2012-11-223-3/+3
| | | | | | No functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* 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 chown and chgrp wrappers for prefix.Zac Medico2012-09-303-5/+34
| | | | | | | For prefix, there is typically only a single unprivileged user who owns everthing that is built and installed, and in this case it's desirable to ignore chown and chrgrp failures. So, move the logic from fowners into chown and chgrp wrappers, as discussed in bug #433453.
* prepalldocs: fix inverted eapi_has_docompressZac Medico2012-09-261-1/+1
| | | | This broke in commit ab46499322311c1faa710c63d0a5339e49a9061a.
* dodoc: source isolated-functions.sh earlierZac Medico2012-09-261-2/+2
| | | | This is needed since commit ab46499322311c1faa710c63d0a5339e49a9061a.
* Add eapi.sh with ___eapi_*() functions and use these functions in other files.Arfrever Frehtes Taifersar Arahesis2012-09-2627-128/+133
|
* doheader: don't count -r as required argZac Medico2012-09-161-1/+1
|
* Convert funcs of isolated-functions.sh to __ prefixed namespace.Brian Harring2012-09-1325-66/+66
|
* Convert funcs of bashrc-functions.sh to __ prefixed namespace.Brian Harring2012-09-132-10/+10
|
* Quote ${EAPI} more.Zac Medico2012-09-022-2/+2
| | | | | This will avoid a potential syntax error in save-ebuild-env.sh if a saved environment containing corrupt EAPI is sourced.
* ebuild-helpers/bsd/sed: whitespace + quotingZac Medico2012-09-021-5/+5
|
* ebuild-helpers/sed: move to bsd subdirectoryZac Medico2012-09-011-0/+0
| | | | | | This helps to prevent inappropriate use of the sed wrapper on GNU systems, which commonly occurs when users install portage manually during recovery situations.
* ebuild-helpers/sed: use -ef to check recursionZac Medico2012-09-011-2/+2
|
* Eliminate bin/ebuild-helpers/4 directory.Zac Medico2012-09-019-15/+51
| | | | | Instead, just use conditionals where appropriate inside bin/ebuild-helpers/* scripts.
* EAPI 5: doheader and newheader helper functionsUlrich Müller2012-08-312-0/+22
| | | | See bug #21310.
* Whitespace.Ulrich Müller2012-08-251-1/+1
|
* EAPI 5: new* commands can read from stdin, bug 263565.Ulrich Müller2012-08-251-16/+39
|
* new*: symlink to generic newins implementationZac Medico2012-08-2510-220/+10
|
* newins: become generic so new* can be symlinksZac Medico2012-08-251-19/+20
|
* prepstrip: avoid debugedit/strip interferenceZac Medico2012-08-231-14/+16
| | | | This will fix bug #421099.
* Remove tests for deprecated 3_pre2 EAPI.Ulrich Müller2012-08-152-4/+4
|
* installsources: fix file permissions, bug #430962Nico Roeser2012-08-111-1/+1
|
* 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>