summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* Bug #361759: QA check for /etc/udev/rules.dZac Medico2012-03-211-0/+12
|
* QA: detect pkg-config files that bleed LDFLAGSMike Frysinger2012-03-121-0/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* install_qa_check: handle info dir rm failureZac Medico2012-02-011-1/+1
| | | | This will fix bug #400679.
* dyn_install: skip copy if possibleZac Medico2012-01-131-11/+16
| | | | | Also, fix EPREFIX breakage since commit 5d5364e982820fda56db5a40884e1c5f8e784b96.
* dyn_package: portable cp args by Mike FrysingerZac Medico2012-01-131-1/+3
|
* dyn_package: remove stale PROOT if necessaryZac Medico2012-01-131-0/+1
|
* Modify PKG_INSTALL_MASK to apply only to binpkg creation.Brian Harring2012-01-131-2/+13
| | | | | | | | | | | | Primarily useful for certain cases where cros needs to suppress debug symbols being included for specific pkgs, and/or suppressing binpkgs from carrying sensitive configuration data, but we still wish for it to be installed. BUG=chromium-os:25060 TEST=set PKG_INSTALL_MASK, check ${D} vs what's in the binpkg Change-Id: I0f81a9e394b7b0b64dbbcbe8d189876cb8421dfa
* Tweak CFLAGS scanelf loop.v2.2.0_alpha83Zac Medico2011-12-241-11/+13
|
* Don't check .GCC.command.line for kernel modules.Zac Medico2011-12-241-1/+12
| | | | | | | Linux kernel modules trigger the following warning when compiled with -frecord-gcc-switches: WARNING: mod.o (.GCC.command.line): unexpected non-allocatable section.
* Do CFLAGS check before strip for bug #395877.Zac Medico2011-12-241-71/+73
|
* Share variables for CFLAGS and LDFLAGS checks.Zac Medico2011-12-221-33/+44
| | | | | | | The rationale is that any exceptions to either of these checks will probably apply to both checks. So, QA_CFLAGS_IGNORED and QA_DT_HASH are merged into QA_FLAGS_IGNORED, and QA_STRICT_CFLAGS_IGNORED and QA_STRICT_DT_HASH are merged into QA_STRICT_FLAGS_IGNORED.
* Use *FLAGS for CFLAGS ignorance checks.Zac Medico2011-12-211-1/+6
| | | | | | | Current *FLAGS variables include CFLAGS, CXXFLAGS, FFLAGS, and FCFLAGS. Not that this check is only enabled if every one of these variables contains -frecord-gcc-switches, since otherwise the check could result in false positive results.
* s/QA_STRICT_DT_SWITCHES/QA_STRICT_CFLAGS_IGNORED/Zac Medico2011-12-211-1/+1
|
* s/QA_DT_SWITCHES/QA_CFLAGS_IGNORED/Zac Medico2011-12-211-5/+5
|
* install_qa_check: more RESTRICT=binchecksZac Medico2011-12-211-2/+4
|
* Support checking for ignored CFLAGS using -frecord-gcc-switches.Michał Górny2011-12-211-0/+40
|
* Support FEATURES=force-prefix.Zac Medico2011-12-081-8/+8
| | | | | | | 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-8/+16
| | | | | | | | 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).
* Use local EPREFIX for uniformity.Zac Medico2011-11-091-4/+3
| | | | | | | The EPREFIX variable is not readonly in EAPI 0, 1, and 2, so we can declare EPREFIX as a local variable. We must be careful not to let this variable leak into the environment of ebuild/eclass functions that we call, since bash propagates local variables to nested function calls.
* Use local ED for uniformity.Zac Medico2011-11-091-61/+54
| | | | | | | The ED variable is not readonly in EAPI 0, 1, and 2, so we can declare ED as a local variable. We must be careful not to let this variable leak into the environment of ebuild/eclass functions that we call, since bash propagates local variables to nested function calls.
* Add EPREFIX and ED support in all ebuild helpers.Zac Medico2011-11-011-51/+73
| | | | This allows our prefix tests to use helpers like insinto, doins, and dosym.
* Merge install_qa_check_prefix from prefix branch.Zac Medico2011-11-011-0/+124
|
* misc-functions.sh: condense world-writable outputZac Medico2011-10-201-7/+7
|
* misc-functions.sh: move sleep out of loopZac Medico2011-10-201-2/+2
| | | | | | Having sleep in the world-writable loop causes riduculous delays for prefix users with exotic filesystem constraints (like a FAT filesystem mounted with umask=000).
* Add QA_SONAME_NO_SYMLINK for bug #387053.Zac Medico2011-10-131-0/+4
|
* install_hooks: fix variable name for PORTAGE_CONFIGROOTFabian Groffen2011-09-231-1/+1
| | | | | in addition, omit the leading slash, since PORTAGE_CONFIGROOT contains a trailing slash
* Fix 'shopt: +s: invalid shell option name' error.Arfrever Frehtes Taifersar Arahesis2011-09-231-1/+1
|
* add install hooksBrian Harring2011-09-211-0/+15
|
* install_qa_check: adjust "poor programming" msgsZac Medico2011-09-181-10/+10
| | | | | Refer to "severe warnings" rather than "poor programming", in order to be more politically correct, as discussed in bug #374233.
* misc-functions.sh: fix incorrect has -o usageZac Medico2011-07-121-1/+1
|
* Remove all hasq/useq calls for bug #199722.Zac Medico2011-07-081-11/+11
|
* misc-functions.sh: remove stale NEEDED* filesZac Medico2011-06-301-0/+1
|
* Add a QA check for systemd unit file install.Michał Górny2011-06-241-0/+10
|
* install_qa_check(): Simplify code and make 'l' a local variable.Arfrever Frehtes Taifersar Arahesis2011-04-301-3/+3
|
* Check for references to ${ROOT} in install_qa_checks.David James2011-04-291-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | When ROOT != /, binaries that reference ROOT will load their dependencies from ROOT first rather than from the system-configured path. This is a problem because the ROOT will be / on the target system. Besides the above, this patch also fixes incorrect parsing of scanelf output, where we would treat the RPATHs returned by scanelf as the names of binaries. TEST=When "stricter" FEATURE is enabled, verify that emerge fails when an ebuild references broken rpaths referencing ROOT. When "stricter" FEATURE is not enabled, verify that such references are automatically fixed. Also verify that ebuilds with non-broken RPATHs (e.g. RPATHs referencing $ORIGIN/../lib) are not touched by the change. BUG=chromium-os:14271 Change-Id: I4f29cc4ea9195a1255f080284da1f676e4a2c26b Review URL: http://codereview.chromium.org/6903153
* Move preinst/postinst_bsdflags from bash to pyDavid James2011-04-281-16/+0
| | | | | | | | | | | | | Moving these commands from shell to Python helps avoid an unnecessary call to misc-functions.sh for the postinst_bsdflags. This improves performance. BUG=none TEST=Run emerge-x86-generic -eg --jobs=16 libchrome Change-Id: I0c2af50b4d2f7644cabac84fde7fe4d682010c69 Review URL: http://codereview.chromium.org/6676107
* Bug #364467 - handle gcc-4.6-style QA warningsRyan Hill2011-04-261-18/+18
|
* Update date headers in modified files.Zac Medico2011-02-191-1/+1
|
* docompress, prepcompress: Add missing quotes.Ulrich Mueller2011-02-191-1/+1
|
* bash: as a general rule, use read -rZac Medico2010-12-291-4/+4
| | | | This solves cases like bug #350045.
* Substitute bash builtin >> for touch command.Zac Medico2010-12-191-1/+2
| | | | | It should be faster to use the bash builtin, and also allows us to avoid issues with touch breakage (like in bug #348640).
* dyn_spec: account for empty $FILESDIRZac Medico2010-10-291-1/+3
| | | | This should fix bug 342721.
* Fix readonly variable assignment for PORTAGE_BINPKG_TMPFILE whenZac Medico2010-09-301-1/+1
| | | | ebuild(1) calls the 'package' phase.
* Bug #336873 - Add a leading comma when matching --hash-style=gnuZac Medico2010-09-131-1/+1
| | | | in LDFLAGS, in order to try and filter out invalid settings.
* Bug #337031 - Don't make "always overflow destination buffers" gccv2.2_rc81Zac Medico2010-09-121-3/+4
| | | | warnings fatal for now.
* Bug #273282 - Make install_qa_check() eqawarn about installation intov2.2_rc79Zac Medico2010-09-101-1/+12
| | | | | | these deprecated directories: etc/app-defaults usr/man usr/info usr/X11R6 usr/doc usr/locale
* Fix the "alway overflow" eerror message to not use the messageZac Medico2010-09-101-1/+1
| | | | intended for "implicit pointer".
* Make the "always overflow" gcc warning code use a separate variableZac Medico2010-09-101-8/+20
| | | | | from the "implicit pointer" code in install_qa_check(), so they don't interfere.
* Make the "warning: call to .* will always overflow destination buffer"Zac Medico2010-09-091-0/+3
| | | | | gcc warning fatal. Thanks to Diego Pettenò <flameeyes@g.o> for the suggestion.
* Remove all \a (alert/bell/beep) tokens (bug 336024)Sebastian Luther2010-09-061-24/+22
|