diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ChangeLog b/sdk_container/src/third_party/coreos-overlay/eclass/ChangeLog new file mode 100644 index 0000000000..5d672dc008 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ChangeLog @@ -0,0 +1,2383 @@ +# ChangeLog for eclass directory +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.658 2013/02/01 21:39:50 mgorny Exp $ + + 01 Feb 2013; Michał Górny autotools-multilib.eclass, + +multilib-build.eclass: + Introduce a common multilib-build eclass to help building packages for + multilib, and use the new ABI_X86 flags in it. + + 31 Jan 2013; Gilles Dartiguelongue gst-plugins10.eclass: + Allow build of multiple plugins in different directories. Make variables more + easily override-able. + + 31 Jan 2013; Chí-Thanh Christopher Nguyễn + xorg-2.eclass: + Add EAPI 5 sub-slot dependency on x11-base/xorg-server for packages which + require rebuilding when the server is upgraded. + + 31 Jan 2013; Tomáš Chvátal obs-service.eclass: + Additional files also must be versioned as they change between versions. + + 30 Jan 2013; Michał Górny python-r1.eclass, + python-single-r1.eclass: + Use (-) USE-defaults to reduce issues from removing flags. + + 29 Jan 2013; Michał Górny python-utils-r1.eclass: + Disable pypy1.8 globally. + + 27 Jan 2013; Tim Harder vim-plugin.eclass: + Remove all hidden files in the main tarball dir. + + 27 Jan 2013; Michał Górny python-r1.eclass: + Fix output redirections in run_in_build_dir(). + + 27 Jan 2013; Michał Górny distutils-r1.eclass: + Support using distutils-r1 along with python-single-r1. + + 27 Jan 2013; Michał Górny distutils-r1.eclass: + Support making dependency and phase function enforcement optional. + + 27 Jan 2013; Michał Górny python-r1.eclass: + Introduce run_in_build_dir() function as used by GNOME ebuilds. + + 27 Jan 2013; Michał Górny python-utils-r1.eclass: + Introduce python_doheader(), to install headers specific to a Python + implementation. + + 27 Jan 2013; Joerg Bornkessel vdr-plugin-2.eclass: + reverted last changes + + 27 Jan 2013; Tim Harder vim-plugin.eclass: + Remove files before installing docs. + + 27 Jan 2013; Tim Harder vim-plugin.eclass: + Also remove stray makefiles. + + 27 Jan 2013; Tim Harder vim-plugin.eclass: + Remove unwanted files that may exist. + + 27 Jan 2013; Joerg Bornkessel vdr-plugin-2.eclass: + some fixes, install new makefilehandling; thx to zoolock@irc gentoo.vdr + + 26 Jan 2013; Sven Vermeulen selinux-policy-2.eclass: + Supporting removal of SELinux modules + + 26 Jan 2013; Michał Górny autotools-multilib.eclass: + Set USE defaults to make sure IUSE_IMPLICIT does not fool us. + + 26 Jan 2013; Michał Górny autotools-multilib.eclass: + Require EAPI=5 to make sure everything works predictably. + + 26 Jan 2013; Michał Górny autotools-multilib.eclass: + Support running commands in parallel and use it to run configure scripts. + + 26 Jan 2013; Michał Górny autotools-multilib.eclass: + Introduce MULTILIB_USEDEP to enforce correct dependencies. + + 25 Jan 2013; Michael Haubenwallner + +ELT-patches/aixrtl/1.5.0-cmds-c, +ELT-patches/aixrtl/1.5.0-cmds-cxx, + +ELT-patches/aixrtl/1.5.0-expsym-c, +ELT-patches/aixrtl/1.5.0-expsym-cxx, + +ELT-patches/aixrtl/1.5.0-noundef-c, +ELT-patches/aixrtl/1.5.0-noundef-cxx, + +ELT-patches/aixrtl/1.5.0-soname, +ELT-patches/aixrtl/1.5.0-usertl-c, + +ELT-patches/aixrtl/1.5.0-usertl-cxx, +ELT-patches/aixrtl/2.2.0-cmds-c, + +ELT-patches/aixrtl/2.2.0-cmds-cxx, +ELT-patches/aixrtl/2.2.0-expsym-c, + +ELT-patches/aixrtl/2.2.0-expsym-cxx, +ELT-patches/aixrtl/2.2.0-noundef-c, + +ELT-patches/aixrtl/2.2.0-noundef-cxx, +ELT-patches/aixrtl/2.2.0-usertl-cxx, + +ELT-patches/aixrtl/2.4.0-expsym-c, +ELT-patches/aixrtl/2.4.0-expsym-cxx, + -ELT-patches/aixrtl/1.4d-cmds-c, -ELT-patches/aixrtl/1.4d-cmds-cxx, + -ELT-patches/aixrtl/1.4d-sonamespec, -ELT-patches/aixrtl/1.4d-use-rtl-c, + -ELT-patches/aixrtl/1.4d-use-rtl-cxx, -ELT-patches/aixrtl/1.5-sonamespec, + -ELT-patches/aixrtl/2.1b-cmds-c, -ELT-patches/aixrtl/2.1b-cmds-cxx, + -ELT-patches/aixrtl/2.1b-use-rtl-cxx, ELT-patches/aixrtl/1.5.22-cmds-c, + ELT-patches/aixrtl/1.5.22-cmds-cxx, ELT-patches/aixrtl/2.2.8-cmds-c, + ELT-patches/aixrtl/2.2.8-cmds-cxx: + Recreate from scratch: Drop need for ld-wrapper with --soname support, is + unavailable during bootstrap. Ignore libtool before 1.5.0. + + 24 Jan 2013; Pacho Ramos readme.gentoo.eclass: + Include FORCE_PRINT_ELOG variable to for printing of messages when desired. + Thanks to Tomáš Chvátal for his suggestions. + + 24 Jan 2013; Tim Harder vim-plugin.eclass: + Only display vim plugin help elog messages for new installs. + + 23 Jan 2013; Justin Lecher intel-sdp.eclass: + Add dummy dir to avoid sandbox violations when emerging with + FEATURES=-userpriv, #437512 + + 23 Jan 2013; Justin Lecher intel-sdp.eclass: + Add support for license server, #447262 + + 21 Jan 2013; Michał Górny python-any-r1.eclass, + python-r1.eclass, python-single-r1.eclass, python-utils-r1.eclass: + Check PYTHON_COMPAT for validity, and support disabling implementations in + the eclass. + + 21 Jan 2013; Michał Górny multilib.eclass: + Set PKG_CONFIG_{LIBDIR,PATH} for multilib builds. Approved by vapier in bug + #453206. + + 20 Jan 2013; Michał Górny autotools-multilib.eclass: + Enable EAPI=5. + + 20 Jan 2013; Michał Górny distutils-r1.eclass: + Do not redirect stderr of pushd&popd. Thanks to vapier for catching that. + + 20 Jan 2013; Pacho Ramos +readme.gentoo.eclass: + Finally commit readme.gentoo.eclass to create a README.gentoo doc file + recording tips shown via elog messages first time the package is merged. + + 18 Jan 2013; Justin Lecher intel-sdp.eclass: + No EPREFIX with helper functions + + 16 Jan 2013; Jory A. Pratt mozconfig-3.eclass: + Remove webrtc block as it is supported on all archs now. + + 16 Jan 2013; Gilles Dartiguelongue gnome2.eclass: + Drop deprecated SCROLLKEEPER_UPDATE and switch to in_iuse. + + 16 Jan 2013; Gilles Dartiguelongue gnome2.eclass, + gst-plugins10.eclass: + Update eclass documentation to be correclty parsed, bug #452204. + + 16 Jan 2013; Ralph Sennhauser java-utils-2.eclass: + Be graceful if no system vm is set if trying to determine build vm from + handle. + + 16 Jan 2013; Michał Górny mozcoreconf-2.eclass: + Migrate Mozilla packages to python-any-r1 for build-time Python dep. + + 16 Jan 2013; Jory A. Pratt mozcoreconf-2.eclass: + Fix sqlite dep so pysqlite can go away. + + 16 Jan 2013; Zac Medico linux-info.eclass: + Fix localRESULT typo in linux_chkconfig_builtin. + + 15 Jan 2013; Jeroen Roovers ChangeLog: + DECRIPTION -> DESCRIPTION (bug #451654 by Christopher Schwan). + + 15 Jan 2013; Justin Lecher git.eclass: + @THANKS is no keywords + + 15 Jan 2013; Justin Lecher distutils-r1.eclass: + Fix typo + + 15 Jan 2013; Ryan Hill toolchain.eclass: + Drop go support for 4.6 - broken by newer glibc versions and upstream + recommends it not be used. + + 13 Jan 2013; Gilles Dartiguelongue gnome2.eclass: + Allow ebuild override of eclass generated econf. + + 12 Jan 2013; Michał Górny distutils-r1.eclass: + Provide best implementation's build dir in python_*_all() as BUILD_DIR to + make use of esetup.py easier. + + 12 Jan 2013; Michał Górny distutils-r1.eclass: + Pass arguments to setup.py in an predictable order, especially do not prepend + commands before user options. + + 12 Jan 2013; Michał Górny distutils-r1.eclass: + Support specifying directories in DOCS. + + 12 Jan 2013; Michał Górny distutils-r1.eclass: + Do not call dummy phases unnecessarily. + + 12 Jan 2013; Justin Lecher flag-o-matic.eclass: + Don't check for twice, but check for redirect support, #445244; thanks Andrey + Hippo for the patch + + 11 Jan 2013; Justin Lecher +cuda.eclass: + Add new eclass + + 11 Jan 2013; Mike Gilbert distutils-r1.eclass: + Close the lock file explicitly instead of relying on the subshell created by + the pipe to tee in distutils-r1_run_phase. + + 10 Jan 2013; Michał Górny distutils-r1.eclass: + Use locks to avoid race conditions when merging (bug #449760). Use tar + instead of cp on FreeBSD due to bug when copying broken symlinks (bug + #447370). + + 09 Jan 2013; Ian Stakenvicius git-2.eclass: + added documentation for an undocumented override variable + + 08 Jan 2013; Michał Górny python-single-r1.eclass: + Fix the PYTHON_SINGLE_TARGET validity check. + + 08 Jan 2013; Michał Górny python-r1.eclass, + python-single-r1.eclass: + Manually check PYTHON_TARGETS and PYTHON_SINGLE_TARGET for validity rather + than using REQUIRED_USE. Fixes bug #447808. + + 06 Jan 2013; Sergei Trofimovich ghc-package.eclass, + haskell-cabal.eclass: + Added 'ghc-supports-threaded-runtime' function. Removed implicit RDEPEND on + 'ghc'. + + 05 Jan 2013; Michał Górny distutils-r1.eclass: + Support overriding job-count for parallel build. + + 05 Jan 2013; Michał Górny python-utils-r1.eclass: + Support converting files with python2 and python3 shebangs. + + 05 Jan 2013; Michał Górny distutils-r1.eclass: + Always write split logs, even in non-parallel builds. + + 05 Jan 2013; Zac Medico autotools.eclass: + Avoid unsafe nested multijob_finish_one in eautoreconf for bug #426512. + + 04 Jan 2013; Ulrich Müller elisp.eclass, + elisp-common.eclass: + Sync eclasses from Emacs overlay. + elisp-common.eclass: Remove last remnants of backwards compatibility code + from elisp-site-regen which was introduced at 2007-12-01. Distinguish between + "version too low" and "could not determine version" in elisp_pkg_setup. + elisp.eclass: Return 2 as exit status of elisp-need-emacs if the comparison + could not be done, e.g., if emacs could not be executed. + + 04 Jan 2013; Joerg Bornkessel vdr-plugin-2.eclass: + fixed typo, thx to Martin Dummer on irc #vdr-gentoo + + 04 Jan 2013; Mike Gilbert distutils-r1.eclass: + addpredict /usr/lib/portage/pym in distutils-r1_src_install. + + 04 Jan 2013; Mike Gilbert python-r1.eclass: + Don't tell the user to set USE_PYTHON when a package does not support + python2.7 or python3.2. + + 03 Jan 2013; Joerg Bornkessel vdr-plugin-2.eclass: + fixed mistake for emake:-all emake:-install between old and new plugin + makefile structur, vdr-plugin-2.eclass + + 03 Jan 2013; Alon Bar-Lev ssl-cert.eclass: + Support mandatory enrollment and custom USE flag, bug#319529. + + 03 Jan 2013; Davide Pesavento qt4-build.eclass: + Remove more dead code, spotted by Arfrever. + + 02 Jan 2013; Michał Górny distutils-r1.eclass, + python-any-r1.eclass, python-r1.eclass, python-single-r1.eclass, + python-utils-r1.eclass: + Remove myself from explicit maintainers, it is enough to assign the bugs to + Python team. + + 31 Dec 2012; Joerg Bornkessel vdr-plugin-2.eclass: + Do not use {C,CXX}FLAGS from pkg-config vdr.pc >=media-video/vdr-1.7.34;we do + not have the chance to overwrite it with *.eclass + + 31 Dec 2012; Joerg Bornkessel vdr-plugin-2.eclass: + vdr-plugin-2.eclass, typo + + 31 Dec 2012; Michał Górny python-r1.eclass: + Add a function to generate dep-strings conditional to Python implementations. + + 31 Dec 2012; Michał Górny systemd.eclass: + Add function to get user unit directory, as requested in bug #449304. + + 31 Dec 2012; Michał Górny systemd.eclass: + Add function to update systemd journal catalog database. + + 31 Dec 2012; Joerg Bornkessel vdr-plugin-2.eclass: + vdr-plugin-2.eclass; better detection of new Makefile handling, fixed some + mistakes in inherited append-*flags + + 31 Dec 2012; Davide Pesavento qt4-build.eclass: + Remove dead code. + + 30 Dec 2012; Michał Górny python-utils-r1.eclass: + Fix installing scripts & modules for Prefix, bug #448786. + + 29 Dec 2012; Joerg Bornkessel vdr-plugin-2.eclass: + some adaption for new makefile handling, >=vdr-1.7.34 + + 27 Dec 2012; Michał Górny distutils-r1.eclass: + Pass --build-scripts path to setup.py (when out-of-source builds are used). + + 27 Dec 2012; Michał Górny python-utils-r1.eclass: + Introduce functions to get the includedir for Python. + + 27 Dec 2012; Michał Górny python-r1.eclass: + Introduce python_gen_usedep() and python_gen_flags() to make writing complex + dependencies easier. + + 26 Dec 2012; Christoph Junghans mercurial.eclass: + added EHG_BOOTSTRAP (bug #340153), EHG_REVISION defaults to 'defaults (bug + #380947), set web.cacerts (bug #431220), use auth when pulling (bug #432364) + + 24 Dec 2012; Zac Medico python-any-r1.eclass: + Fix python-any-r1_pkg_setup fallback logic. + + 22 Dec 2012; Davide Pesavento qt4-build.eclass: + Tweak sed expression to match against Qt 4.8.4 too. Thanks to Tomasz + Mloduchowski for spotting the regression. + + 20 Dec 2012; Michał Górny python-single-r1.eclass: + Introduce python_fix_shebang(), to fix shebangs in installed Python scripts + recursively. + + 20 Dec 2012; Michał Górny python-any-r1.eclass, + python-r1.eclass, python-single-r1.eclass, python-utils-r1.eclass: + Commonize the code for obtaining the Python interpreter dependency string. + + 20 Dec 2012; Justin Lecher flag-o-matic.eclass: + Add fix for nen gnu compiler which use -x as command line arg internally, + #445244 + + 20 Dec 2012; Mike Gilbert python.eclass: + Remove pypy version mapping table from wrapper scripts. We can add it back if + pypy is ever ported to py3k and we are still using this eclass. + + 20 Dec 2012; Mike Gilbert python.eclass: + Add pypy version mapping for 2.0 => 2.7. + + 20 Dec 2012; Mike Gilbert python.eclass: + Add 2.7-pypy-2.0. + + 20 Dec 2012; Mike Gilbert python-utils-r1.eclass: + Add pypy2_0. + + 19 Dec 2012; Michał Górny python-r1.eclass: + Re-enable python-r1 -> python-single-r1 dep prevention. + + 17 Dec 2012; Michał Górny python-r1.eclass, + python-single-r1.eclass: + Require EAPI=5 in both python-r1 eclasses due to bug #447524. + + 16 Dec 2012; Michał Górny distutils-r1.eclass, + python-r1.eclass: + Remove outdated comments and checks. + + 16 Dec 2012; Michał Górny python-r1.eclass: + Temporarily disable PYTHON_SINGLE_TARGET safety check because of issues with + paludis, bug #447524. + + 16 Dec 2012; Gilles Dartiguelongue gnome2.eclass: + Pass --disable-schemas-compile from gsettings.m4 in gnome2_src_configure. + + 15 Dec 2012; Michał Górny python-utils-r1.eclass: + Fix the relative linking algo to handle /// in path. + + 14 Dec 2012; Michał Górny python-r1.eclass: + Prevent python-r1 packages from depending on python-single-r1 packages. + + 14 Dec 2012; Michał Górny autotools-utils.eclass: + Support directories in DOCS, in EAPI 4+. + + 13 Dec 2012; Michał Górny distutils-r1.eclass: + Add (temporary) fix for sandbox failures when compiling Python modules. Bug + #447126. + + 10 Dec 2012; Lars Wendler mozcoreconf-2.eclass: + Added changes to mozcoreconf-2.eclass on request by Anarchy. + + 09 Dec 2012; Michał Górny distutils-r1.eclass: + Fix python-exec symlink generation for Prefix. Thanks to Fabian Groffen for + help. + + 09 Dec 2012; Ian Stakenvicius mozcoreconf-2.eclass, + mozconfig-3.eclass: + updated mozilla eclasses to match mozilla-overlay + + 08 Dec 2012; Michael Palimaka cmake-utils.eclass: + Respect ASMFLAGS, wrt bug #432480. Permit ebuilds to define 'myctestargs'. + + 07 Dec 2012; Michał Górny distutils-r1.eclass: + Use separate TMPDIR for each Python implementation. + + 07 Dec 2012; Michał Górny distutils-r1.eclass: + Report running implementation-common sub-phases verbosely. + + 07 Dec 2012; Michał Górny python-any-r1.eclass: + Respect user preferences in python-any-r1 (EPYTHON, eselect-python). + + 07 Dec 2012; Michał Górny distutils-r1.eclass: + Write split build logs for easier debugging. + + 07 Dec 2012; Michał Górny distutils-r1.eclass: + Use multiprocessing post-fork wait mode to avoid early output when all jobs + are running. + + 07 Dec 2012; Michał Górny distutils-r1.eclass: + Do not die when sub-phases return non-true value. This is inconsistent with + normal phase behavior and not really useful since phase functions are + supposed to die on their own. + + 07 Dec 2012; Michał Górny distutils-r1.eclass: + Pass the best Python implementation info to the implementation-common phase + functions. + + 06 Dec 2012; Tomáš Chvátal waf-utils.eclass: + Introduce NO_WAF_LIBDIR to allow building packages that fails when libdir is + set. + + 06 Dec 2012; Tomáš Chvátal waf-utils.eclass: + Sort this eapi case stuff. + + 05 Dec 2012; Justin Lecher intel-sdp.eclass: + Add EAPI=5 support; add check for presents of license; handle docs, examples + and man page in a more sane way;sort functions and document eclass for + man-pages; Drop Sebastion as maintainer + + 03 Dec 2012; Michał Górny autotools-utils.eclass, + cmake-utils.eclass: + Improve the compatibility code thanks to Arfrever. + + 03 Dec 2012; Michał Górny autotools-utils.eclass, + cmake-utils.eclass: + Fix respecting AUTOTOOLS_BUILD_DIR and CMAKE_BUILD_DIR. Acked by scarabeus. + + 02 Dec 2012; Gilles Dartiguelongue gst-plugins-bad.eclass, + gst-plugins-base.eclass, gst-plugins-good.eclass, gst-plugins-ugly.eclass, + gst-plugins10.eclass: + Commit new gstreamer eclasses as reviewed on gentoo-dev mailing list with a + few more fixes, most notably EAPI=1 support fixes. For a more detailed + changelog, please see gnome overlay git log. + + 02 Dec 2012; Pacho Ramos vala.eclass: + making vala_src_prepare() into a no-op in the + common situation where vala is in IUSE and USE=-vala as discussed with the + team via mail. Thanks a lot to Alexandre Rostovtsev for the work. + + 02 Dec 2012; Pacho Ramos gnome2.eclass: + Always pass --disable-gtk-doc for eapi >= 5 as we don't want docs to get + rebuilt as discussed with gnome team. Thanks a lot to Gilles for working on + this. + + 01 Dec 2012; Michał Górny autotools-multilib.eclass, + autotools-utils.eclass, cmake-utils.eclass: + Use a common BUILD_DIR variable. Acked by scarabeus. + + 01 Dec 2012; Michał Górny distutils-r1.eclass: + Support parallel builds using multiprocessing eclass. + + 01 Dec 2012; Michał Górny distutils-r1.eclass: + Create the wrapper symlinks directly in _distutils-r1_rename_scripts rather + than postponing it to distutils-r1_install_all. + + 01 Dec 2012; Michał Górny distutils-r1.eclass: + Use intermediate-root install. + + 01 Dec 2012; Michał Górny distutils-r1.eclass: + Make distutils-r1_rename_scripts private. Rename all matching executables + recursively in given path(s) rather than using hardcoded path list. + + 01 Dec 2012; Michał Górny +python-any-r1.eclass, + python-r1.eclass, python-single-r1.eclass: + Introduce python-any-r1, to handle packages satisfied by any Python + implementation installed (e.g. strictly build-time dependent). + + 30 Nov 2012; Michał Górny python-single-r1.eclass: + Add missing REQUIRED_USE constraints to enforce PYTHON_SINGLE_TARGET being in + PYTHON_TARGETS. + + 30 Nov 2012; Michał Górny python-utils-r1.eclass: + Support all EAPIs. + + 30 Nov 2012; Michał Górny python-r1.eclass, + python-single-r1.eclass, python-utils-r1.eclass: + Make python-single-r1 stand-alone, and blocking python-r1. + + 29 Nov 2012; Julian Ospald waf-utils.eclass: + add verbosity to waf-utils.eclass wrt #444562 + + 28 Nov 2012; Justin Lecher fortran-2.eclass: + * Reduce potential clash of function names in global scope + * Use more manpage tags + * resort phase functions to the end + * require at least arguments for _fortran_compile_test() + * log compile tests + + 28 Nov 2012; Justin Lecher fortran-2.eclass: + Use man page tags + + 27 Nov 2012; Jeroen Roovers nvidia-driver.eclass: + Remove ebeep because newer nvidia-drivers have EAPI=4. + + 27 Nov 2012; Ulrich Müller scsh.eclass: + Drop default LICENSE assignment. + + 27 Nov 2012; Alexandre Rostovtsev gnome2.eclass: + Handle DOCS when it is an exported array, i.e. "declare -ax" (bug #444740, + thanks to Arfrever). + + 26 Nov 2012; Alexandre Rostovtsev gnome2.eclass: + Typo, probably caused by strange font in pms.pdf (bug #444740, thanks to + Alphat-PC). + + 26 Nov 2012; Michał Górny python-utils-r1.eclass: + Add python_optimize() to compile Python modules. + + 26 Nov 2012; Michał Górny distutils-r1.eclass, + python-single-r1.eclass: + Run EXPORT_FUNCTIONS even if re-inheriting, to preserve the expected phase + overrides. + + 26 Nov 2012; Michał Górny python-r1.eclass, + python-single-r1.eclass: + Override incompatible functions in python-single-r1 directly, instead of + adding checks to python-r1. + + 25 Nov 2012; Pacho Ramos emul-linux-x86.eclass: + Really install only libs, not everything included in .so* (#442910 by SpanKY, + Samuli Suominen and Jim Faulkner). + + 24 Nov 2012; Michał Górny distutils-r1.eclass, + python.eclass, python-r1.eclass, python-single-r1.eclass, + python-utils-r1.eclass: + Fix EAPI checks, add double- and colliding include guards. + + 24 Nov 2012; Michał Górny +python-single-r1.eclass: + Introduce python-single-r1 to handle Python packages not supporting multiple + implementations. + + 24 Nov 2012; Michał Górny python-r1.eclass, + +python-utils-r1.eclass: + Move common Python functions to python-utils-r1. + + 24 Nov 2012; Pacho Ramos gnome2.eclass: + Handle documentation as 'default' for eapi5 and newer (as discussed via + mail), bug #373131 + + 21 Nov 2012; Michał Górny systemd.eclass: + systemd_do*: use local variable scope instead of subshelling. + + 21 Nov 2012; Michał Górny python-r1.eclass: + Introduce python_domodule() to install Python modules. + + 21 Nov 2012; Michał Górny python-r1.eclass: + Introduce python_doscript() to install Python scripts. + + 19 Nov 2012; Michał Górny python-r1.eclass: + Introduce a check for USE_PYTHON & PYTHON_TARGETS compatibility. + + 19 Nov 2012; Sergei Trofimovich haskell-cabal.eclass: + Added new helper function 'cabal_chdeps' and and debug variable + 'CABAL_DEBUG_LOOSENING' for it. + + 17 Nov 2012; Mike Gilbert enlightenment.eclass: + Remove the minimum restriction from PYTHON_DEPEND; any version of python from + the last several years will do the job. + + 17 Nov 2012; Pacho Ramos gnome2.eclass: + Rely on prune_libtool_files for eapis >= 5 as discussed with the team via + mail. + + 17 Nov 2012; Thomas Sachau (Tommy[D]) + enlightenment.eclass: + Raise python dependency to at least 2.5, fixes the breakage caused by + silently dropped support for python-2.4 in python eclass + + 16 Nov 2012; Sergei Trofimovich ghc-package.eclass, + haskell-cabal.eclass: + Restore dynamic linking of Cabal's ./setup and add building of shared + libraries for ghc-7.7+. + + 15 Nov 2012; Tomáš Chvátal obs-service.eclass: + Depend on suse-build as most services require it. + + 15 Nov 2012; Tomáš Chvátal obs-service.eclass: + Darn copy pasto overlook. + + 15 Nov 2012; Tomáš Chvátal obs-service.eclass: + Use src_uri arrows to allow versioning sanely. + + 12 Nov 2012; Davide Pesavento qt4-build.eclass: + Update from qt overlay: respect AR (bug #440262); drop support for EAPI=2; + switch to prune_libtool_files(); various cleanups. + + 08 Nov 2012; Davide Pesavento qt4-r2.eclass: + Partial sync with qt overlay. Apart from cosmetic changes, we now explicitly + define QMAKE_{AR,RANLIB,OBJCOPY} in eqmake4(), thus fixing bug 440266. + + 07 Nov 2012; Pacho Ramos gnome2.eclass: + Pass --disable-schemas-install when possible as discussed with the team via + mail. + + 07 Nov 2012; Pacho Ramos gnome2.eclass: + Pass --disable-silent-rules when possible (not needed for eapi5), bug #429308 + + 05 Nov 2012; Michał Górny distutils-r1.eclass: + Fix enabling byte-compiling. + + 04 Nov 2012; Michał Górny python-r1.eclass: + Always require PYTHON_COMPAT. Add an exception for python-exec which is a + special case. + + 01 Nov 2012; Robin H. Johnson mysql-autotools.eclass, + mysql-cmake.eclass, mysql-v2.eclass: + Bring in MySQL overlay eclass changes for tcmalloc, jemalloc, systemtap, + readline gplv3 and pbxt static build. + + 01 Nov 2012; Michał Górny python-r1.eclass: + Minor documentation improvements. + + 01 Nov 2012; Michał Górny python-r1.eclass: + Mark _python_ln_rel as @INTERNAL. + + 01 Nov 2012; Robin H. Johnson mysql.eclass, + mysql-v2.eclass: + Bug #392361: Fix mysql_install_db cases to work between all versions & + variations of MySQL. Also add in checks for tmpdir/log-bin/relay-log + directories that must exist otherwise the install_db will fail. + + 01 Nov 2012; Michał Górny distutils-r1.eclass: + Export PYTHONPATH for phases in out-of-source builds. + + 01 Nov 2012; Michał Górny distutils-r1.eclass: + Explicitly set library build dir in out-of-source builds. + + 01 Nov 2012; Davide Pesavento qt4-build.eclass: + Update homepage. + + 31 Oct 2012; Michał Górny distutils-r1.eclass: + Enable byte-compilation of Python modules only locally for + distutils-r1_python_install(). Thanks to Enlik for reminding me of it. + + 31 Oct 2012; Michał Górny python-r1.eclass: + Fix the shebang correcting function to patch shebang only. Thanks to Enlik + for the patch. + + 31 Oct 2012; Alexandre Rostovtsev + gst-plugins10.eclass: + Use versionator to slot gst-1.0 plugins. + + 30 Oct 2012; Michał Górny systemd.eclass: + Add systemd_with_utildir() as well. + + 30 Oct 2012; Michał Górny systemd.eclass: + Introduce systemd_get_utildir() wrt bug #440320. + + 30 Oct 2012; Michał Górny systemd.eclass: + Replace "echo -n" with "echo", bash removes trailing newline in subshells + anyway. + + 30 Oct 2012; Michał Górny python-distutils-ng.eclass: + Fix Prefix support, wrt bug #423323. + + 29 Oct 2012; Michał Górny distutils-r1.eclass: + Support and use out-of-source builds by default. + + 29 Oct 2012; Michał Górny distutils-r1.eclass: + Introduce an esetup.py wrapper function and mydistutilsargs=() for it. + + 29 Oct 2012; Michał Górny python-r1.eclass: + Enable python3.3 support. + + 29 Oct 2012; Michał Górny distutils-r1.eclass: + Remove redundant "cd ${BUILD_DIR}" calls. + + 29 Oct 2012; Michał Górny distutils-r1.eclass, + python-r1.eclass: + Move python-exec dependency to python-r1. That eclass now provides means to + create versioned scripts as well. + + 29 Oct 2012; Michał Górny distutils-r1.eclass: + Use find instead of hard-coded executable locations list when linking the + wrapper. + + 29 Oct 2012; Michał Górny distutils-r1.eclass: + Use new python-r1 functions. + + 29 Oct 2012; Michał Górny python-r1.eclass: + Introduce python_replicate_script(), to create copies of a Python script for + all installed implementations. + + 29 Oct 2012; Michał Górny python-r1.eclass: + Introduce python_export_best() to obtain variables for the most preferred + Python implementation enabled. + + 29 Oct 2012; Michał Górny python-r1.eclass: + Add getters for common Python variables. + + 29 Oct 2012; Michał Górny python-r1.eclass: + Add support for obtaining Python site-packages directory. + + 28 Oct 2012; Pacho Ramos emul-linux-x86.eclass: + Do not hardcode lib32, bug #429726 by SpanKY. + + 28 Oct 2012; Pacho Ramos emul-linux-x86.eclass: + Set QA_PREBUILT as all installed files are precompiled. + + 27 Oct 2012; Alexandre Rostovtsev gnome2-utils.eclass: + Avoid sedding configure.ac in gnome2_disable_deprecation_warning to prevent + accidental triggering of maintainer mode in some packages (bug #439602). + + 27 Oct 2012; Mike Gilbert python-r1.eclass: + Remove duplicate documentation for BUILD_DIR, PYTHON, and EPYTHON. This + breaks eclass-manpages. + + 26 Oct 2012; Michał Górny distutils-r1.eclass, + python-r1.eclass: + Do not enter BUILD_DIR in python_foreach_impl(), do that in distutils-r1 + instead. + + 25 Oct 2012; Michał Górny distutils-r1.eclass: + Add games/bin to lookup paths for rename_scripts(). + + 25 Oct 2012; Michał Górny python-r1.eclass: + Add a note about array brace expansion. + + 25 Oct 2012; Michał Górny distutils-r1.eclass, + python-r1.eclass: + Introduce python_export() to set Python-relevant variables, and document them + better. + + 25 Oct 2012; Tomáš Chvátal cmake-utils.eclass: + Include fix for bug#439268. + + 24 Oct 2012; Ulrich Müller vim.eclass: + Update dependency after package move from x11-libs/openmotif to + x11-libs/motif. + + 24 Oct 2012; Tomáš Chvátal myspell-r2.eclass: + Add some boring debug prints and error+die when hunspell folder is symlink. + Should fix bug#438792. + + 23 Oct 2012; Michał Górny eutils.eclass: + prune_libtool_files(): fix variable reuse. Thanks to radhermit for the patch. + + 23 Oct 2012; Michał Górny distutils-r1.eclass, + python-r1.eclass: + Improve documentation and a few minor fixes. + + 23 Oct 2012; Gilles Dartiguelongue gnome2-utils.eclass, + gnome2.eclass: + Add gnome2_disable_deprecation_warning to gnome2-utils.eclass + + 23 Oct 2012; Alexandre Rostovtsev + gst-plugins-base.eclass: + Punt plugin .la files for 0.10.36 and EAPI4 + + 23 Oct 2012; Alexandre Rostovtsev + gst-plugins-good.eclass: + Update for gst-plugins-good-0.10.31: use .xz tarballs, punt .la files. + + 22 Oct 2012; Michael Pagano linux-info.eclass: + Update for new location of version.h. Thanks to Magnus Helmersson. Bug + #438876 + + 22 Oct 2012; Thomas Sachau (Tommy[D]) + enlightenment.eclass: + Enable verbose output + + 21 Oct 2012; Alexandre Rostovtsev + gst-plugins-base.eclass: + Switch to xz tarballs in EAPI4. + + 19 Oct 2012; Michał Górny distutils-r1.eclass: + Call no-op default phases for each implementation (meaningless but more + correct). + + 19 Oct 2012; Patrick Lauer check-reqs.eclass: + Fixing units + + 19 Oct 2012; Patrick Lauer check-reqs.eclass: + Fixing binpkg behaviour + + 17 Oct 2012; Michael Palimaka cmake-utils.eclass: + Respect AR and RANLIB, wrt bug #436070. + + 16 Oct 2012; Justin Lecher fortran-2.eclass: + Unset FC and F77 if no fortran support is wanted + + 16 Oct 2012; Justin Lecher fortran-2.eclass: + Add enhanced DEP support in fortran-2.eclass to easy the usage. Only inherit + fortran-2 is need for general use. For a USE dependency on fortran the new + FORTRAN_NEEDED=USE variable was introduced + + 16 Oct 2012; Ben de Groot -qt4.eclass: + Removing qt4.eclass as announced on Sep 13 + + 15 Oct 2012; Michał Górny distutils-r1.eclass, + python-r1.eclass: + Enable EAPI 5 support. + + 15 Oct 2012; Michał Górny distutils-r1.eclass: + Fix missing wrapper symlinks when first supported Python implementation is + disabled. + + 14 Oct 2012; Alexey Shvetsov openib.eclass: + Add compat-rdma + + 14 Oct 2012; Sergey Popov leechcraft.eclass: + Add compiler version checking for LeechCraft + + 14 Oct 2012; Michał Górny +distutils-r1.eclass: + Introduce distutils-r1, a new (and simpler) eclass for Python packages using + distutils build system. + + 14 Oct 2012; Michał Górny +python-r1.eclass: + Introduce python-r1, a new (and simpler) eclass for Python-related packages. + + 13 Oct 2012; Johannes Huber kde4-meta-pkg.eclass: + Change LICENSE to 'metapackage' for kde meta packages, bug #438278. + + 12 Oct 2012; Alexey Shvetsov openib.eclass: + Fix typo + + 12 Oct 2012; Alexey Shvetsov openib.eclass: + [ofed] finalyze 3.5 + + 12 Oct 2012; Alexey Shvetsov openib.eclass: + [openib] Update ofed versions + + 11 Oct 2012; Michał Górny eutils.eclass: + prune_libtool_files(): add --modules option to remove modules (plugins) as + well. + + 11 Oct 2012; Michał Górny eutils.eclass: + prune_libtool_files(): fix removing symlinked .la files. + + 08 Oct 2012; Michał Górny +autotools-multilib.eclass: + Introduce autotools-multilib, to simplify building multilib packages with + autotools-utils. + + 07 Oct 2012; Justin Lecher fortran-2.eclass: + Revert virtual/fortran depends again, because not only USE=fortran controlls + fortran needs + + 07 Oct 2012; Justin Lecher fortran-2.eclass: + Depend on virtual/fortran eclass wise but in an USE=fortran sensitive way, + #435250 + + 07 Oct 2012; Justin Lecher fortran-2.eclass: + Revert last change to not break packages with optional fortran support + + 07 Oct 2012; Michał Górny boost-utils.eclass: + Fix stupid mistake in boost-utils_get_best_slot(). + + 07 Oct 2012; Justin Lecher fortran-2.eclass: + Depend on virtual/fortran eclass wise, #435250 + + 07 Oct 2012; Justin Lecher fortran-2.eclass: + Give some information on selected fortran compilers + + 03 Oct 2012; Chí-Thanh Christopher Nguyễn + virtualx.eclass: + Unbreak EAPI=2 and 3 users of virtualx.eclass, bug #406353 + + 02 Oct 2012; Tomáš Chvátal obs-download.eclass: + More update the doc + + 02 Oct 2012; Tomáš Chvátal obs-service.eclass: + Always use openSUSE:Tools as project to get updates. Remove obs_package + declaration as it is equal to pn. + + 02 Oct 2012; Tomáš Chvátal obs-download.eclass: + Change the documentation a bit and take OBS_PACKAGE from PN if not set. + + 02 Oct 2012; Michael Palimaka cmake-utils.eclass, + virtualx.eclass: + Make VIRTUALX_COMMAND nonfatal so that Xvfb is always killed. Return status + at the end of CMake test phase. This fixes bug #406353. + + 02 Oct 2012; Mike Gilbert python.eclass: + Add 3.3 as a supported python abi for testing. + + 29 Sep 2012; Chí-Thanh Christopher Nguyễn + virtualx.eclass: + Increase Xfvb resolution to address gimp test failure, bug #414853. + + 29 Sep 2012; Joerg Bornkessel vdr-plugin-2.eclass: + added helper function to remove i18n.h includes, if media-plugins/vdr-* are + still use the obsoleted i18n handling and unsupported to gettext handling + + 28 Sep 2012; Ulrich Müller eutils.eclass: + Test for the EAPI explicitly, because it isn't guaranteed that package + managers implement usex as a shell function. + + 28 Sep 2012; Ian Stakenvicius toolchain-funcs.eclass: + reverted fatal error from unset KV and made it a warning only shown when + checking for 'kern' arch, so that the portage environment call of tc-arch + will not fail anymore, bug 436450 + + 27 Sep 2012; Mike Gilbert python.eclass: + Remove a silly EAPI conditional. + + 27 Sep 2012; Ian Stakenvicius toolchain-funcs.eclass: + Fixed tc-ninja_magic_to_arch() to also use KV_FULL and fail if no kernel + version specified, bug 432390 + + 08 Oct 2012; Robin H. Johnson db.eclass: + Fix typo in src_test runner: makeopts_jobs not makeopts_job. + + 27 Sep 2012; Ian Stakenvicius eutils.eclass: + Made 'usex' declaration conditional on lack of PM or EAPI5+ support + + 27 Sep 2012; Ian Stakenvicius fortran-2.eclass, + selinux-policy-2.eclass, vdr-plugin-2.eclass, xorg-2.eclass, + autotools-utils.eclass, base.eclass, bash-completion-r1.eclass, + boost-utils.eclass, check-reqs.eclass, cmake-utils.eclass, emboss.eclass, + emul-linux-x86.eclass, enlightenment.eclass, fox.eclass, games.eclass, + games-ggz.eclass, git.eclass, gnome2-utils.eclass, gnome2.eclass, + gst-plugins-bad.eclass, gtk-sharp-module.eclass, haskell-cabal.eclass, + kde4-functions.eclass, leechcraft.eclass, mozlinguas.eclass, mysql.eclass, + mysql-v2.eclass, obs-service.eclass, office-ext.eclass, perl-module.eclass, + php-ext-source-r2.eclass, python-distutils-ng.eclass, qt4-build.eclass, + qt4-r2.eclass, ruby-ng.eclass, scons-utils.eclass, systemd.eclass, + vcs-snapshot.eclass, vdr-plugin.eclass, virtuoso.eclass, waf-utils.eclass, + xfconf.eclass: + naive bump of all EAPI-specific checks in eclasses to permit EAPI=5 where + EAPI=4 was previously allowed + + 27 Sep 2012; Mike Gilbert python.eclass: + Allow usage of EAPI 5. + + 27 Sep 2012; Alexandre Rostovtsev clutter.eclass: + Default clutter license is LGPL-2.1 or later. + + 26 Sep 2012; Julian Ospald python-distutils-ng.eclass: + add PYTHON_USE wrt #426768 + + 20 Sep 2012; Tomáš Chvátal autotools.eclass: + Be more strict about eautoreconfig on aclocal.m4. Fixes bug#424763 and + bug#420631. + + 20 Sep 2012; Justin Lecher intel-sdp.eclass: + Keyword for *-linux prefix + + 20 Sep 2012; Michael Palimaka cmake-utils.eclass: + Add support for the ninja build system wrt bug #430608. Improve prefix + support wrt bug #434086. + + 20 Sep 2012; Alexandre Rostovtsev vala.eclass: + VALA_{MIN,MAX}_API_VERSION are not unset by default. + + 19 Sep 2012; Joerg Bornkessel vdr-plugin-2.eclass, + vdr-plugin.eclass: + using now append-lfs-flags for large files + + 19 Sep 2012; Michał Górny +boost-utils.eclass: + Introduce boost-utils eclass, to support linking against arbitrary boost + version. + + 18 Sep 2012; Ulrich Müller bzr.eclass: + Use lightweight checkout instead of export if EBZR_WORKDIR_CHECKOUT is set; + bug 434746. Remove old cleanup code. + + 18 Sep 2012; Tim Harder vim.eclass: + Use has_version instead of built_with_use. + + 17 Sep 2012; Joerg Bornkessel vdr-plugin-2.eclass: + better LINGUAS detection, vdr-plugin-2.eclass + + 16 Sep 2012; Ulrich Müller tla.eclass: + Mark as DEAD for removal. + + 16 Sep 2012; Justin Lecher intel-sdp.eclass: + Add old license jingle until we have fixed the license situation generally + + 16 Sep 2012; Justin Lecher intel-sdp.eclass: + Added new intel-sdp.eclass + + 15 Sep 2012; Zac Medico cannadic.eclass, + cmake-utils.eclass, confutils.eclass, embassy.eclass, eutils.eclass, + games.eclass, gnatbuild.eclass, gnuconfig.eclass, libtool.eclass, + linux-mod.eclass, nsplugins.eclass, perl-module.eclass, qmail.eclass, + toolchain-funcs.eclass: + Remove redundant DESCRIPTION variable settings. + + 14 Sep 2012; Mark Wright ghc-package.eclass: + ghc-pkg --global-conf parameter is renamed to --global-package-db in ghc + 7.6.1 + + 12 Sep 2012; Jory A. Pratt mozconfig-3.eclass: + Disable crashreporter on all source builds, bug #433962. + + 12 Sep 2012; Alexandre Rostovtsev vala.eclass: + Small stylistic fix. + + 12 Sep 2012; Alexandre Rostovtsev vala.eclass: + Typo: s/VALA_API_VERSION/version/ + + 12 Sep 2012; Alexandre Rostovtsev +vala.eclass: + New eclass. + + 11 Sep 2012; Tim Harder vim.eclass: + Allow vim to be built against ruby-1.9. + + 11 Sep 2012; Pawel Hajdan jr chromium.eclass: + Remove deprecated chromium_check_kernel_config. + + 10 Sep 2012; Brian Harring mysql.eclass, + mysql-v2.eclass: + Remove usage of strip_duplicate_slashes function. + + It's outside of PMS, and is exposed by misbehaviour on portages part. + + 09 Sep 2012; Ulrich Müller cvs.eclass: + Rename ESCM_OFFLINE to EVCS_OFFLINE. Drop ESCM_VERSION. Fixes bug 410465. + + 08 Sep 2012; selinux-policy-2.eclass: + Support live policy builds + + 06 Sep 2012; Michael Palimaka qt4-build.eclass: + Improve respect for *FLAGS. Fixes part of bug #427782. + + 04 Sep 2012; Johannes Huber kde4-meta.eclass: + Dont try to extract cmake/modules for kdegames > 4.9.0. Its removed from + top-level directory by upstream, fixes bug #431924. + + 01 Sep 2012; Vadim Kuznetsov vadimk@gentoo.org -vmware.eclass, + -vmware-mod.eclass: + removed vmware and vmware-mod elsasses + + 01 Sep 2012; Ulrich Müller elisp-common.eclass: + Suppress warning message in elisp-site-regen for initial installation. + + 30 Aug 2012; Michael Pagano linux-mod.eclass: + Minor typo fix to documentation line. Bug #419469 + + 29 Aug 2012; Michał Górny eutils.eclass: + prune_libtool_files: run pkg-config code only if necessary. + + 28 Aug 2012; Michael Pagano linux-mod.eclass: + Remove deprecated and unrecommended parameter -r from depmod + + 27 Aug 2012; Michał Górny systemd.eclass: + Drop blockers for ancient systemd versions. + + 27 Aug 2012; Michał Górny systemd.eclass: + tmpfiles.d: ensure .conf suffix when installing. + + 27 Aug 2012; Michał Górny systemd.eclass: + Add systemd_newtmpfilesd(). + + 22 Aug 2012; Christoph Junghans unpacker.eclass: + added support for cpio archives + + 19 Aug 2012; Johannes Huber kde4-base.eclass, + kde4-functions.eclass, kde4-meta.eclass: + Remove obsolete koffice handling. Simplify Qt minimal requirement. Remove + duplicated entry for unstable KDE SC releases in SRC_URI calculation. Arrange + docs example for KDE_LINGUAS alphabetically. + + 19 Aug 2012; Johannes Huber -tetex-3.eclass, -tetex.eclass: + Remove obsolete. Announced on 2012/07/18. + + 17 Aug 2012; Ulrich Müller elisp.eclass: + Remove unnecessary assignment of IUSE variable. + + 17 Aug 2012; Tomáš Chvátal obs-download.eclass, + obs-service.eclass: + Suse eclasses are under suse herd. + + 16 Aug 2012; Mike Gilbert python.eclass: + Hide the python.eclass unmerge noise behind PORTAGE_VERBOSE. + + 16 Aug 2012; Patrick Lauer python.eclas: + Fix noisy output on unmerge #423741 + + 15 Aug 2012; Diego E. Pettenò ruby-fakegem.eclass: + Make sure not to test for use doc if it's not there. + + 14 Aug 2012; Diego E. Pettenò ruby-fakegem.eclass: + Add support for documentation recipes as well, and implement an rdoc recipe. + + 14 Aug 2012; Tomáš Chvátal xorg-2.eclass: + Fix disable-dependency-tracking passing. Fixes bug#372239. + + 13 Aug 2012; Diego E. Pettenò ruby-fakegem.eclass, + ruby-ng.eclass: + Add support for cucumber as a test recipe. This allows abstracting some of + the work needed to skip it over on JRuby. + + 13 Aug 2012; Diego E. Pettenò ruby-ng.eclass: + Add a cucumber wrapper similar to the rspec one we have already. + + 13 Aug 2012; Matti Bickel fox.eclass: + Add updated info statement about fox17.pc re bug #426718 + + 05 Aug 2012; Joerg Bornkessel vdr-plugin-2.eclass: + fix for wrong detected *.pot file in po dir + + 03 Aug 2012; Tim Harder vim-plugin.eclass: + Add alternative location for vim plugin tarball archives. + + 02 Aug 2012; Johannes Huber kde4-meta.eclass: + Fix tarball extract for old kdepim, bug #429428. + + 01 Aug 2012; Johannes Huber kde4-base.eclass, + kde4-functions.eclass, kde4-meta.eclass: + Make .xz compression as default for SRC_URI calculation. Add KDE prefix to + BUILD_TYPE. No #DONOTCOMPILE if add_subdirectory has a variable parameter + ("${..."). + + 29 Jul 2012; Akinori Hattori subversion.eclass: + add support for file:// URI scheme wrt bug #416649 + + 29 Jul 2012; Akinori Hattori subversion.eclass: + replace built_with_use by USE deps wrt bug #242100 + + 29 Jul 2012; Akinori Hattori subversion.eclass: + remove obsolete workaround (ESVN_DISABLE_DEPENDENCIES) + + 29 Jul 2012; Akinori Hattori subversion.eclass: + remove DESCRIPTION variable wrt bug #428304 + + 28 Jul 2012; Julian Ospald games.eclass: + omg, we checked the dirs in ${S} instead of ${D} which accidentially + worked for some ebuilds (EAPI-4 related fix) + + 05 Aug 2012; Justin Lecher pam.eclass: + Add magic needed for app-portage/eclass-manpages to pam.eclass, changes + approved by author + + 26 Jul 2012; Fabian Groffen + +ELT-patches/sol2-ltmain/2.4.2, libtool.eclass: + elt-patches: add Solaris no de-deplication patch to fix built C++ objects + from aborting when an exception is thrown + + 26 Jul 2012; selinux-policy-2.eclass: + Use warnings for SELinux failures, not errors, since the failure is not fatal + for a system + + 26 Jul 2012; Ben de Groot l10n.eclass: + Remove ambiguous wording + + 24 Jul 2012; Fabian Groffen autotools.eclass: + _elibtoolize: properly set LIBTOOLIZE in case glibtoolize exists in the + system + + 23 Jul 2012; Ralph Sennhauser java-vm-2.eclass: + Add C to flags pass to pax-mark to ensure a header is created. Thanks to + blueness. #427642 + + 23 Jul 2012; Tomáš Chvátal myspell-r2.eclass: + More licenses removal + + 23 Jul 2012; Ben de Groot qt4-r2.eclass: + Add array variables for DOCS and HTML_DOCS in qt4-r2.eclass + + 23 Jul 2012; Ben de Groot +l10n.eclass: + Initial commit of l10n.eclass + + 23 Jul 2012; Jorge Manuel B. S. Vicetto + mysql.eclass, mysql-v2.eclass: + Sync mysql and mysql-v2 eclasses from the mysql overlay. + Simplify ncurses dependency and update inherit to use git-2 eclass. + + 21 Jul 2012; Ralph Sennhauser java-pkg-2.eclass: + Convert documentation to eclass-manpages. + + 19 Jul 2012; Tomáš Chvátal mozlinguas.eclass: + Fix eclassdoc. + + 18 Jul 2012; Johannes Huber tetex-3.eclass, tetex.eclass: + Marking as DEAD for removal. + + 18 Jul 2012; Ralph Sennhauser java-virtuals-2.eclass: + Convert to eclass-manpages. + + 18 Jul 2012; Ralph Sennhauser java-vm-2.eclass: + Add ROOT support, patch by vapier. #416341 + + 18 Jul 2012; Ulrich Müller bzr.eclass: + Don't assign useless values to DESCRIPTION and HOMEPAGE variables. + + 17 Jul 2012; Mike Gilbert chromium.eclass: + Remove -v option from rm command. + + 10 Jul 2012; Davide Pesavento qt4-build.eclass: + Stop inheriting base.eclass + + 09 Jul 2012; Mike Gilbert base.eclass: + Remove false statement from eclass description. + + 08 Jul 2012; Sergei Trofimovich haskell-cabal.eclass: + Allow wildcards in CABAL_CORE_LIB_GHC_PV. Guard against breakage of + ghc-shipped libraries. + + 08 Jul 2012; Diego E. Pettenò ruby-ng.eclass: + Add a function to wrap around testrb-2 as well. + + 05 Jul 2012; Diego E. Pettenò ruby-fakegem.eclass, + ruby-ng.eclass: + Add support for running rspec while respecting some common variables + (TEST_VERBOSE and NOCOLOR) in ruby-ng; then use this with a new variable in + ruby-fakegem. + + 05 Jul 2012; Ralph Sennhauser java-utils-2.eclass: + Remove java-pkg_ensure-gcj and java-pkg_ensure-test. #261562 #278965 + + 01 Jul 2012; Matti Bickel php-pear-lib-r1.eclass: + Remove requirement for depend.php.eclass. Since our switch to /usr/share/php + only it is no longer needed. + + 01 Jul 2012; Vadim Kuznetsov vadimk@gentoo.org vmware.eclass, + vmware-mod.eclass: + Makred vmware.eclass and vmware-mod.eclass dead. + + 30 Jun 2012; Tomáš Chvátal myspell-r2.eclass: + Remove also lower case licenses. + + 27 Jun 2012; Joerg Bornkessel vdr-plugin-2.eclass: + fixed eapi block; bug 423657 + + 26 Jun 2012; Robin H. Johnson linux-info.eclass: + You must ensure at least one of the version setup functions gets called in + linux-info.eclass before you can use the config functions. + + 24 Jun 2012; Michael Pagano kernel-2.eclass: + Add dev-lang/perl to kernel-2.eclass RDEPEND. Bug #421483 + + 22 Jun 2012; Ian Stakenvicius user.eclass: + esethome: silently exit if home dir already up to date, improve messaging + + 22 Jun 2012; Ian Stakenvicius user.eclass: + esethome: eerror and not die when home dir cannot be updated, due to for + instance user being in use + + 22 Jun 2012; Ian Stakenvicius user.eclass: + fixed esethome, directory must exist befure user record can be updated + + 22 Jun 2012; Bernard Cafarelli gnustep-base.eclass: + Stable gnustep-base does not have USE=libobjc2, thanks ago + + 22 Jun 2012; Michael Palimaka kde4-base.eclass: + Sync from kde overlay: Enable tests for live ebuilds, add support for virtual + dbus during src_test, update tarball extension for unstable releases. + + 21 Jun 2012; Naohiro Aota gnome2-utils.eclass: + Add new function gnome2_query_immodules_gtk{2,3} to update immodules cache. + #413529 + + 20 Jun 2012; Michał Górny eutils.eclass: + prune_libtool_files(): report .a removal only if it exists, and explain the + reasoning for it. + + 20 Jun 2012; Tomáš Chvátal gst-plugins-bad.eclass: + Fix building with newer eapis wrt bug#385841. Noticed by triggered rebuild to + -ocr. + + 19 Jun 2012; Bernard Cafarelli gnustep-base.eclass: + Revert to built_with_use for correct libobjc detection and EAPI 0 ebuilds + support + + 18 Jun 2012; Davide Pesavento qt4-build.eclass: + Update from qt overlay: drop USE=c++0x from qt-webkit, stop adding USE=qpa to + 4.8.3 and later, dead code removal and other minor cleanups. + + 18 Jun 2012; Ian Stakenvicius user.eclass: + added 'esethome' to user.eclass + + 18 Jun 2012; Fabian Groffen flag-o-matic.eclass: + Allow header and library paths flags in setup-allowed-flags(), bug #414641 + + 17 Jun 2012; Tomáš Chvátal myspell-r2.eclass: + Remove licenses prior copying docs. + + 14 Jun 2012; Julian Ospald eutils.eclass: + small enhancement to examples of doicon + + 13 Jun 2012; Tomáš Chvátal myspell-r2.eclass: + Make the oxt unpacking really work. + + 13 Jun 2012; Tomáš Chvátal myspell-r2.eclass: + Handle dodoc correctly to not die if no documents are found. + + 12 Jun 2012; Ralph Sennhauser java-vm-2.eclass: + Convert docs to eclass-manpages. + + 11 Jun 2012; Ralph Sennhauser java-vm-2.eclass: + Add app-admin/eselect-java as preferred provider of eselect java-vm. + + 11 Jun 2012; Michał Górny vcs-snapshot.eclass: + Unpack tarballs in directory matching their name rather than ${P}. This + allows the eclass to handle multiple tarballs in one ebuild, and non-snapshot + tarballs should work fine too. + + 11 Jun 2012; Michał Górny xorg-2.eclass: + Replace remove_libtool_files with prune_libtool_files. + + 11 Jun 2012; Tomáš Chvátal xorg-2.eclass: + Fix not assigned variable. IE bug#416673. + + 10 Jun 2012; Joerg Bornkessel vdr-plugin-2.eclass: + fix for strip-linguas en + + 10 Jun 2012; Mike Gilbert python-distutils-ng.eclass: + Remove pypy1_7 from default PYTHON_COMPAT due to removal from tree. Add + pypy1_9. + + 10 Jun 2012; Joerg Bornkessel vdr-plugin-2.eclass: + fixed missing chost tag; fixed append-cppflags warning; added Variable to + keep the i18n.o object + + 10 Jun 2012; Akinori Hattori subversion.eclass: + reorder public functions + + 10 Jun 2012; Akinori Hattori subversion.eclass: + fixes bug #416743. + + 10 Jun 2012; Akinori Hattori subversion.eclass: + update @MAINTAINER and minor cleanup. + + 09 Jun 2012; Julian Ospald games.eclass: + fix for games.eclass wrt bug #336626 #c21 + + 09 Jun 2012; Marien Zwart python.eclass: + Add pypy-1.9 to the list of supported python ABIs. + + 07 Jun 2012; Zac Medico kde4-base.eclass, + mysql-autotools.eclass, mysql-cmake.eclass: + inherit flag-o-matic for append-flags + + 07 Jun 2012; Michał Górny vcs-snapshot.eclass: + Extract to ${WORKDIR}/${P} rather than ${S}. + + 07 Jun 2012; Davide Pesavento qt4-build.eclass: + Specify SLOT in blocker atoms, to avoid blocking Qt5 packages. + + 06 Jun 2012; Michał Górny autotools-utils.eclass: + Reuse eautoreconf, deprecate autotools-utils_autoreconf. + + 06 Jun 2012; Michał Górny autotools.eclass: + Support other GNOME-related tools in eautoreconf: gtk-doc, gnome-doc & + glib-gettext. + + 06 Jun 2012; Michael Pagano kernel-2.eclass: + Move ppc/powerpc fix to after we apply linux patches + + 06 Jun 2012; Michał Górny autotools-utils.eclass: + Start using prune_libtool_files() from eutils, deprecate + remove_libtool_files(). + + 06 Jun 2012; Michał Górny eutils.eclass: + Introduce prune_libtool_files() for .la file removal. Based on one used + by autotools-utils. + + 05 Jun 2012; Fabian Groffen autotools.eclass: + Avoid type -P output for glibtoolize, bug #419641 + + 05 Jun 2012; Julian Ospald eutils.eclass: + enhanced functionality of doicon/newicon in eutils.eclass + + 05 Jun 2012; Pacho Ramos stardict.eclass: + Allow more providers for stardict, bug #413093 by tot-to and qt team. + + 05 Jun 2012; Ryan Hill flag-o-matic.eclass: + Update Intel/AMD instruction sets for 4.7. + + 05 Jun 2012; Ryan Hill flag-o-matic.eclass: + Add -mfloat-abi=* to ALLOWED_FLAGS (bug #419615 by Hector Martin). + + 04 Jun 2012; Ralph Sennhauser java-pkg-2.eclass: + No longer call java-pkg_ensure-test in java-pkg-2_pkg_setup as this is + handled by all package managers. #278965 + + 02 Jun 2012; Zac Medico common-lisp-common-2.eclass, + java-ant-2.eclass, common-lisp-common-3.eclass, common-lisp-common.eclass, + db.eclass, depend.php.eclass, freedict.eclass, gnat.eclass, + gst-plugins-bad.eclass, gst-plugins-base.eclass, kde4-base.eclass, + mysql.eclass, mysql-autotools.eclass, mysql-cmake.eclass, nsplugins.eclass, + php-ext-source-r2.eclass, ruby-ng.eclass, scsh.eclass: + inherit multilib for get_libdir + + 01 Jun 2012; Ralph Sennhauser ant-tasks.eclass: + Don't assinging RDEPEND to DEPEND and vise versa. JRE in DEPEND confuses VM + switching code. + + 30 May 2012; Sergei Trofimovich darcs.eclass: + Use 'darcs get --lazy' instead of 'darcs get --partial' (gone in darcs-2.8). + + 30 May 2012; Ralph Sennhauser ant-tasks.eclass: + Set prefix for ant-1.8.4 + + 30 May 2012; Justin Lecher flag-o-matic.eclass: + Sort ldflags handling functions to logic place + + 30 May 2012; Sergei Trofimovich games.eclass: + Allow EAPI=4. + + 30 May 2012; Pawel Hajdan jr chromium.eclass: + Introduce chromium_suid_sandbox_check_kernel_config, deprecate + chromium_check_kernel_config. + + 29 May 2012; Pawel Hajdan jr gnustep-2.eclass, + gnustep-base.eclass: + Apply gnustep eclass changes wrt + http://archives.gentoo.org/gentoo-dev/msg_eee22ea47f4d15e2fa2932583aa92db7.xm + l + + 28 May 2012; Pawel Hajdan jr eutils.eclass: + Simplify preserve_old_lib ewarn messages, wrt + http://archives.gentoo.org/gentoo-dev/msg_bf159af028ffeeb83c679d6a0eaa73e5.xm + l . gentoolkit-0.3.0.5 fixing problems blocking this change is now stable on + all archs (bug #411479). + + 28 May 2012; Michał Górny autotools-utils.eclass: + Remove invalid use check, these should be fixed by now. + + 28 May 2012; Michał Górny autotools-utils.eclass: + Fail whenever unable to change directory, wrt #391927. + + 28 May 2012; Michał Górny autotools-utils.eclass: + autotools.eclass no longer supports re-inheriting so we need to override + AUTOTOOLS_AUTO_DEPEND for good... + + 26 May 2012; selinux-policy-2.eclass: + Introducing support for user-provided policies, fix loading logic to retry + with all modules (bug #414599, #414017) + + 26 May 2012; Michał Górny python-distutils-ng.eclass: + Fix double hashbang in installed scripts. Patch by Krzysztof Pawlik, modified + by me. + + 25 May 2012; Joerg Bornkessel vdr-plugin-2.eclass: + fixed install for locales if only LINGUAS=en + + 25 May 2012; Davide Pesavento qt4-build.eclass: + Re-enable rpath on prefix wrt bug 417169. + + 24 May 2012; Mike Gilbert python-distutils-ng.eclass: + Remove obsolete pkg_pretend function. + + 23 May 2012; Mike Gilbert chromium.eclass: + Don't elog about icons if the user has installed them. Bug 416773 by pacho. + + 23 May 2012; Diego E. Pettenò apache-2.eclass: + Avoid using 'make' for installing; use 'mkdir -p' for creating the + directories to solve parallel install issues (Apache's script is not safe, + but we expect a working mkdir -p). Tested on a 32-way system. + + 22 May 2012; Michał Górny autotools-utils.eclass: + Call eaclocal unconditionally; _elibtoolize no longer does that. + + 22 May 2012; Davide Pesavento qt4-build.eclass: + Update SRC_URI for Qt 4.8.1 and later. + + 21 May 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Add information about automatic run of python-distutils-ng_redoscript. + + 21 May 2012; Michał Górny autotools-utils.eclass: + Fix to match autotools.eclass API changes. + + 21 May 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Document PYTHON_DISABLE_SCRIPT_REDOS. + + 21 May 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Fix #! line for installed scripts and install them for enabled + implementations, see bug #416131. + + 20 May 2012; Joerg Bornkessel vdr-plugin-2.eclass: + strip-linguas check added + + 20 May 2012; Joerg Bornkessel vdr-plugin-2.eclass: + some debug infos for wrong use of vdr-plugin-2.eclass + + 20 May 2012; Davide Pesavento qt4-build.eclass: + Try to avoid sandbox violation when running qhelpgenerator, bug 415517. + + 19 May 2012; Ulrich Müller xemacs-elisp-common.eclass: + Fix name space collision with elisp-common.eclass, bug 406053. + + 19 May 2012; Davide Pesavento qt4.eclass: + qt4.eclass is dead. + + 14 May 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Block older versions of sys-apps/portage that don't have improved + COLLISION_IGNORE handling, see bug #410691. + + 11 May 2012; Tomáš Chvátal nsplugins.eclass: + Actually check if the plugin file exist before creating symlink. Avoids + broken symlinks. + + 10 May 2012; Tomáš Chvátal office-ext.eclass: + Ignore licenses, user accept them by portage. + + 10 May 2012; Alexandre Rostovtsev waf-utils.eclass: + Depend on python and block python[-threads] for bug #409427. + + 09 May 2012; Tomáš Chvátal office-ext.eclass: + Update the default unpack to detect cases when oxt is packed elsewhere. + + 09 May 2012; Matt Turner xorg-2.eclass: + Fix xorg-2's git:// EGIT_REPO_URI. + + 09 May 2012; Tomáš Chvátal office-ext.eclass: + Add the src_unpack phase for office-ext eclass. + + 09 May 2012; Pacho Ramos gnome2.eclass: + Don't call gtk-doc configure option when not available + + 08 May 2012; Andreas K. Huettel kde4-base.eclass, + kde4-functions.eclass, kde4-meta.eclass, kde4-meta-pkg.eclass: + Sync kde4-*.eclass from kde overlay: add x11-libs/qt-dbus to kde + dependencies, eqawarn on ${mycmakeargs} as string, properly treat case of + undefined LINGUAS (bug 372457) + + 08 May 2012; Andreas K. Huettel cmake-utils.eclass: + Update cmake-utils.eclass from kde overlay: make builds verbose by default, + fix usage of PREFIX (bug 358059) + + 07 May 2012; Davide Pesavento qt4-build.eclass: + Stop stripping upstream CFLAGS from g++.conf for Qt 4.8 and later (see bug + 352778 comment #6). + + 06 May 2012; Fabian Groffen + +ELT-patches/sol2-conf/2.4.2, libtool.eclass: + Add ELT patch for Solaris x64 libtool problem where the linker is set to + 'ld_sol2' + + 06 May 2012; Mike Gilbert python-distutils-ng.eclass: + Silence eclass-to-manpage warnings. + + 05 May 2012; Mike Gilbert python-distutils-ng.eclass: + Eliminate another duplicate slash. + + 05 May 2012; Mike Gilbert python-distutils-ng.eclass: + Simplify ${D%/}/ to ${D}; PMS says ${D} always has a trailing slash, and it + works without a trailing slash anyway. + + 04 May 2012; Chí-Thanh Christopher Nguyễn + xorg-2.eclass: + Raise util-macros dependency. + + 04 May 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Let distutils compile python modules, see bug #413957. + + 03 May 2012; Mike Gilbert python-distutils-ng.eclass: + Declare local S in _python-distutils-ng_run_for_impl. + + 02 May 2012; Mike Gilbert python-distutils-ng.eclass: + Fix bytecode generation with Python 3, bug 413771. Patch by James Rowe. + + 02 May 2012; Gilles Dartiguelongue gnome2-utils.eclass, + gnome2.eclass: + Rewrite scrollkeeper support as proposed in bug #301311. + + 02 May 2012; Jeff Horelick clutter.eclass, + gkrellm-plugin.eclass, gnome-python-common.eclass, go-mono.eclass, + gpe.eclass, gst-plugins-bad.eclass, gst-plugins-base.eclass, + gst-plugins-good.eclass, gst-plugins-ugly.eclass, gtk-sharp-module.eclass, + kde4-base.eclass, ruby-ng-gnome2.eclass, mozcoreconf-2.eclass, xorg-2.eclass, + rox.eclass, vim.eclass, x-modular.eclass: + dev-util/pkgconfig -> virtual/pkgconfig + + 02 May 2012; Davide Pesavento qt4-build.eclass: + dev-util/pkgconfig -> virtual/pkgconfig + + 30 Apr 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Remove die from eclass, simply warn if user has collision-protect enabled. + + 30 Apr 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Correctly chdir to ${S}, see bug #411563. + + 29 Apr 2012; Diego E. Pettenò sgml-catalog.eclass: + Fix infinite look if the catalog is corrupted. + + 29 Apr 2012; Joerg Bornkessel vdr-plugin-2.eclass: + typo, added missing [ ] for test + + 29 Apr 2012; Joerg Bornkessel +vdr-plugin-2.eclass: + vdr-plugin-2.eclass added; include major fixes for obselet i18n handling, + Linguas support + + 27 Apr 2012; Ulrich Müller elisp-common.eclass: + Sync from Emacs overlay: Require GNU Emacs in elisp-need-emacs(). + + 25 Apr 2012; Fabian Groffen qt4-build.eclass: + fix_includes: create relative symlinks for header directories, such that + further additions by ebuilds in src_install don't fail + + 24 Apr 2012; Tomáš Chvátal myspell-r2.eclass: + Oops didn't commit the dir supporting version. This replaces plain doins with + proper newins command. + + 24 Apr 2012; Tomáš Chvátal +myspell-r2.eclass: + Add myspell-r2.eclass which is just eclassdoced myspell.eclass with removed + no-longer required stuff. + + 23 Apr 2012; Joerg Bornkessel vdr-plugin.eclass: + reverted last changes in plugin_has_gettext function + + 20 Apr 2012; Patrick Lauer depend.apache.eclass: + Typo + + 20 Apr 2012; Patrick Lauer depend.apache.eclass: + Extending depend.apache.eclass for apache 2.4 + + 19 Apr 2012; Davide Pesavento qt4-r2.eclass: + Overhaul *FLAGS handling in eqmake4() to fix bug 361303. Thanks to Michael + (kensington) for the patch. + + 19 Apr 2012; Andreas K. Huettel kde4-meta.eclass: + No ewarns even if tar misses some files on unpack, as that is so common it's + pretty much useless. + + 19 Apr 2012; Sergei Trofimovich haskell-cabal.eclass: + Added CABAL_FEATURES=test-suite by Alexander Vershilov. It enables building + of test suites introduced in Cabal-1.8 + + 19 Apr 2012; Davide Pesavento qt4-build.eclass: + Add appropriate blockers for qt-bearer. + + 18 Apr 2012; Joerg Bornkessel vdr-plugin.eclass: + removed unneeded path install for /usr/local/share; fix i18n install bug, + start with vdr-1.7.27 bug 411945, thanks to Marc Perrudin for this workaround + + 16 Apr 2012; Tomáš Chvátal cmake-utils.eclass: + Whitespace cmake dep. Add build_rules to CMAKE_BUILD_DIR rather than to T as + they might vary for multiple abi builds. Create the CMAKE_BUILD_DIR right + away when determined. + + 16 Apr 2012; Samuli Suominen waf-utils.eclass: + Unbreak waf-utils.eclass by restoring --jobs= argument wrt #412159 + + 15 Apr 2012; Mike Frysinger db.eclass perl-module.eclass + waf-utils.eclass: + Use new makeopts_jobs helper from eutils.eclass. + + 14 Apr 2012; Sergei Trofimovich haskell-cabal.eclass: + move 'dev-haskell/cabal' santy check out from 'pkg_*' to 'src_*' function to + allow binary installation. Reported by tamiko. + + 14 Apr 2012; Sergei Trofimovich haskell-cabal.eclass: + fix -dynamic './setup configure' failures against newer libffi (bug #411789 + by Leonid Podolny) + + 09 Apr 2012; Sergei Trofimovich ghc-package.eclass, + haskell-cabal.eclass: + Remove outdated bits for gnome2-utils.eclass: + Punt stale icon-theme.cache files and empty icon theme directories after + theme uninstallation (bug #410495, thanks to Maxim Kammerer for reporting). + + 07 Apr 2012; Joerg Bornkessel vdr-plugin.eclass: + vdr-vdrmanager added for gettext handling + + 07 Apr 2012; Joerg Bornkessel vdr-plugin.eclass: + some plugins gives false positive results on gettext handling, add this + plugins here + + 04 Apr 2012; Davide Pesavento qt4-build.eclass: + Update from qt overlay, fixes #407523. + + 04 Apr 2012; Johannes Huber kde4-base.eclass, + kde4-meta.eclass: + Use .xz also for 4.8.x with x>1. + + 03 Apr 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Add function that makes it easier to properly install Python scripts that get + installed automatically by distutils. + + 03 Apr 2012; Krzysztof Pawlik mercurial.eclass: + Rename ESCM_OFFLINE to EVCS_OFFLINE, see bug #410469. + + 03 Apr 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Add detection of collision-protect in FEATURES. + + 03 Apr 2012; Pacho Ramos git-2.eclass: + Reorder git-2.eclass maintainers to get bugs assigned to most active + maintainer. + + 02 Apr 2012; Pacho Ramos eutils.eclass: + Use einfo instead of ewarn as discussed in + http://archives.gentoo.org/gentoo-dev/msg_512b5e4049617666f6637618bd62857a.xm + l + + 02 Apr 2012; Sergei Trofimovich darcs.eclass: + Switch from ESCM_OFFLINE var to EVCS_OFFLINE (bug #410467 by Ulrich Müller). + Don't skip _darcs/ when checkout to $WORKDIR. Add 'rsync' to DEPENDS. + + 01 Apr 2012; Mike Gilbert subversion.eclass: + ESCM_OFFLINE -> EVCS_OFFLINE. Bug 410471. + + 30 Mar 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Fix two small issues, spotted by Sławomir Nizio + . + + 29 Mar 2012; Patrick Lauer apache-2.eclass: + Sanitizing directory permissions #398899 + + 29 Mar 2012; Marien Zwart python.eclass: + Add more versions of pypy to the hardcoded mapping in python.eclass. + + 28 Mar 2012; Marien Zwart python-distutils-ng.eclass: + Try to unbreak dependency generation. + + 26 Mar 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + _python-distutils-ng_generate_depend was used only in one place, inline it. + + 26 Mar 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Avoid ${impl::-3} parameter expansion, this is not supported by older bash + and caused issues with cache generation. + + 26 Mar 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Small fixes: use +=, cleanup used variables, white space. + + 26 Mar 2012; Krzysztof Pawlik + python-distutils-ng.eclass: + Include only valid values in REQUIRED_USE. + + 26 Mar 2012; Justin Lecher python-distutils-ng.eclass: + Add missing space to new python.eclass + + 25 Mar 2012; Krzysztof Pawlik + +python-distutils-ng.eclass: + Add python-distutils-ng.eclass: new eclass for installing Python, distutils + based packages. + + 25 Mar 2012; Gilles Dartiguelongue + gnome-python-common.eclass: + Replace old py-compile trick by the one from python eclass. + + 24 Mar 2012; Andreas K. Huettel kde4-meta.eclass: + Make opengl dependency soft in kde-workspace (except kwin) + + 23 Mar 2012; Mike Gilbert chromium.eclass: + Set IUSE=custom-cflags in the eclass so we can reference it in the die hook. + + 23 Mar 2012; Mike Gilbert sgml-catalog.eclass: + Convert SGML_TOINSTALL to a bash array. Add some documentation. + + 23 Mar 2012; Mike Gilbert sgml-catalog.eclass: + PMS says that postrm runs before postinst, so remove workaround in + sgml-catalog_pkg_postrm. Fix order of arguments in einfo message. + + 22 Mar 2012; Alexis Ballier texlive-module.eclass: + Drop support for pre-2010 TeX Live versions + + 22 Mar 2012; Michał Górny xorg-2.eclass: + Use autotools-utils to reconfigure. + + 22 Mar 2012; Ryan Hill toolchain.eclass: + All ebuilds need a version number so drop special case for master. Update + comments. + + 21 Mar 2012; Diego E. Pettenò autotools.eclass: + Go back to use a variable rather than an array for _LATEST_AUTOMAKE, use + versionator eclass to go back to the full version instead, so that it's clear + what's going on and other developers don't misread the code. It's only + perfect for EAPI >= 0 but it's not broken on EAPI=0 anyway. + + 20 Mar 2012; Mike Gilbert python.eclass: + Define _python_implementation() earlier. + Update handling of dependencies. + Patch by Arfrever. Backported from Progress Overlay. + http://code.google.com/p/gentoo-progress/source/detail?r=1705 + + 19 Mar 2012; Michał Górny vcs-snapshot.eclass: + Fix old eclass name in die-message. + + 19 Mar 2012; Michał Górny +vcs-snapshot.eclass: + Introduce vcs-snapshot eclass to simplify working with github, bitbucket + and similar snapshots. + + 18 Mar 2012; Joerg Bornkessel vdr-plugin.eclass: + move eerror to ewarn, make the gettext warning less importend + + 17 Mar 2012; Michael Pagano kernel-2.eclass: + Fix eclass for rc kernels, and fix testing tarball download location. bug + #407869 + + 15 Mar 2012; Patrick Lauer distutils.eclass: + Fixing #407495 + + 14 Mar 2012; Mike Gilbert chromium.eclass: + Improve warning about debug (-g) flags in chromium_pkg_die. + + 14 Mar 2012; Mike Gilbert +chromium.eclass: + New eclass. + + 13 Mar 2012; Ralph Sennhauser java-utils-2.eclass: + Add JAVA_PKG_WANT_BUILD_VM to allow limiting build VM by VM handle. The main + aim is to allow respecting the system VM, if possible, for a subset of VMs + provided by the jdk virtuals. + Thanks to Vlastimil Babka for contributing the variable + name and review. + + 10 Mar 2012; Ryan Hill toolchain.eclass: + Rev. 1.527 fixed 4.7 without me noticing. Add comments about the format of + gcc/BASE-VER to prevent future confusion. + + 10 Mar 2012; Ryan Hill toolchain.eclass: + Revert PRERELEASE setting for live ebuilds. It seems 4.7 treats BASE-VER + differently than earlier versions. This fixes them, but breaks 4.7 again. + + 10 Mar 2012; Ryan Hill toolchain.eclass: + We need micro versions on live ebuilds in order for tc_version_is_at_least() + to work properly. + + 10 Mar 2012; Ryan Hill toolchain.eclass: + Tweak live ebuild bits. + + 10 Mar 2012; Ryan Hill toolchain.eclass: + Fix unpacking of live git ebuilds. + + 09 Mar 2012; Joerg Bornkessel vdr-plugin.eclass: + readded vdr-plugin_pkg_config dummy function + + 09 Mar 2012; Joerg Bornkessel vdr-plugin.eclass: + removed vdr-plugin_pkg_config function, unused, changed on 2008 to eselect + vdrplugin handling + + 09 Mar 2012; Sergei Trofimovich haskell-cabal.eclass: + Drop haddock from DEPENDS when USE=doc haddock. haddock-2.9.2+ can be used + right in the ebuild phase to build it's docs. + + 08 Mar 2012; Davide Pesavento qt4-build.eclass: + Die earlier on unsupported EAPI. + + 07 Mar 2012; Mike Gilbert python.eclass: + Fix default src_test implementation in EAPI 4. Patch by pesa. + + 06 Mar 2012; Andreas K. Huettel kde4-base.eclass, + kde4-meta.eclass: + Update from kde overlay + + 05 Mar 2012; Patrick Lauer apache-2.eclass: + Don't set eapi in eclass, #405911 + + 03 Mar 2012; Vlastimil Babka ant-tasks.eclass: + Add support for ANT_TASK_DISABLE_VM_DEPS variable - when enabled, the jdk/jre + deps are not added by eclass. + + 03 Mar 2012; Ryan Hill toolchain.eclass: + Prevent bundled libffi from being installed with gcj or gccgo (bug #354903 by + Xake). Drop old libffi-related code. + + 01 Mar 2012; Naohiro Aota eutils.eclass: + Consider patch alias, #404447 + + 01 Mar 2012; Davide Pesavento qt4-build.eclass: + Cleanup qt_mkspecs_dir(). + + 01 Mar 2012; Davide Pesavento qt4-build.eclass: + Fold standard_configure_options() into qt4-build_src_configure(). + + 01 Mar 2012; Ulrich Müller eutils.eclass: + Cdrom functions split out to dedicated cdrom.eclass. + + 28 Feb 2012; Davide Pesavento qt4-build.eclass: + Add qt-openvg blocker. + + 27 Feb 2012; Mike Gilbert python.eclass: + Add a safety check to catch issues like bug 405299 earlier. Adapted from + Progress overlay. + + 26 Feb 2012; Pacho Ramos tla.eclass: + Convert to eshopts_{push,pop}, bug 328871 by Spanky. + + 26 Feb 2012; Pacho Ramos eutils.eclass: + Use correct menu categories for app-* as discussed in gentoo-dev. + + 25 Feb 2012; Michal Hrusecky obs-service.eclass: + Improved obs-service eclass to fix paths to suse-build automatically + + 25 Feb 2012; Robin H. Johnson linux-mod.eclass: + Bug #404193: Depend on virtual/modutils instead of + sys-apps/module-init-tools. + + 23 Feb 2012; Alex Legler ruby-ng.eclass: + Improve no-matching-ruby-target-error message wording wrt bug 405373. + + 21 Feb 2012; Justin Lecher subversion.eclass: + Respect ESVN_USER, ESVN_PASSWORD and ESVN_OPTIONS on repo update, #401737 + + 20 Feb 2012; Bernard Cafarelli gnustep-base.eclass: + Use WORKDIR instead of T for temporary GNUstep.conf, fixes bug #389859 + + 20 Feb 2012; Ryan Hill toolchain.eclass: + Require dev-libs/ppl-0.11 now that it's stable (bug #396569). Drop cloog-ppl + include path workaround as we've required 0.15.0 for a while now. + + 20 Feb 2012; Robin H. Johnson autotools.eclass: + Remove my WANT_AUTOMAKE=none overloading in eautomake and instead introduce + AT_NOEACLOCAL, AT_NOEAUTOCONF, AT_NOEAUTOMAKE that work the same as + AT_NOELIBTOOLIZE. Should fix bug #404555. + + 15 Feb 2012; Joerg Bornkessel vdr-plugin.eclass: + move media-tv to virtual/linuxtv-dvb-headers, bug #403929 + + 13 Feb 2012; Zac Medico python.eclass: + Enable PyPy 1.8 support. Merged from the progress overlay: + http://code.google.com/p/gentoo-progress/source/detail?r=1785 + + 13 Feb 2012; Davide Pesavento qt4-r2.eclass: + Minor code style cleanup and quoting fixes. + + 13 Feb 2012; Davide Pesavento qt4-r2.eclass: + Finally remove ${S} fallback, it was deprecated 3 months ago. + + 13 Feb 2012; Davide Pesavento qt4-r2.eclass: + eqmake4: make CONFIG manipulation more robust by using gsub in the awk + script. Fixes bug #372719. + + 12 Feb 2012; Matti Bickel php-lib-r1.eclass: + always install stuff into /usr/share/php + + 12 Feb 2012; Matti Bickel fox.eclass: + fix eclass to also support building apps with fox:1.7 + + 12 Feb 2012; Magnus Granberg toolchain.eclass: + PaX mark cc1 and cc1plus for bug 301299 + + 12 Feb 2012; Robin H. Johnson autotools.eclass: + Provide a way to run eautoreconf without automake by using + WANT_AUTOMAKE=none. + + 11 Feb 2012; Christian Ruppert vdr-plugin.eclass: + Remove vdr_add_local_patch() and use epatch_user() from eutils instead. Issue + a error in case the old variable to pass user patches is still used. Also the + example has been removed as it was actually a common ebuild example, nothing + specific. Update descriptions. + + 11 Feb 2012; Ulrich Müller elisp-common.eclass: + Delete declaration of unused variable. + + 10 Feb 2012; Thomas Sachau (Tommy[D]) python.eclass: + Revert previous commit to python eclass, breaks any ebuild using + PYTHON_DEPEND=2.4 without any need or prior warning + + 10 Feb 2012; Patrick Lauer python.eclass: + Removing python 2.4 support from python eclass + + 09 Feb 2012; Davide Pesavento qt4-build.eclass: + Make src_test() a noop for qt-multimedia (bug #332299). + + 09 Feb 2012; Markos Chandras qt4-build.eclass: + Drop buggy code as discussed on qt@gentoo.org on 2012/02/02 + + 09 Feb 2012; Bernard Cafarelli gnustep-base.eclass: + Use check on configuration file instead of has_version for EAPI0 ebuilds + + 08 Feb 2012; Bernard Cafarelli gnustep-base.eclass: + Force clang when using experimental libobjc2 support + + 07 Feb 2012; Lars Wendler mozlinguas.eclass: + Whitespace fix + + 07 Feb 2012; Lars Wendler mozlinguas.eclass: + Fixed eclass for usage with seamonkey (which has langpacks in beta releases). + + 07 Feb 2012; Sergei Trofimovich haskell-cabal.eclass: + Added support for CABAL_EXTRA_BUILD_FLAGS and HCFLAGS magic variables. + + 06 Feb 2012; Nirbheek Chauhan mozconfig-3.eclass: + Depend on an icon theme, fixes bug 341697 + + 05 Feb 2012; Mike Gilbert mercurial.eclass: + Don't die if hg pull exits with status 1. + + 04 Feb 2012; Nirbheek Chauhan +mozlinguas.eclass: + Add mozlinguas.eclass to handle language packs for mozilla products + + 04 Feb 2012; Michał Górny autotools-utils.eclass: + Fix typo in recursive autoreconf. + + 02 Feb 2012; Michał Górny autotools-utils.eclass: + Use checksums to determine whether files need autoreconf. Fixes bug #399641. + + 02 Feb 2012; Mike Gilbert subversion.eclass: + Introduce ESVN_UMASK variable to override default umask. Patch by Arfrever. + + 31 Jan 2012; Markos Chandras qt4-build.eclass: + Initial EAPI4 support in qt4-build eclass + + 31 Jan 2012; Ulrich Müller eutils.eclass: + Use ${P}-${PR} instead of ${PF} in epatch_user. + + 30 Jan 2012; Mike Gilbert python.eclass: + Avoid inheriting eutils from python.eclass. + + 30 Jan 2012; Mike Gilbert python.eclass: + Detect needless usage of python_convert_shebangs(). Patch by Arfrever. + + 30 Jan 2012; Justin Lecher autotools-utils.eclass: + Call glib-gettextize with --force in autotools-utils.eclass + + 21 Jan 2012; Andreas K. Huettel cmake-utils.eclass: + Dont force CMAKE_BUILD_WITH_INSTALL_RPATH in APPLE prefix on request from + prefix guys, bug 398437 + + 21 Jan 2012; Michał Górny autotools-utils.eclass: + Force autoreconf on user patches only. + + 21 Jan 2012; Mike Gilbert python.eclass: + Copy python_clean_py-compile_files from Progress overlay. Thanks Arfrever. + Bug 396586. + + 20 Jan 2012; Sergei Trofimovich haskell-cabal.eclass: + Added stdout echoing of most executed phase commands. Added stub for + CABAL_USE_HSCOLOUR feature to ease ebuild syncing from haskell overlay. + + 19 Jan 2012; Michał Górny autotools-utils.eclass: + Add AM_CONFIG_HEADER check (for pixman autoreconf). + + 19 Jan 2012; Michał Górny git-2.eclass: + Strip .git from storedir; wrt bug #386845. + + 19 Jan 2012; Matti Bickel php-pear-lib-r1.eclass: + Removed superflous call to has_php from php-pear-lib-r1 + + 19 Jan 2012; Matti Bickel php-ext-source-r2.eclass: + Added addpredict to src_configure phase because of bug #385403 + + 18 Jan 2012; Matti Bickel php-pear-r1.eclass: + Remove dependency on long gone dev-php/PEAR-PEAR-1.8.1 + + 17 Jan 2012; Magnus Granberg toolchain.eclass: + Add HARD_CFLAGS to ALL_CXXFLAGS for hardened gcc 4.7 + + 17 Jan 2012; Johannes Huber kde4-base.eclass: + Drop kdeenablefinal build feature. Fix source uri calc for KDE SC 4.7.97 aka + 4.8 RC2 caused by screwed up version number scheme by upstream. + + 16 Jan 2012; Samuli Suominen xfconf.eclass: + Raise xfce4-dev-tools DEPEND to 4.9.1 for LT_INIT and LT_PREREQ support. + + 15 Jan 2012; Michał Górny autotools-utils.eclass: + Quiet grep output. + + 15 Jan 2012; Christian Ruppert vdr-plugin.eclass: + Add maintainer, description tags etc. + + 15 Jan 2012; Christian Ruppert vdr-plugin.eclass: + Add EAPI 4 support + + 15 Jan 2012; Michał Górny autotools-utils.eclass: + Improve the --docdir configure grep. + + 15 Jan 2012; Ulrich Müller cdrom.eclass: + New variable CDROM_DISABLE_PROPERTIES. Set PROPERTIES only if this is unset. + + 15 Jan 2012; Michał Górny autotools-utils.eclass: + Pass --docdir to configure only when supported. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Use path_exists() to ensure any file exists in docdir. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Replace the docdir-directory error with a warning. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Pass --force to eautopoint and few other pre-autoreconf funcs. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Autoreconfigure packages when user patches need it. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Disallow eautomake from calling eautoreconf unnecessarily. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Pass --docdir to configure, and install docs from it; wrt bug #350423. + + 14 Jan 2012; Michał Górny autotools-utils.eclass: + Support installing default docs, similarly to EAPI4; wrt bug #397659. + + 13 Jan 2012; Matti Bickel php-ext-source-r2.eclass: + Uncomment DEPEND for php-ext-source-r2.eclass, but w/o the SELFDEPEND that + breaks pecl ebuilds (bug #398553) + + 13 Jan 2012; Ulrich Müller +cdrom.eclass: + New cdrom.eclass, split out CD-ROM functions from eutils.eclass. + + 13 Jan 2012; Ralph Sennhauser java-virtuals-2.eclass: + Set S="${WORKDIR}" for java-virtuals as EAPI-4 doesn't permit the + S-to-WORKDIR fallback anymore. + + 09 Jan 2012; Justin Lecher autotools-utils.eclass: + Correct typo in autotools-utils.eclass: @DEFAULT-UNSET -> @DEFAULT_UNSET + + 07 Jan 2012; Michał Górny systemd.eclass: + Install systemd units to /usr/lib. + + 06 Jan 2012; Jorge Manuel B. S. Vicetto + mysql.eclass, mysql-autotools.eclass, mysql-cmake.eclass, mysql-v2.eclass, + mysql_fx.eclass: + [mysql eclasses] Added prefix support for eclasses - fixes bug 348788 and bug + 388125. + Bumped required EAPI to 3 due to the prefix support. + Fix -userpriv detection - fixes bug 312809. + + 05 Jan 2012; Michał Górny systemd.eclass: + Fix use of dosym with directory destination. + + 05 Jan 2012; Michał Górny autotools-utils.eclass: + Add AUTOTOOLS_AUTORECONF for bug #392073. + + 03 Jan 2012; Nirbheek Chauhan + gnome-python-common.eclass: + New automake uses $(SHELL) py-compile, which fails if py-compile is a symlink + to /bin/true. Make it an executable empty file instead. + + 03 Jan 2012; Justin Lecher eutils.eclass: + Convert make_desktop_entry() comment block to be eclass-manpages conform, + #397451 + + 01 Jan 2012; Davide Pesavento qt4-build.eclass: + Pass -importdir to configure only for qt >= 4.7 (bug #396685). + + 01 Jan 2012; Mike Gilbert distutils.eclass, + python.eclass: + Avoid including python.eclass more than once. + + 31 Dec 2011; Davide Pesavento qt4-build.eclass: + Respect {C,CXX,LD}FLAGS during config.tests (bug #336618). + + 30 Dec 2011; Davide Pesavento qt4-build.eclass: + Make the output of qt4-build_src_unpack() more readable. + + 28 Dec 2011; Stratos Psomadakis kernel-2.eclass: + Fix URIs for longterm kernels + + 28 Dec 2011; Ryan Hill flag-o-matic.eclass: + Clean up setup-allowed-flags(). + + 28 Dec 2011; Ryan Hill flag-o-matic.eclass: + Remove UNSTABLE_FLAGS. Keyword status should not determine what flags are + used. Move -Os to allowed flags as it's been stable since 4.0ish and drop -O0 + because it breaks things a lot. + + 27 Dec 2011; Jesus Rivero subversion.eclass: + Handle UUID mismatch by deleting working copy and checking out it again. + Patch by Arfrever. + + 27 Dec 2011; Christian Faulhammer rox-0install.eclass, + apache-2.eclass, common-lisp-common-2.eclass, gnustep-2.eclass, + java-ant-2.eclass, java-pkg-2.eclass, java-pkg-opt-2.eclass, + java-utils-2.eclass, java-virtuals-2.eclass, common-lisp-common-3.eclass, + tetex-3.eclass, ant-tasks.eclass, apache-module.eclass, bsdmk.eclass, + common-lisp.eclass, common-lisp-common.eclass, darcs.eclass, db.eclass, + db-use.eclass, embassy.eclass, emul-linux-x86.eclass, enlightenment.eclass, + font-ebdftopcf.eclass, fox.eclass, freebsd.eclass, games.eclass, + games-mods.eclass, gnat.eclass, gnatbuild.eclass, gnome-python-common.eclass, + gst-plugins-bad.eclass, gst-plugins-base.eclass, gst-plugins-good.eclass, + gst-plugins10.eclass, horde.eclass, java-mvn-src.eclass, java-osgi.eclass, + java-pkg-simple.eclass, mercurial.eclass, mozextension.eclass, + myspell.eclass, mysql_fx.eclass, nsplugins.eclass, pam.eclass, + perl-app.eclass, php-common-r1.eclass, php-ezc.eclass, portability.eclass, + rox.eclass, rpm.eclass, savedconfig.eclass, scsh.eclass, sgml-catalog.eclass, + stardict.eclass, sword-module.eclass, tetex.eclass, tla.eclass, + vdr-plugin.eclass, versionator.eclass, vim-doc.eclass, vim-plugin.eclass, + vim-spell.eclass, vmware.eclass, vmware-mod.eclass, webapp.eclass, + wxwidgets.eclass, x-modular.eclass, xemacs-elisp.eclass, + xemacs-elisp-common.eclass, xemacs-packages.eclass, xfconf.eclass, + zproduct.eclass: + Update copyright years in headers + + 27 Dec 2011; Robin H. Johnson mysql-cmake.eclass, + mysql-v2.eclass: + Bug #396089: Avoid automagic systemtap/dtrace in MySQL 5.5. + + 27 Dec 2011; Mike Gilbert twisted.eclass: + Only call doman on manpages in twisted_src_install. Credit to Arfrever. + + 27 Dec 2011; Mike Gilbert twisted.eclass: + Use twistedmatrix.com/Releases in SRC_URI; tmrc.mit.edu does not have + tarballs past 10.2. + + 26 Dec 2011; Davide Pesavento qt4-build.eclass: + Misc cleanups, add a few missing "|| die", fix description of some functions. + + 25 Dec 2011; Davide Pesavento qt4-build.eclass: + Delete obsolete sed on fvisibility.test, it's no longer needed in all + versions of Qt currently available in the tree. + + 22 Dec 2011; Michał Górny autotools-utils.eclass: + Add a note on AT_NOELIBTOOLIZE=yes in src_prepare(). Fixes #395649. + + 21 Dec 2011; Davide Pesavento qt4-build.eclass: + Disable rpath for Qt 4.8 and later (bug #380415). Thanks to dilfridge for + testing. + + 21 Dec 2011; Davide Pesavento qt4-build.eclass: + Remove obsolete workaround. + + 18 Dec 2011; Robin H. Johnson python.eclass: + Bug #390691: Be careful about cp call to coreutils with --no-preserve option + that might not be available until later in an upgrade. + + 18 Dec 2011; Diego E. Pettenò ruby-ng.eclass: + Reorder setting of REQUIRED_USE to stay near IUSE setting; also use + ruby_get_use_targets to set IUSE. + + 18 Dec 2011; Andreas K. Huettel kde4-base.eclass, + kde4-functions.eclass, kde4-meta.eclass: + Re-sync kde4 eclasses with kde overlay: remove libkworkspace target hacks + (requires libkworkspace rebuild), force qt-4.7.4 for kde-4.8, properly treat + kde-4.[789] version numbers, warn if the handbook useflag is added manually + + 17 Dec 2011; Maciej Mrozowski eutils.eclass: + Revert old eshopts_{pop,push} implementations until new ones pass unit tests. + Bug 395025. + + 16 Dec 2011; Jonathan Callen qt4-build.eclass: + Set importdir to be /usr/$(get_libdir)/qt4/imports instead of the + non-FHS-compliant /usr/imports + + 16 Dec 2011; Maxim Koltsov leechcraft.eclass: + Add app-arch/xz-utils dependency to leechcraft.eclass + + 15 Dec 2011; Maxim Koltsov leechcraft.eclass: + Update leechcraft eclass to new filename suffix + + 14 Dec 2011; Alexandre Rostovtsev gnome2-utils.eclass, + gnome2.eclass: + Do not use gnome2_schemas_update --uninstall; --uninstall has no effect since + glib-2.25.11, and has been removed in 2.31.x (bug #394501, thanks to + Marc-Antoine Perennou for reporting). + + 14 Dec 2011; Sergei Trofimovich multilib.eclass: + Added -m32 to CFLAGS_sparc32. Allows to build sparc64-* multilib toolchain + without additional tuning. + + 14 Dec 2011; Michał Górny autotools-utils.eclass: + Drop base.eclass inherit and thus src_unpack() export. + + 13 Dec 2011; Ralph Sennhauser java-utils-2.eclass: + No longer require JDK for installing java binpkg. #206024 + + 10 Dec 2011; Davide Pesavento qt4-build.eclass: + Handle sparc64-* in arch configuration. + + 08 Dec 2011; Davide Pesavento qt4-build.eclass: + Update HOMEPAGE (bug #388133). + + 07 Dec 2011; Ryan Hill toolchain.eclass: + Disappear disappeared devs. + + 05 Dec 2011; Mike Gilbert java-vm-2.eclass: + Add semicolon to fix ferringb's last change. + + 04 Dec 2011; Brian Harring java-vm-2.eclass: + Fix IFS=: bleeding out from java-vm_sandbox-predict invocations. + + 03 Dec 2011; Ulrich Mueller elisp.eclass, + elisp-common.eclass: + Sync eclasses from Emacs overlay (revision 1759). + elisp.eclass: Allow for user patches. New variable ELISP_REMOVE. + elisp-common.eclass: Replace echo by ebegin/eend for proper logging. + + 02 Dec 2011; Brian Harring eutils.eclass: + Fix eqawarn to match portage's return code; this fixes sporadic failures + in alternate managers for packages like freetype that bleed the + return code through. + + 27 Nov 2011; Michał Górny autotools-utils.eclass: + Revert making pushd/popd fatal due to humongous breakage. Add a warning + message instead. + + 27 Nov 2011; Michał Górny autotools-utils.eclass: + Denote that autotools-utils must not be mixed with econf/emake. + + 26 Nov 2011; Michał Górny autotools-utils.eclass: + Remove implicit IUSE=debug deprecation warning. + + 26 Nov 2011; Michał Górny autotools-utils.eclass: + Add failure handling for pushd/popd calls. + + 24 Nov 2011; Ralph Sennhauser java-vm-2.eclass: + set_java_env(): Substitute @SLOT@ in vm env files + java-vm_check-nsplugin(): Fix handling of IUSE defaults + + 24 Nov 2011; Maciej Mrozowski virtuoso.eclass: + Dependency on nsplugins.eclass: + Assign to mozilla herd, add share_plugins_dir function for mozilla + applications. + + 21 Nov 2011; Jory A. Pratt mozconfig-3.eclass: + Fix handling of crashreporter use. + + 21 Nov 2011; Ralph Sennhauser java-vm-2.eclass: + Move handling of PaX marking JVM executables to eclass. + + 21 Nov 2011; Ryan Hill toolchain.eclass: + Fix live ebuilds. + + 19 Nov 2011; Davide Pesavento qt4-build.eclass: + Add dependency on dev-util/pkgconfig (#385835 and #387783). + + 19 Nov 2011; Davide Pesavento qt4-build.eclass: + Remove support for Qt 4.5, add blockers for qt-declarative, small cleanup. + + 19 Nov 2011; Davide Pesavento qt4-build.eclass: + Make qt_assistant_cleanup() a no-op for Qt 4.7.4 and later (bug #386709). + + 18 Nov 2011; Michał Górny scons-utils.eclass: + Add DESTDIR-like variable to the example. + + 18 Nov 2011; Bernard Cafarelli gnustep-base.eclass: + Set VARTEXFONTS for doc generation, fix sandbox access violation on + /var/cache/fonts + + 17 Nov 2011; Tiziano Müller mysql-v2.eclass: + Fixed misplaced quotes in mysql-v2 eclass causing 'emerge --config mysql' to + fail (bug #388673). + + 15 Nov 2011; Vlastimil Babka java-vm-2.eclass: + Drop the repetitive elogs about revdep rebuild control files for binary + JVM's. + + 14 Nov 2011; Nirbheek Chauhan mozconfig-3.eclass: + Remove obsolete xorg-x11 dep from mozconfig-3 + + 14 Nov 2011; Alexandre Rostovtsev gnome2-utils.eclass, + gnome2.eclass: + Add gnome2_environment_reset() to reset env variables that often cause build + or test failures (most recently bug #380639). The XDG_* resetting code had + been tested in the gnome overlay for months with good results. + + 12 Nov 2011; Davide Pesavento qt4-r2.eclass: + Restore ${S} fallback, but with a deprecation notice saying that it will be + removed in 30 days. + + 12 Nov 2011; Davide Pesavento qt4-build.eclass: + Set qt@g.o as maintainer, minor cleanups (quoting, whitespace, etc.) + + 12 Nov 2011; Davide Pesavento qt4-r2.eclass: + Remove ${S} fallback from src_unpack, set qt@g.o as maintainer, remove + unnecessary quoting. + + 12 Nov 2011; Ralph Sennhauser java-vm-2.eclass: + Add java-vm_sandbox-predict for installing a sandbox control file along with + any JVM that needs it. Bug 388937#c1 + + 11 Nov 2011; Ryan Hill flag-o-matic.eclass: + Test that appended flags are valid. This allows people to add flags that were + unsupported in earlier releases without needing to do version checking. + + 10 Nov 2011; Pacho Ramos gtk-sharp-module.eclass: + gnome-desktop-sharp stuff need gnome-desktop:2, bug #389181 by Kacper + Kowalik. + + 10 Nov 2011; Naohiro Aota + ELT-patches/fbsd-conf/00broken-libglade: + Add patch applied detection comment + + 08 Nov 2011; Bernard Cafarelli gnustep-base.eclass: + Fix sandbox access violation on /root/GNUstep, bug #383665 + + 08 Nov 2011; Michael Pagano kernel-2.eclass: + Modify to support new location of 2.6 kernels on kernel.org and mirrors + + 04 Nov 2011; Naohiro Aota mysql.eclass, user.eclass: + Change possible mis-used ${action} to ${db} + + 03 Nov 2011; Andreas K. Huettel +ChangeLog: + Created ChangeLog + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aix-noundef/1.4d b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aix-noundef/1.4d new file mode 100644 index 0000000000..b2b8d09544 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aix-noundef/1.4d @@ -0,0 +1,12 @@ +--- ltmain.sh.orig 2009-12-06 22:35:17 +0100 ++++ ltmain.sh 2009-12-06 22:35:44 +0100 +@@ -1111,6 +1111,9 @@ + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; ++ *-aix*) ++ allow_undefined=no ++ ;; + *) + allow_undefined=yes + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-cmds-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-cmds-c new file mode 100644 index 0000000000..4a58f2b10d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-cmds-c @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -7234,7 +7235,7 @@ + if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" +- archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G'$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-cmds-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-cmds-cxx new file mode 100644 index 0000000000..fac2e2478d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-cmds-cxx @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -10041,7 +10043,7 @@ + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + +- archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds_CXX='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-expsym-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-expsym-c new file mode 100644 index 0000000000..2b54887d8f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-expsym-c @@ -0,0 +1,14 @@ +--- configure ++++ configure +@@ -7113,9 +7113,9 @@ + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then +- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else +- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds='`echo $NM | sed -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-expsym-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-expsym-cxx new file mode 100644 index 0000000000..9b6bdc2f95 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-expsym-cxx @@ -0,0 +1,14 @@ +--- configure ++++ configure +@@ -11217,9 +11217,9 @@ + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then +- export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else +- export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds_CXX='`echo $NM | sed -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-noundef-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-noundef-c new file mode 100644 index 0000000000..c893f9c6ab --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-noundef-c @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -7189,7 +7190,7 @@ + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. +- allow_undefined_flag='-berok' ++ no_undefined_flag=' ${wl}-bernotok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-noundef-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-noundef-cxx new file mode 100644 index 0000000000..dc01fcab6d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-noundef-cxx @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -9995,7 +9997,7 @@ + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. +- allow_undefined_flag_CXX='-berok' ++ no_undefined_flag_CXX=' ${wl}-bernotok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-soname b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-soname new file mode 100644 index 0000000000..113fe2d84e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-soname @@ -0,0 +1,12 @@ +--- configure ++++ configure +@@ -14426,7 +14426,8 @@ + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' ++ [ "${OBJECT_MODE:-32}" = '64' ] && soname_spec='$libname$release$shared_ext$major(shr_64.o)' || soname_spec='$libname$release$shared_ext$major(shr.o)' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-usertl-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-usertl-c new file mode 100644 index 0000000000..b5ff1866c8 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-usertl-c @@ -0,0 +1,10 @@ +--- configure ++++ configure +@@ -7130,6 +7130,7 @@ + fi + done + esac ++ aix_use_runtimelinking=yes + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-usertl-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-usertl-cxx new file mode 100644 index 0000000000..36c84e9809 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.0-usertl-cxx @@ -0,0 +1,10 @@ +--- configure ++++ configure +@@ -9936,6 +9937,7 @@ + esac + done + esac ++ aix_use_runtimelinking=yes + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.22-cmds-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.22-cmds-c new file mode 100644 index 0000000000..e3257720ed --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.22-cmds-c @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -8679,7 +8679,7 @@ + if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" +- archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.22-cmds-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.22-cmds-cxx new file mode 100644 index 0000000000..e8882b12d4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/1.5.22-cmds-cxx @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -11731,7 +11731,7 @@ + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + +- archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds_CXX='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-cmds-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-cmds-c new file mode 100644 index 0000000000..c9dc049c33 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-cmds-c @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -8619,7 +8619,7 @@ + if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" +- archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-cmds-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-cmds-cxx new file mode 100644 index 0000000000..04fe30e127 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-cmds-cxx @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -13946,7 +13947,7 @@ + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + +- archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds_CXX='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-expsym-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-expsym-c new file mode 100644 index 0000000000..196a5a36e6 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-expsym-c @@ -0,0 +1,14 @@ +--- configure ++++ configure +@@ -8475,9 +8475,9 @@ + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then +- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else +- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds='`echo $NM | sed -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-expsym-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-expsym-cxx new file mode 100644 index 0000000000..ee4d163989 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-expsym-cxx @@ -0,0 +1,14 @@ +--- configure ++++ configure +@@ -15506,9 +15506,9 @@ + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then +- export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else +- export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds_CXX='`echo $NM | sed -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-noundef-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-noundef-c new file mode 100644 index 0000000000..d9520cbbd7 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-noundef-c @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -8558,7 +8558,7 @@ + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. +- allow_undefined_flag='-berok' ++ no_undefined_flag=' ${wl}-bernotok' + # Determine the default libpath from the value encoded in an + # empty executable. + cat >conftest.$ac_ext <<_ACEOF diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-noundef-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-noundef-cxx new file mode 100644 index 0000000000..37d02dba8c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-noundef-cxx @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -13884,7 +13885,7 @@ + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. +- allow_undefined_flag_CXX='-berok' ++ no_undefined_flag_CXX=' ${wl}-bernotok' + # Determine the default libpath from the value encoded in an empty + # executable. + cat >conftest.$ac_ext <<_ACEOF diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-usertl-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-usertl-cxx new file mode 100644 index 0000000000..c59a093c94 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.0-usertl-cxx @@ -0,0 +1,10 @@ +--- configure ++++ configure +@@ -13819,6 +13819,7 @@ + done + ;; + esac ++ aix_use_runtimelinking=yes + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.8-cmds-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.8-cmds-c new file mode 100644 index 0000000000..c7eff019f1 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.8-cmds-c @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -9214,7 +9214,7 @@ + if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" +- archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.8-cmds-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.8-cmds-cxx new file mode 100644 index 0000000000..e24dcfd2bd --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.2.8-cmds-cxx @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -13307,7 +13307,7 @@ + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + +- archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ archive_expsym_cmds_CXX='eval `echo "$soname" | sed -e "s,^,filenam=,; s,(, membnam=,; s,\.o),,"`~rm -f -r $output_objdir/$filenam.d~mkdir -p $output_objdir/$filenam.d~$CC -o $output_objdir/$filenam.d/$membnam.o $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags -shared $wl-G$allow_undefined_flag $wl'$exp_sym_flag':$export_symbols~$STRIP -e $output_objdir/$filenam.d/$membnam.o~( echo "#! $soname"; if test $membnam = shr_64; then echo "# 64"; else echo "# 32"; fi; cat $export_symbols ) > $output_objdir/$filenam.d/$membnam.imp~$AR $AR_FLAGS $output_objdir/$filenam $output_objdir/$filenam.d/$membnam.o $output_objdir/$filenam.d/$membnam.imp~rm -f -r $output_objdir/$filenam.d' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.4.0-expsym-c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.4.0-expsym-c new file mode 100644 index 0000000000..6860317739 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.4.0-expsym-c @@ -0,0 +1,14 @@ +--- configure ++++ configure +@@ -9660,9 +9660,9 @@ + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then +- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else +- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds='`echo $NM | sed -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.4.0-expsym-cxx b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.4.0-expsym-cxx new file mode 100644 index 0000000000..ca9fd97be5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/aixrtl/2.4.0-expsym-cxx @@ -0,0 +1,14 @@ +--- configure ++++ configure +@@ -15711,9 +15711,9 @@ + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then +- export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else +- export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ export_symbols_cmds_CXX='`echo $NM | sed -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/1.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/1.5 new file mode 100644 index 0000000000..01759c93f9 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/1.5 @@ -0,0 +1,30 @@ +--- ltmain.sh.orig 2006-03-29 15:45:36.000000000 +0200 ++++ ltmain.sh 2006-03-29 16:39:30.000000000 +0200 +@@ -1754,6 +1754,11 @@ + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ deplibs="$deplibs $arg" ++ continue ++ ;; ++ + -Wl,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` + arg= +@@ -2094,6 +2099,15 @@ + lib= + found=no + case $deplib in ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/1.5.26 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/1.5.26 new file mode 100644 index 0000000000..6836c55e14 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/1.5.26 @@ -0,0 +1,38 @@ +--- ltmain.sh.orig 2009-04-18 16:51:52.000000000 +0200 ++++ ltmain.sh 2009-04-18 16:55:05.000000000 +0200 +@@ -1812,10 +1812,15 @@ + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ deplibs="$deplibs $arg" ++ continue ++ ;; ++ + -Wl,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do +@@ -2152,10 +2157,19 @@ + fi + for deplib in $libs; do + lib= + found=no + case $deplib in ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/2.2.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/2.2.6 new file mode 100644 index 0000000000..7e71de4618 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/2.2.6 @@ -0,0 +1,38 @@ +--- ltmain.sh.orig 2009-04-18 14:37:16.000000000 +0200 ++++ ltmain.sh 2009-04-18 14:40:08.000000000 +0200 +@@ -4721,10 +4721,15 @@ + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ deplibs="$deplibs $arg" ++ continue ++ ;; ++ + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' +@@ -5075,10 +5080,19 @@ + + for deplib in $libs; do + lib= + found=no + case $deplib in ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/2.4.2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/2.4.2 new file mode 100644 index 0000000000..526877a6d3 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/as-needed/2.4.2 @@ -0,0 +1,38 @@ +--- ltmain.sh.orig 2012-08-19 10:18:57.929178597 +0200 ++++ ltmain.sh 2012-08-19 10:31:43.409388998 +0200 +@@ -5798,10 +5798,15 @@ + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ deplibs="$deplibs $arg" ++ continue ++ ;; ++ + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' +@@ -6158,10 +6163,19 @@ + + for deplib in $libs; do + lib= + found=no + case $deplib in ++ -Wl,--as-needed|-Wl,--no-as-needed) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/cross/link-ROOT b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/cross/link-ROOT new file mode 100644 index 0000000000..3c7d99be1f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/cross/link-ROOT @@ -0,0 +1,20 @@ +--- libltdl/config/ltmain.sh 2008-09-07 19:56:33.000000000 +0200 ++++ libltdl/config/ltmain.sh.new 2009-02-15 20:37:47.000000000 +0100 +@@ -5768,7 +5768,7 @@ + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then +- add_dir="-L$libdir" ++ add_dir="-L$ROOT/$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in +@@ -5785,7 +5785,7 @@ + fi + else + # We cannot seem to hardcode it, guess we'll fake it. +- add_dir="-L$libdir" ++ add_dir="-L$ROOT/$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/1.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/1.5 new file mode 100644 index 0000000000..25fd3a5f76 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/1.5 @@ -0,0 +1,11 @@ +--- configure.orig 2009-05-22 12:05:31 +0200 ++++ configure 2009-05-22 12:05:39 +0200 +@@ -15461,7 +15461,7 @@ + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/1.5b b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/1.5b new file mode 100644 index 0000000000..ed46f4ae3e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/1.5b @@ -0,0 +1,20 @@ +--- configure ++++ configure +@@ -10570,7 +10570,7 @@ + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' +@@ -14213,7 +14213,7 @@ + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/2.2.4 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/2.2.4 new file mode 100644 index 0000000000..f22aa2d40e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/2.2.4 @@ -0,0 +1,16 @@ +--- configure ++++ configure +@@ -12172,11 +12172,11 @@ + version_type=darwin + need_lib_prefix=no + need_version=no +- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/2.2.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/2.2.6 new file mode 100644 index 0000000000..ee22122c0e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-conf/2.2.6 @@ -0,0 +1,30 @@ +--- configure ++++ configure +@@ -11455,11 +11455,11 @@ + version_type=darwin + need_lib_prefix=no + need_version=no +- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' +@@ -15321,11 +15331,11 @@ + version_type=darwin + need_lib_prefix=no + need_version=no +- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltconf/1.2.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltconf/1.2.0 new file mode 100644 index 0000000000..da9f7e484d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltconf/1.2.0 @@ -0,0 +1,66 @@ +--- ltconfig-1.2 Wed May 19 09:17:36 1999 ++++ ltconfig Wed Oct 6 14:29:08 2004 +@@ -459,6 +459,11 @@ + os2*) + # We can build DLLs from non-PIC. + ;; ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ pic_flag='-fno-common' ++ ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, +@@ -785,6 +790,23 @@ + hardcode_shlibpath_var=no + ;; + ++ darwin* | rhapsody*) ++ case "$host_os" in ++ rhapsody* | darwin1.[012]) ++ allow_undefined_flag='-undefined suppress' ++ ;; ++ *) # Darwin 1.3 on ++ allow_undefined_flag='-flat_namespace -undefined suppress' ++ ;; ++ esac ++ archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' ++ # We need to add '_' to the symbols in $export_symbols first ++ #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ whole_archive_flag_spec='-all_load $convenience' ++ ;; ++ + hpux9*) + archive_cmds='$rm $objdir/$soname;$LD -b +s +b $install_libdir -o $objdir/$soname$libobjs;mv $objdir/$soname $lib' + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' +@@ -1134,6 +1156,27 @@ + version_type=sunos + library_names_spec='${libname}${release}.so.$versuffix' + shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ deplibs_check_method='file_magic Mach-O dynamically linked shared library' ++ file_magic_cmd='/usr/bin/file -L' ++ case "$host_os" in ++ rhapsody* | darwin1.[012]) ++ file_magic_test_file='/System/Library/Frameworks/System.framework/System' ++ ;; ++ *) # Darwin 1.3 on ++ file_magic_test_file='/usr/lib/libSystem.dylib' ++ ;; ++ esac ++ library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' ++ soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH + ;; + + hpux9* | hpux10*) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltconf/1.3.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltconf/1.3.0 new file mode 100644 index 0000000000..49ae67df41 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltconf/1.3.0 @@ -0,0 +1,67 @@ +--- ltconfig.darwin 2000-02-02 19:53:22.000000000 -0500 ++++ ltconfig 2004-09-23 20:25:11.000000000 -0400 +@@ -678,6 +678,11 @@ + cygwin* | mingw* | os2*) + # We can build DLLs from non-PIC. + ;; ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ pic_flag='-fno-common' ++ ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, +@@ -1361,6 +1372,23 @@ + hardcode_shlibpath_var=no + ;; + ++ darwin* | rhapsody*) ++ case "$host_os" in ++ rhapsody* | darwin1.[012]) ++ allow_undefined_flag='-undefined suppress' ++ ;; ++ *) # Darwin 1.3 on ++ allow_undefined_flag='-flat_namespace -undefined suppress' ++ ;; ++ esac ++ archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' ++ # We need to add '_' to the symbols in $export_symbols first ++ #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ whole_archive_flag_spec='-all_load $convenience' ++ ;; ++ + hpux9* | hpux10* | hpux11*) + case "$host_os" in + hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;; +@@ -1897,6 +1931,27 @@ + esac + ;; + ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ deplibs_check_method='file_magic Mach-O dynamically linked shared library' ++ file_magic_cmd='/usr/bin/file -L' ++ case "$host_os" in ++ rhapsody* | darwin1.[012]) ++ file_magic_test_file='/System/Library/Frameworks/System.framework/System' ++ ;; ++ *) # Darwin 1.3 on ++ file_magic_test_file='/usr/lib/libSystem.dylib' ++ ;; ++ esac ++ library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' ++ soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ ;; ++ + gnu*) + version_type=linux + need_lib_prefix=no + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltmain/1.2.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltmain/1.2.0 new file mode 100644 index 0000000000..aaab86a723 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltmain/1.2.0 @@ -0,0 +1,40 @@ +--- ltmain.sh-1.2 Wed May 19 09:17:36 1999 ++++ ltmain.sh Wed Oct 6 14:38:37 2004 +@@ -967,6 +967,16 @@ + versuffix="$current.$revision" + ;; + ++ darwin) ++ # Like Linux, but with the current version available in ++ # verstring for coding it into the library header ++ major=.`expr $current - $age` ++ versuffix="$major.$age.$revision" ++ # Darwin ld doesn't like 0 for these options... ++ minor_current=`expr $current + 1` ++ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ++ ;; ++ + *) + $echo "$modename: unknown library version type \`$version_type'" 1>&2 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 +@@ -1000,9 +1010,17 @@ + allow_undefined_flag="$no_undefined_flag" + fi + +- # Add libc to deplibs on all systems. +- dependency_libs="$deplibs" +- deplibs="$deplibs -lc" ++ case "$version_type" in ++ rhapsody|darwin) ++ # Rhapsody C library is in the System framework ++ deplibs="$deplibs -framework System" ++ ;; ++ *) ++ # Add libc to deplibs on all other systems. ++ dependency_libs="$deplibs" ++ deplibs="$deplibs -lc" ++ ;; ++ esac + + if test "$build_libtool_libs" = yes; then + # Get the real and link names of the library. diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltmain/1.3.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltmain/1.3.0 new file mode 100644 index 0000000000..7148efb993 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/darwin-ltmain/1.3.0 @@ -0,0 +1,64 @@ +--- ltmain.sh.darwin 2000-02-02 19:53:22.000000000 -0500 ++++ ltmain.sh 2004-09-23 20:25:11.000000000 -0400 +@@ -24,6 +24,8 @@ + # configuration script generated by Autoconf, you may include it under + # the same distribution terms that you use for the rest of that program. + ++_S_=${LIBTOOL_CMD_SEP-\~} ++ + # Check that we have a working $echo. + if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. +@@ -1079,6 +1079,11 @@ + # These systems don't actually have c library (as such) + continue + ;; ++ *-*-rhapsody* | *-*-darwin1.[012]) ++ # Rhapsody C library is in the System framework ++ deplibs="$deplibs -framework System" ++ continue ++ ;; + esac + elif test "$arg" = "-lm"; then + case "$host" in +@@ -1086,6 +1091,11 @@ + # These systems don't actually have math library (as such) + continue + ;; ++ *-*-rhapsody* | *-*-darwin1.[012]) ++ # Rhapsody math library is in the System framework ++ deplibs="$deplibs -framework System" ++ continue ++ ;; + esac + fi + deplibs="$deplibs $arg" +@@ -1753,6 +1763,16 @@ + versuffix="-$major-$age-$revision" + ;; + ++ darwin) ++ # Like Linux, but with the current version available in ++ # verstring for coding it into the library header ++ major=.`expr $current - $age` ++ versuffix="$major.$age.$revision" ++ # Darwin ld doesn't like 0 for these options... ++ minor_current=`expr $current + 1` ++ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ++ ;; ++ + *) + $echo "$modename: unknown library version type \`$version_type'" 1>&2 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 +@@ -1795,6 +1824,10 @@ + *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*) + # these systems don't actually have a c library (as such)! + ;; ++ *-*-rhapsody* | *-*-darwin1.[012]) ++ # Rhapsody C library is in the System framework ++ deplibs="$deplibs -framework System" ++ ;; + *) + # Add libc to deplibs on all other systems. + deplibs="$deplibs -lc" + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/deplibs/1.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/deplibs/1.5 new file mode 100644 index 0000000000..36c507ade3 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/deplibs/1.5 @@ -0,0 +1,18 @@ +--- libtool.orig 2009-07-15 16:25:32 +0200 ++++ libtool 2009-07-15 16:51:56 +0200 +@@ -3319,7 +3319,14 @@ + ;; + esac + if grep "^installed=no" $deplib > /dev/null; then +- path="$absdir/$objdir" ++ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` ++ eval library_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` ++ for library_name in ${library_names}; do :; done ++ if test $mode = relink && test -f "${inst_prefix_dir}${libdir}/${library_name}"; then ++ path="${inst_prefix_dir}${libdir}" ++ else ++ path="$absdir/$objdir" ++ fi + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/deplibs/2.1b b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/deplibs/2.1b new file mode 100644 index 0000000000..3df590df7f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/deplibs/2.1b @@ -0,0 +1,18 @@ +--- ltmain-release-2-1b.in 2009-06-22 15:33:26.000000000 +0200 ++++ ltmain-release-2-1b.in.new 2009-07-15 16:59:45.000000000 +0200 +@@ -4946,7 +4946,14 @@ + fi + ;; + *) +- path="-L$absdir/$objdir" ++ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` ++ eval library_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` ++ for library_name in ${library_names}; do :; done ++ if test $mode = relink && test -f "${inst_prefix_dir}${libdir}/${library_name}"; then ++ path="-L${inst_prefix_dir}${libdir}" ++ else ++ path="-L$absdir/$objdir" ++ fi + ;; + esac + else diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/00broken-libglade b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/00broken-libglade new file mode 100644 index 0000000000..df3c4384c4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/00broken-libglade @@ -0,0 +1,33 @@ +Index: tiff-3.8.2/configure +=================================================================== +--- tiff-3.8.2.orig/configure ++++ tiff-3.8.2/configure +@@ -8199,7 +8199,14 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ # Handle Gentoo/FreeBSD as it was Linux ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -8210,6 +8216,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in \ No newline at end of file diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.4.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.4.0 new file mode 100644 index 0000000000..b986f8d8f5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.4.0 @@ -0,0 +1,32 @@ +Index: expat-1.95.8/configure +=================================================================== +--- expat-1.95.8.orig/configure ++++ expat-1.95.8/configure +@@ -5479,7 +5479,13 @@ freebsd1*) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' +@@ -5490,6 +5496,12 @@ freebsd*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}.so' ++ soname_spec='${libname}${release}.so$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.10 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.10 new file mode 100644 index 0000000000..90c63475bc --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.10 @@ -0,0 +1,120 @@ +Index: libiconv-1.10/configure +=================================================================== +--- libiconv-1.10.orig/configure ++++ libiconv-1.10/configure +@@ -8902,7 +8902,14 @@ kfreebsd*-gnu) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ # Gentoo/FreeBSD uses linux-style versioning to be user-friendly. ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -8913,6 +8920,12 @@ freebsd*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -12620,7 +12633,14 @@ kfreebsd*-gnu) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ # Gentoo/FreeBSD uses linux-style versioning to be user-friendly. ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -12631,6 +12651,12 @@ freebsd*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -15784,7 +15810,14 @@ kfreebsd*-gnu) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ # Gentoo/FreeBSD uses linux-style versioning to be user-friendly. ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -15795,6 +15828,12 @@ freebsd*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -18150,7 +18189,14 @@ kfreebsd*-gnu) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ # Gentoo/FreeBSD uses linux-style versioning to be user-friendly. ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -18161,6 +18207,12 @@ freebsd*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.18 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.18 new file mode 100644 index 0000000000..0636cebfcf --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.18 @@ -0,0 +1,116 @@ +Index: libtool-1.5.18/configure +=================================================================== +--- libtool-1.5.18.orig/configure ++++ libtool-1.5.18/configure +@@ -8433,7 +8433,13 @@ freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -8444,6 +8450,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -12205,7 +12217,13 @@ freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -12216,6 +12234,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -15461,7 +15485,13 @@ freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -15472,6 +15502,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -17929,7 +17965,13 @@ freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -17940,6 +17982,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.20 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.20 new file mode 100644 index 0000000000..e17920f8f8 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.20 @@ -0,0 +1,116 @@ +Index: libtool-1.5.20/configure +=================================================================== +--- libtool-1.5.20.orig/configure ++++ libtool-1.5.20/configure +@@ -8441,7 +8441,13 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -8452,6 +8458,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -12228,7 +12240,13 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -12239,6 +12257,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -15492,7 +15516,13 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -15503,6 +15533,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -17968,7 +18004,13 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -17979,6 +18021,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.20b b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.20b new file mode 100644 index 0000000000..0659b1c3cb --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.5.20b @@ -0,0 +1,61 @@ +Index: tiff-3.8.2/configure +=================================================================== +--- tiff-3.8.2.orig/configure ++++ tiff-3.8.2/configure +@@ -8199,7 +8199,14 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ # Handle Gentoo/FreeBSD as it was Linux ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -8210,6 +8216,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -19253,7 +19265,13 @@ freebsd* | dragonfly*) + *) objformat=elf ;; + esac + fi +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -19264,6 +19282,12 @@ freebsd* | dragonfly*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.9f b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.9f new file mode 100644 index 0000000000..f16ddb874c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-conf/1.9f @@ -0,0 +1,60 @@ +Index: libtorrent-0.10.0/configure +=================================================================== +--- libtorrent-0.10.0.orig/configure ++++ libtorrent-0.10.0/configure +@@ -8173,7 +8173,13 @@ kfreebsd*-gnu) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || $ECHO aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -8184,6 +8190,12 @@ freebsd*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in +@@ -12461,7 +12473,13 @@ kfreebsd*-gnu) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || $ECHO aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' +@@ -12472,6 +12490,12 @@ freebsd*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.2.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.2.0 new file mode 100644 index 0000000000..7d2f554f25 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.2.0 @@ -0,0 +1,26 @@ +Index: jpeg-6b/ltconfig +=================================================================== +--- jpeg-6b.orig/ltconfig ++++ jpeg-6b/ltconfig +@@ -1126,9 +1126,18 @@ amigaos*) + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + ;; + +-freebsd2* | freebsd3*) +- version_type=sunos +- library_names_spec='${libname}${release}.so.$versuffix $libname.so' ++freebsd[234567]*) ++ case $host_vendor in ++ gentoo) ++ version_type=linux ++ library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}.so' ++ soname_spec='${libname}${release}.so.$major' ++ ;; ++ *) ++ version_type=sunos ++ library_names_spec='${libname}${release}.so.$versuffix $libname.so' ++ ;; ++ esac + finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.3.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.3.0 new file mode 100644 index 0000000000..69aa94e678 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.3.0 @@ -0,0 +1,32 @@ +Index: libtool-1.3.5/ltconfig +=================================================================== +--- libtool-1.3.5.orig/ltconfig ++++ libtool-1.3.5/ltconfig +@@ -1888,7 +1888,13 @@ freebsd1*) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case "$version_type" in + freebsd-elf*) + deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' +@@ -1903,6 +1909,12 @@ freebsd*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}.so' ++ soname_spec='${libname}${release}.so$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case "$host_os" in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.4a b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.4a new file mode 100644 index 0000000000..00084070df --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.4a @@ -0,0 +1,32 @@ +Index: binutils-2.16.1/ltconfig +=================================================================== +--- binutils-2.16.1.orig/ltconfig ++++ binutils-2.16.1/ltconfig +@@ -1129,7 +1129,13 @@ freebsd1*) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' +@@ -1141,6 +1147,12 @@ freebsd*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}.so' ++ soname_spec='${libname}${release}.so$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.4a-GCC3.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.4a-GCC3.0 new file mode 100644 index 0000000000..e88bb4582a --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fbsd-ltconf/1.4a-GCC3.0 @@ -0,0 +1,32 @@ +Index: binutils-2.16.1/ltconfig +=================================================================== +--- binutils-2.16.1.orig/ltconfig ++++ binutils-2.16.1/ltconfig +@@ -1129,7 +1129,13 @@ freebsd1*) + + freebsd*) + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` +- version_type=freebsd-$objformat ++ case $host_vendor in ++ gentoo) ++ version_type=linux ;; ++ *) ++ version_type=freebsd-$objformat ;; ++ esac ++ + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' +@@ -1141,6 +1147,12 @@ freebsd*) + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + need_version=yes + ;; ++ linux) ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}.so' ++ soname_spec='${libname}${release}.so$major' ++ need_lib_prefix=no ++ need_version=no ++ ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.4.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.4.0 new file mode 100644 index 0000000000..1b12c9b1a3 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.4.0 @@ -0,0 +1,63 @@ +--- ltmain.sh 2003-09-24 18:22:17.528129376 +0200 ++++ ltmain.sh 2003-09-24 18:23:17.101072912 +0200 +@@ -1582,6 +1582,8 @@ + # Only check for convenience libraries + deplibs="$lib $deplibs" + tmp_libs= ++ # PKGW ++ dependency_libs= + for deplib in $dependency_libs; do + #echo "Adding $deplib to \$deplibs" + deplibs="$deplib $deplibs" +@@ -1699,6 +1701,8 @@ + fi + + tmp_libs= ++ #PKGW ++ dependency_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test +@@ -1860,6 +1864,16 @@ + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" ++ # Try looking first in the location we're being installed to. ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ # Add the install location to the beginning, minimising possiblilty ++ # of linking to older version of the lib already installed. ++ add_dir="-L$inst_prefix_dir$libdir $add_dir" ++ ;; ++ esac ++ fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" +@@ -1918,6 +1932,16 @@ + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" ++ # Try looking first in the location we're being installed to. ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ # Add the install location to the beginning, minimising possiblilty ++ # of linking to older version of the lib already installed. ++ add_dir="-L$inst_prefix_dir$libdir $add_dir" ++ ;; ++ esac ++ fi + add="-l$name" + fi + +@@ -2117,7 +2141,7 @@ + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; +- *) tmp_libs="$tmp_libs $deplib" ;; ++ *) tmp_libs="$deplib $tmp_libs" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.4.3 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.4.3 new file mode 100644 index 0000000000..959fe1dd76 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.4.3 @@ -0,0 +1,62 @@ +--- ltmain.sh 2003-09-24 19:48:39.367370072 +0200 ++++ ltmain.sh 2003-09-24 19:49:31.773403144 +0200 +@@ -1593,6 +1593,8 @@ + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + tmp_libs= ++ # PKGW ++ dependency_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if test "X$duplicate_deps" = "Xyes" ; then +@@ -1710,6 +1712,8 @@ + fi + + tmp_libs= ++ #PKGW ++ dependency_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test +@@ -1871,6 +1875,16 @@ + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" ++ # Try looking first in the location we're being installed to. ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ # Add the install location to the beginning, minimising possiblilty ++ # of linking to older version of the lib already installed. ++ add_dir="-L$inst_prefix_dir$libdir $add_dir" ++ ;; ++ esac ++ fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" +@@ -1938,11 +1952,13 @@ + else + # We cannot seem to hardcode it, guess we'll fake it. + # Try looking first in the location we're being installed to. +- add_dir= ++ add_dir="-L$dir" + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\\/]*) +- add_dir="-L$inst_prefix_dir$libdir" ++ # Add the install location to the beginning, minimising possiblilty ++ # of linking to older version of the lib already installed. ++ add_dir="-L$inst_prefix_dir$libdir $add_dir" + ;; + esac + fi +@@ -2146,7 +2162,7 @@ + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; +- *) tmp_libs="$tmp_libs $deplib" ;; ++ *) tmp_libs="$deplib $tmp_libs" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.5.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.5.0 new file mode 100644 index 0000000000..29b7db7b1d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/fix-relink/1.5.0 @@ -0,0 +1,51 @@ +--- ltmain.sh 2003-09-24 18:18:14.961005184 +0200 ++++ ltmain.sh 2003-09-24 18:20:11.204333512 +0200 +@@ -2022,6 +2022,8 @@ + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + tmp_libs= ++ # PKGW ++ dependency_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if test "X$duplicate_deps" = "Xyes" ; then +@@ -2143,6 +2145,8 @@ + fi + + tmp_libs= ++ #PKGW ++ dependency_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test +@@ -2359,7 +2363,9 @@ + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\\/]*) +- add_dir="$add_dir -L$inst_prefix_dir$libdir" ++ # Add the install location to the beginning, minimising possiblilty ++ # of linking to older version of the lib already installed. ++ add_dir="-L$inst_prefix_dir$libdir $add_dir" + ;; + esac + fi +@@ -2431,7 +2437,9 @@ + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\\/]*) +- add_dir="$add_dir -L$inst_prefix_dir$libdir" ++ # Add the install location to the beginning, minimising possiblilty ++ # of linking to older version of the lib already installed. ++ add_dir="-L$inst_prefix_dir$libdir $add_dir" + ;; + esac + fi +@@ -2691,7 +2699,7 @@ + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; +- *) tmp_libs="$tmp_libs $deplib" ;; ++ *) tmp_libs="$deplib $tmp_libs" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/gold-conf/2.2.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/gold-conf/2.2.6 new file mode 100644 index 0000000000..048cbad011 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/gold-conf/2.2.6 @@ -0,0 +1,10 @@ +--- configure.orig ++++ configure +@@ -9933,6 +9933,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in ++ *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode-relink/1.3d b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode-relink/1.3d new file mode 100644 index 0000000000..dc7819f447 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode-relink/1.3d @@ -0,0 +1,8 @@ +--- ltmain.sh ++++ ltmain.sh +@@ -2208,4 +2208,4 @@ + relink) +- if test "$hardcode_direct" = yes; then ++ if false && test "$hardcode_direct" = yes; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode/1.3d b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode/1.3d new file mode 100644 index 0000000000..7408b372ae --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode/1.3d @@ -0,0 +1,21 @@ +http://lists.gnu.org/archive/html/bug-libtool/2008-03/msg00124.html + +but this patch disables hardcoding independent of inst_prefix_dir at all, +for both hardcode_direct=yes and hardcode_minus_L=yes. + +If you update this patch, please also update libtool/files/libtool-1.3d-hardcode.patch + +--- ltmain.in.orig 2008-04-16 15:54:04.000000000 +0200 ++++ ltmain.in 2008-04-16 16:21:04.000000000 +0200 +@@ -1900,9 +1900,9 @@ + add_dir= + add= + # Finalize command for both is simple: just hardcode it. +- if test "$hardcode_direct" = yes; then ++ if false && test "$hardcode_direct" = yes; then + add="$libdir/$linklib" +- elif test "$hardcode_minus_L" = yes; then ++ elif false && test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode/2.1b b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode/2.1b new file mode 100644 index 0000000000..48571f3937 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hardcode/2.1b @@ -0,0 +1,36 @@ +Hardcoding library path does not work with DESTDIR installs. + +Affects any platform with 'hardcode_direct=yes' or 'hardcode_minus_L=yes'. +According to libtool.m4 (as of libtool-1.5.26), these are: + *-aix* + *-hpux9 + hppa-hpux* (not hppa64 or ia64) + *-netbsd + *-openbsd + *-freebsd + *-dragonfly + *-newsos6 + *-os2 + *-amigaos + *-sunos4 + *-sysv4 +It definitely is required for aix (to support DESTDIR), +although it should help for others too... + +--- ../../libtool.orig 2009-07-16 18:06:59 +0200 ++++ ../../libtool 2009-07-16 18:07:45 +0200 +@@ -6298,13 +6298,13 @@ + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" +- elif test "$hardcode_minus_L" = yes; then ++ elif false && test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hc-flag-ld/1.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hc-flag-ld/1.5 new file mode 100644 index 0000000000..bf88873c8f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hc-flag-ld/1.5 @@ -0,0 +1,18 @@ +http://lists.gnu.org/archive/html/libtool/2006-01/msg00012.html + +--- ltmain.sh.orig 2007-11-19 17:07:34.946648000 +0100 ++++ ltmain.sh 2007-11-19 17:07:57.785975000 +0100 +@@ -3915,8 +3915,11 @@ + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then +- eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" +- else ++ case $archive_cmds in ++ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; ++ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; ++ esac ++ else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hpux-conf/1.5.22-syslibpath b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hpux-conf/1.5.22-syslibpath new file mode 100644 index 0000000000..27fef4873e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/hpux-conf/1.5.22-syslibpath @@ -0,0 +1,24 @@ +must not search /usr/local in prefix + +--- configure.orig 2007-12-02 19:14:55 +0100 ++++ configure 2007-12-02 19:14:59 +0100 +@@ -8920,9 +8920,17 @@ + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then +- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ if test "$GCC" = yes; then ++ sys_lib_search_path_spec="${sys_lib_search_path_spec} /usr/lib/hpux32" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ fi + else +- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ if test "$GCC" = yes; then ++ sys_lib_search_path_spec="${sys_lib_search_path_spec} /usr/lib/hpux64" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5 new file mode 100644 index 0000000000..1b8b20bebd --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5 @@ -0,0 +1,14 @@ +--- install-sh 2007-07-04 14:36:49 +0100 ++++ install-sh 2007-09-14 11:00:41 +0100 +@@ -192,7 +192,10 @@ + + if [ x"$dir_arg" != x ] + then +- $doit $instcmd $dst && ++ { $doit $instcmd "$dst" || lasterr=$? ++ # It's ok for mkdir to fail if the directory already exists. ++ test -d "$dst" || { (exit ${lasterr-1}); exit; } ++ } && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi && diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5.4 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5.4 new file mode 100644 index 0000000000..0b1c22043b --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5.4 @@ -0,0 +1,14 @@ +--- install-sh 2006-03-25 20:04:46 +0000 ++++ install-sh 2007-09-14 10:53:29 +0100 +@@ -246,7 +246,10 @@ + fi + + if test -n "$dir_arg"; then +- $doit $mkdircmd "$dst" \ ++ { $doit $mkdircmd "$dst" || lasterr=$? ++ # It's ok for mkdir to fail if the directory already exists. ++ test -d "$dst" || { (exit ${lasterr-1}); exit; } ++ } \ + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5.6 new file mode 100644 index 0000000000..d107740d1b --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/install-sh/1.5.6 @@ -0,0 +1,14 @@ +--- install-sh 2006-03-14 12:57:54 -0300 ++++ install-sh 2008-06-19 22:23:04 -0300 +@@ -240,7 +240,10 @@ + fi + + if test -n "$dir_arg"; then +- $doit $instcmd "$dst" \ ++ { $doit $instcmd "$dst" || lasterr=$? ++ # It's ok for mkdir to fail if the directory already exists. ++ test -d "$dst" || { (exit ${lasterr-1}); exit; } ++ } \ + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/irix-ltmain/2.2.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/irix-ltmain/2.2.6 new file mode 100644 index 0000000000..70916377b5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/irix-ltmain/2.2.6 @@ -0,0 +1,30 @@ +I notice that $EPREFIX/usr/share/libtool/config/ltmain.sh also has this +stray increment - so I'd assume that this is a bug in libtool (which is +perhaps trying to fix a deprecated behaviour of old IRIX versions?). + +http://bugs.gentoo.org/show_bug.cgi?id=301520 + + +--- ltmain.sh.dist 2010-01-19 14:04:22.101603800 +0000 ++++ ltmain.sh 2010-01-19 14:08:29.361500240 +0000 +@@ -6225,7 +6225,6 @@ func_mode_link () + current=$func_arith_result + age="$number_minor" + revision="$number_minor" +- lt_irix_increment=no + ;; + esac + ;; +@@ -6297,11 +6296,7 @@ func_mode_link () + ;; + + irix | nonstopux) +- if test "X$lt_irix_increment" = "Xno"; then +- func_arith $current - $age +- else +- func_arith $current - $age + 1 +- fi ++ func_arith $current - $age + major=$func_arith_result + + case $version_type in diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/ltmain/1.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/ltmain/1.5 new file mode 100644 index 0000000000..39abee03ef --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/ltmain/1.5 @@ -0,0 +1,18 @@ +--- ltmain.sh 2007-09-15 07:35:19 +0100 ++++ ltmain.sh 2004-01-25 12:40:26 +0000 +@@ -1854,6 +1840,15 @@ + lib= + found=no + case $deplib in ++ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.0 new file mode 100644 index 0000000000..6d5f88b596 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.0 @@ -0,0 +1,33 @@ +--- ltmain.sh 2004-02-11 20:55:14.587581248 +0200 ++++ ltmain.sh 2004-02-11 21:15:33.467283368 +0200 +@@ -117,6 +117,30 @@ + execute_dlfiles= + lo2o="s/\\.lo\$/.${objext}/" + o2lo="s/\\.${objext}\$/.lo/" ++ ++if test -z "$max_cmd_len"; then ++ i=0 ++ testring="ABCD" ++ new_result= ++ ++ # If test is not a shell built-in, we'll probably end up computing a ++ # maximum length that is only half of the actual maximum length, but ++ # we can't tell. ++ while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ ++ = "XX$testring") >/dev/null 2>&1 && ++ new_result=`expr "X$testring" : ".*" 2>&1` && ++ max_cmd_len="$new_result" && ++ test $i != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ testring="$testring$testring" ++ done ++ testring= ++ # Add a significant safety factor because C++ compilers can tack on massive ++ # amounts of additional arguments before passing them to the linker. ++ # It appears as though 1/2 is a usable value. ++ max_cmd_len=`expr $max_cmd_len \/ 2` ++fi + + ##################################### + # Shell function definitions: diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.14 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.14 new file mode 100644 index 0000000000..8f299e8b95 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.14 @@ -0,0 +1,33 @@ +--- ltmain.sh ++++ ltmain.sh +@@ -136,6 +136,30 @@ + lo2o="s/\\.lo\$/.${objext}/" + o2lo="s/\\.${objext}\$/.lo/" + quote_scanset='[[~#^*{};<>?'"'"' ]' ++ ++if test -z "$max_cmd_len"; then ++ i=0 ++ testring="ABCD" ++ new_result= ++ ++ # If test is not a shell built-in, we'll probably end up computing a ++ # maximum length that is only half of the actual maximum length, but ++ # we can't tell. ++ while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ ++ = "XX$testring") >/dev/null 2>&1 && ++ new_result=`expr "X$testring" : ".*" 2>&1` && ++ max_cmd_len="$new_result" && ++ test "$i" != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ testring="$testring$testring" ++ done ++ testring= ++ # Add a significant safety factor because C++ compilers can tack on massive ++ # amounts of additional arguments before passing them to the linker. ++ # It appears as though 1/2 is a usable value. ++ max_cmd_len=`expr $max_cmd_len \/ 2` ++fi + + ##################################### + # Shell function definitions: diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.20 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.20 new file mode 100644 index 0000000000..76dc21364a --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/max_cmd_len/1.5.20 @@ -0,0 +1,33 @@ +--- ltmain.sh ++++ ltmain.sh +@@ -136,6 +136,30 @@ + execute_dlfiles= + lo2o="s/\\.lo\$/.${objext}/" + o2lo="s/\\.${objext}\$/.lo/" ++ ++if test -z "$max_cmd_len"; then ++ i=0 ++ testring="ABCD" ++ new_result= ++ ++ # If test is not a shell built-in, we'll probably end up computing a ++ # maximum length that is only half of the actual maximum length, but ++ # we can't tell. ++ while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ ++ = "XX$testring") >/dev/null 2>&1 && ++ new_result=`expr "X$testring" : ".*" 2>&1` && ++ max_cmd_len="$new_result" && ++ test "$i" != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ testring="$testring$testring" ++ done ++ testring= ++ # Add a significant safety factor because C++ compilers can tack on massive ++ # amounts of additional arguments before passing them to the linker. ++ # It appears as though 1/2 is a usable value. ++ max_cmd_len=`expr $max_cmd_len \/ 2` ++fi + + ##################################### + # Shell function definitions: diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/mint-conf/2.2.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/mint-conf/2.2.6 new file mode 100644 index 0000000000..34f2e5f28c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/mint-conf/2.2.6 @@ -0,0 +1,15 @@ +Calculating the max args here takes hours. + +--- configure ++++ configure +@@ -7351,6 +7351,10 @@ + lt_cv_sys_max_cmd_len=8192; + ;; + ++ mint*) ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/no-lc/1.3d b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/no-lc/1.3d new file mode 100644 index 0000000000..de20b0ceed --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/no-lc/1.3d @@ -0,0 +1,13 @@ +--- release-1-3d.orig 2009-12-03 17:05:15.608916799 +0100 ++++ release-1-3d 2009-12-14 22:01:06.634927600 +0100 +@@ -1035,6 +1035,10 @@ + esac + elif test "$arg" = "-lm"; then + case $host in ++ *-*-hpux*) ++ # Compiler inserts libc in the correct place for threads to work ++ test "X$arg" = "X-lc" && continue ++ ;; + *-*-cygwin* | *-*-pw32* | *-*-beos*) + # These systems don't actually have math library (as such) + continue diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/no-lc/1.5.22 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/no-lc/1.5.22 new file mode 100644 index 0000000000..786284d497 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/no-lc/1.5.22 @@ -0,0 +1,11 @@ +--- release-1-5-22.orig 2009-12-03 17:05:15.605534999 +0100 ++++ release-1-5-22 2009-12-14 21:56:58.884956366 +0100 +@@ -1573,7 +1573,7 @@ + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; +- *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) ++ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX* | *-*-hpux*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/nocxx/nocxx.patch b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/nocxx/nocxx.patch new file mode 100644 index 0000000000..a898f9d01a --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/nocxx/nocxx.patch @@ -0,0 +1,15 @@ +--- configure.orig 2004-12-07 21:34:23.205172545 +0000 ++++ configure 2004-12-07 21:37:17.726654782 +0000 +@@ -5148,10 +5148,8 @@ + : + else + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check +-See \`config.log' for more details." >&5 +-echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check +-See \`config.log' for more details." >&2;} +- { (exit 1); exit 1; }; } ++See \`config.log' for more details." >&5;} ++ { echo "C++ sucks, ignoring ..." >&5; }; } + fi + + ac_ext=cc diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.2.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.2.0 new file mode 100644 index 0000000000..70b02619c6 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.2.0 @@ -0,0 +1,7 @@ +# Dummy patch, not needed by libtool-1.2 + +--- ltmain.sh ++++ ltmain.sh +@@ -32,1 +32,1 @@ +-PACKAGE=libtool ++PACKAGE=libtool diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.3.0c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.3.0c new file mode 100644 index 0000000000..ad071aed2f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.3.0c @@ -0,0 +1,66 @@ +--- ltmain.sh 2005-09-02 22:19:17.000000000 +0200 ++++ ltmain.sh 2005-09-02 22:20:55.000000000 +0200 +@@ -3769,9 +3769,50 @@ + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit 1 + fi +- newdependency_libs="$newdependency_libs $libdir/$name" ++ # We do not want portage's install root ($D) present. Check only for ++ # this if the .la is being installed. ++ if test "$installed" = yes && test "$D"; then ++ eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$libdir/$name" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_1"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi ++ ;; ++ *) ++ if test "$installed" = yes; then ++ # Rather use S=WORKDIR if our version of portage supports it. ++ # This is because some ebuild (gcc) do not use $S as buildroot. ++ if test "$WORKDIR"; then ++ S="$WORKDIR" ++ fi ++ # We do not want portage's build root ($S) present. ++ my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` ++ # We do not want portage's install root ($D) present. ++ my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` ++ if test -n "$my_little_ninja_foo_2" && test "$S"; then ++ mynewdependency_lib="" ++ elif test -n "$my_little_ninja_foo_3" && test "$D"; then ++ eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_4"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi + ;; +- *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" +@@ -3799,6 +3840,10 @@ + dlprefiles="$newdlprefiles" + fi + $rm $output ++ # Do not add duplicates ++ if test "$installed" = yes && test "$D"; then ++ install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ fi + $echo > $output "\ + # $outputname - a libtool library file + # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.3.3 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.3.3 new file mode 100644 index 0000000000..731076bce4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.3.3 @@ -0,0 +1,71 @@ +--- ltmain.sh 2005-05-13 10:53:28.000000000 +0200 ++++ ltmain.sh 2005-05-13 11:44:15.000000000 +0200 +@@ -3078,6 +3078,68 @@ + break + fi + output="$output_objdir/$outputname"i ++ # Replace all uninstalled libtool libraries with the installed ones ++ newdependency_libs= ++ for deplib in $dependency_libs; do ++ case $deplib in ++ *.la) ++ name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` ++ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` ++ if test -z "$libdir"; then ++ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 ++ exit $EXIT_FAILURE ++ fi ++ # We do not want portage's install root ($D) present. Check only for ++ # this if the .la is being installed. ++ if test "$installed" = yes && test "$D"; then ++ eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$libdir/$name" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_1"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi ++ ;; ++ *) ++ if test "$installed" = yes; then ++ # Rather use S=WORKDIR if our version of portage supports it. ++ # This is because some ebuild (gcc) do not use $S as buildroot. ++ if test "$WORKDIR"; then ++ S="$WORKDIR" ++ fi ++ # We do not want portage's build root ($S) present. ++ my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` ++ # We do not want portage's install root ($D) present. ++ my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` ++ if test -n "$my_little_ninja_foo_2" && test "$S"; then ++ mynewdependency_lib="" ++ elif test -n "$my_little_ninja_foo_3" && test "$D"; then ++ eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_4"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi ++ ;; ++ esac ++ done ++ dependency_libs="$newdependency_libs" ++ fi ++ # Do not add duplicates ++ if test "$installed" = yes && test "$D"; then ++ install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` + fi + $rm $output + $echo > $output "\ diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.4.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.4.0 new file mode 100644 index 0000000000..5566a39af4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.4.0 @@ -0,0 +1,74 @@ +Note that if you update this patch, please update this one as well: + + eclass/ELT-patches/portage/1.4.1 + +The file name can stay 1.4.1, as it will still apply to all versions. Only +when a new version of libtool comes out that it do not apply to, then the +name should be bumped, but the patch content should stay fairly the same. + +--- ltmain.sh Wed Apr 3 01:19:37 2002 ++++ ltmain.sh Sun May 26 19:50:52 2002 +@@ -3940,9 +3940,50 @@ + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit 1 + fi +- newdependency_libs="$newdependency_libs $libdir/$name" ++ # We do not want portage's install root ($D) present. Check only for ++ # this if the .la is being installed. ++ if test "$installed" = yes && test "$D"; then ++ eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$libdir/$name" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_1"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi ++ ;; ++ *) ++ if test "$installed" = yes; then ++ # Rather use S=WORKDIR if our version of portage supports it. ++ # This is because some ebuild (gcc) do not use $S as buildroot. ++ if test "$WORKDIR"; then ++ S="$WORKDIR" ++ fi ++ # We do not want portage's build root ($S) present. ++ my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` ++ # We do not want portage's install root ($D) present. ++ my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` ++ if test -n "$my_little_ninja_foo_2" && test "$S"; then ++ mynewdependency_lib="" ++ elif test -n "$my_little_ninja_foo_3" && test "$D"; then ++ eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_4"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi + ;; +- *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" +@@ -3975,6 +4005,10 @@ + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac ++ # Do not add duplicates ++ if test "$installed" = yes && test "$D"; then ++ install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ fi + $echo > $output "\ + # $outputname - a libtool library file + # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.5.10 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.5.10 new file mode 100644 index 0000000000..f33d906ed5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/1.5.10 @@ -0,0 +1,77 @@ +Note that if you update this patch, please update this one as well: + + eclass/ELT-patches/portage/1.4.1 + +The file name can stay 1.4.1, as it will still apply to all versions. Only +when a new version of libtool comes out that it do not apply to, then the +name should be bumped, but the patch content should stay fairly the same. + +--- ltmain.sh Wed Apr 3 01:19:37 2002 ++++ ltmain.sh Sun May 26 19:50:52 2002 +@@ -3940,9 +3940,53 @@ + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit 1 + fi +- newdependency_libs="$newdependency_libs $libdir/$name" ++ if test "x$EGREP" = x ; then ++ EGREP=egrep ++ fi ++ # We do not want portage's install root ($D) present. Check only for ++ # this if the .la is being installed. ++ if test "$installed" = yes && test "$D"; then ++ eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$libdir/$name" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_1"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi ++ ;; ++ *) ++ if test "$installed" = yes; then ++ # Rather use S=WORKDIR if our version of portage supports it. ++ # This is because some ebuild (gcc) do not use $S as buildroot. ++ if test "$WORKDIR"; then ++ S="$WORKDIR" ++ fi ++ # We do not want portage's build root ($S) present. ++ my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` ++ # We do not want portage's install root ($D) present. ++ my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` ++ if test -n "$my_little_ninja_foo_2" && test "$S"; then ++ mynewdependency_lib="" ++ elif test -n "$my_little_ninja_foo_3" && test "$D"; then ++ eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_4"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi + ;; +- *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" +@@ -3975,6 +4005,10 @@ + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac ++ # Do not add duplicates ++ if test "$installed" = yes && test "$D"; then ++ install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ fi + $echo > $output "\ + # $outputname - a libtool library file + # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/2.2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/2.2 new file mode 100644 index 0000000000..1f724e7984 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/portage/2.2 @@ -0,0 +1,69 @@ +--- ltmain.sh ++++ ltmain.sh +@@ -7410,9 +7410,53 @@ + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" +- newdependency_libs="$newdependency_libs $libdir/$name" ++ if test "x$EGREP" = x ; then ++ EGREP=egrep ++ fi ++ # We do not want portage's install root ($D) present. Check only for ++ # this if the .la is being installed. ++ if test "$installed" = yes && test "$D"; then ++ eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$libdir/$name" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_1"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi ++ ;; ++ *) ++ if test "$installed" = yes; then ++ # Rather use S=WORKDIR if our version of portage supports it. ++ # This is because some ebuild (gcc) do not use $S as buildroot. ++ if test "$WORKDIR"; then ++ S="$WORKDIR" ++ fi ++ # We do not want portage's build root ($S) present. ++ my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` ++ # We do not want portage's install root ($D) present. ++ my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` ++ if test -n "$my_little_ninja_foo_2" && test "$S"; then ++ mynewdependency_lib="" ++ elif test -n "$my_little_ninja_foo_3" && test "$D"; then ++ eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ else ++ mynewdependency_lib="$deplib" ++ fi ++ # Do not add duplicates ++ if test "$mynewdependency_lib"; then ++ my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` ++ if test -z "$my_little_ninja_foo_4"; then ++ newdependency_libs="$newdependency_libs $mynewdependency_lib" ++ fi ++ fi + ;; +- *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" +@@ -7476,6 +7520,10 @@ + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac ++ # Do not add duplicates ++ if test "$installed" = yes && test "$D"; then ++ install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` ++ fi + $ECHO > $output "\ + # $outputname - a libtool library file + # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink-prog/1.3d b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink-prog/1.3d new file mode 100644 index 0000000000..ccb6cb811c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink-prog/1.3d @@ -0,0 +1,24 @@ +--- ltmain.sh ++++ ltmain.sh +@@ -3203,6 +3203,12 @@ + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac ++ else ++ case $libdir in ++ [\\/]*) ++ add_dir="$add_dir -L\\\"\\\${D}\\\"$libdir" ++ ;; ++ esac + fi + add="-l$name" + fi +@@ -6630,7 +6636,7 @@ + esac + fi + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test +- if test -n "$libdir" && test ! -f "$libfile"; then ++ if test -n "$libdir" && test ! -f "${D}$libfile"; then + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 + finalize=no + fi diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink-prog/2.1b b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink-prog/2.1b new file mode 100644 index 0000000000..71a0970d5b --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink-prog/2.1b @@ -0,0 +1,24 @@ +--- ltmain-v2.2.6.in 2009-06-22 15:33:27.000000000 +0200 ++++ ltmain-v2.2.6.in.new 2009-07-16 16:21:04.000000000 +0200 +@@ -1742,7 +1742,7 @@ + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test +- if test -n "$libdir" && test ! -f "$libfile"; then ++ if test -n "$libdir" && test ! -f "${D}$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi +@@ -5351,6 +5351,12 @@ + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac ++ else ++ case $libdir in ++ [\\/]*) ++ add_dir="$add_dir -L\\\"\\\${D}\\\"$libdir" ++ ;; ++ esac + fi + add="-l$name" + fi diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a new file mode 100644 index 0000000000..382d76087e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a @@ -0,0 +1,99 @@ +--- ltmain.sh Wed Oct 3 02:05:35 2001 ++++ ltmain.sh Wed Oct 3 05:16:14 2001 +@@ -754,6 +754,7 @@ + linker_flags= + dllsearchpath= + lib_search_path=`pwd` ++ inst_prefix_dir= + + avoid_version=no + dlfiles= +@@ -884,6 +885,11 @@ + prev= + continue + ;; ++ inst_prefix) ++ inst_prefix_dir="$arg" ++ prev= ++ continue ++ ;; + release) + release="-$arg" + prev= +@@ -985,6 +991,11 @@ + continue + ;; + ++ -inst-prefix-dir) ++ prev=inst_prefix ++ continue ++ ;; ++ + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) +@@ -1866,6 +1877,7 @@ + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= ++ add_prefix_dir= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. +@@ -1886,10 +1898,22 @@ + add="-l$name" + fi + ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_prefix_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ ++ # add_prefix_dir must be appended instead, otherwise it can ++ # possibly be overrided by any hardcoded -L/... path in deplibs + if test "$linkmode" = prog; then ++ test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir" + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else ++ test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir" + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi +@@ -3856,7 +3880,7 @@ + fi + done + # Quote the link command for shipping. +- relink_command="($relink_command; cd `pwd`; $SHELL $0 --mode=relink $libtool_args)" ++ relink_command="($relink_command; cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -4157,6 +4181,24 @@ + dir="$dir$objdir" + + if test -n "$relink_command"; then ++ # Determine the prefix the user has applied to our future dir. ++ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` ++ ++ # Don't allow the user to place us outside of our expected ++ # location b/c this prevents finding dependent libraries that ++ # are installed to the same prefix. ++ if test "$inst_prefix_dir" = "$destdir"; then ++ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++ exit 1 ++ fi ++ ++ if test -n "$inst_prefix_dir"; then ++ # Stick the inst_prefix_dir data into the link command. ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` ++ else ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` ++ fi ++ + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a-GCC3.0-1 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a-GCC3.0-1 new file mode 100644 index 0000000000..6bf45e58c5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a-GCC3.0-1 @@ -0,0 +1,99 @@ +--- ltmain.sh Wed Oct 3 02:05:35 2001 ++++ ltmain.sh Wed Oct 3 05:16:14 2001 +@@ -754,6 +754,7 @@ + linker_flags= + dllsearchpath= + lib_search_path=`pwd` ++ inst_prefix_dir= + + avoid_version=no + dlfiles= +@@ -884,6 +885,11 @@ + prev= + continue + ;; ++ inst_prefix) ++ inst_prefix_dir="$arg" ++ prev= ++ continue ++ ;; + release) + release="-$arg" + prev= +@@ -985,6 +991,11 @@ + continue + ;; + ++ -inst-prefix-dir) ++ prev=inst_prefix ++ continue ++ ;; ++ + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) +@@ -1866,6 +1877,7 @@ + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= ++ add_prefix_dir= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. +@@ -1886,10 +1898,22 @@ + add="-l$name" + fi + ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_prefix_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ ++ # add_prefix_dir must be appended instead, otherwise it can ++ # possibly be overrided by any hardcoded -L/... path in deplibs + if test "$linkmode" = prog; then ++ test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir" + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else ++ test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir" + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi +@@ -3856,7 +3880,7 @@ + for tag in $taglist; do + tagopts="$tagopts --tag $tag" + done +- relink_command="(cd `pwd`; $SHELL $0$tagopts --mode=relink $libtool_args)" ++ relink_command="(cd `pwd`; $SHELL $0$tagopts --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -4157,6 +4181,24 @@ + dir="$dir$objdir" + + if test -n "$relink_command"; then ++ # Determine the prefix the user has applied to our future dir. ++ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` ++ ++ # Don't allow the user to place us outside of our expected ++ # location b/c this prevents finding dependent libraries that ++ # are installed to the same prefix. ++ if test "$inst_prefix_dir" = "$destdir"; then ++ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++ exit 1 ++ fi ++ ++ if test -n "$inst_prefix_dir"; then ++ # Stick the inst_prefix_dir data into the link command. ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` ++ else ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` ++ fi ++ + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a-GCC3.0-2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a-GCC3.0-2 new file mode 100644 index 0000000000..55103a42e2 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.0a-GCC3.0-2 @@ -0,0 +1,100 @@ +--- ltmain.sh Wed Oct 3 02:05:35 2001 ++++ ltmain.sh Wed Oct 3 05:16:14 2001 +@@ -754,6 +754,7 @@ + linker_flags= + dllsearchpath= + lib_search_path=`pwd` ++ inst_prefix_dir= + + avoid_version=no + dlfiles= +@@ -884,6 +885,11 @@ + prev= + continue + ;; ++ inst_prefix) ++ inst_prefix_dir="$arg" ++ prev= ++ continue ++ ;; + release) + release="-$arg" + prev= +@@ -985,6 +991,11 @@ + continue + ;; + ++ -inst-prefix-dir) ++ prev=inst_prefix ++ continue ++ ;; ++ + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) +@@ -1866,6 +1877,7 @@ + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= ++ add_prefix_dir= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. +@@ -1886,10 +1898,22 @@ + add="-l$name" + fi + +- if test $linkmode = prog; then ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_prefix_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ ++ # add_prefix_dir must be appended instead, otherwise it can ++ # possibly be overrided by any hardcoded -L/... path in deplibs ++ if test "$linkmode" = prog; then ++ test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir" + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else ++ test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir" + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi +@@ -3856,7 +3880,7 @@ + for tag in $taglist; do + tagopts="$tagopts --tag $tag" + done +- relink_command="(cd `pwd`; $SHELL $0$tagopts --mode=relink $libtool_args)" ++ relink_command="(cd `pwd`; $SHELL $0$tagopts --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -4157,6 +4181,24 @@ + dir="$dir$objdir" + + if test -n "$relink_command"; then ++ # Determine the prefix the user has applied to our future dir. ++ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` ++ ++ # Don't allow the user to place us outside of our expected ++ # location b/c this prevents finding dependent libraries that ++ # are installed to the same prefix. ++ if test "$inst_prefix_dir" = "$destdir"; then ++ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++ exit 1 ++ fi ++ ++ if test -n "$inst_prefix_dir"; then ++ # Stick the inst_prefix_dir data into the link command. ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` ++ else ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` ++ fi ++ + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.1 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.1 new file mode 100644 index 0000000000..f34863f685 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.1 @@ -0,0 +1,124 @@ +--- ltmain.sh Sun Aug 12 18:08:05 2001 ++++ ltmain.sh Tue Aug 28 18:55:13 2001 +@@ -827,6 +827,7 @@ + linker_flags= + dllsearchpath= + lib_search_path=`pwd` ++ inst_prefix_dir= + + avoid_version=no + dlfiles= +@@ -959,6 +960,11 @@ + prev= + continue + ;; ++ inst_prefix) ++ inst_prefix_dir="$arg" ++ prev= ++ continue ++ ;; + release) + release="-$arg" + prev= +@@ -1167,6 +1173,11 @@ + continue + ;; + ++ -inst-prefix-dir) ++ prev=inst_prefix ++ continue ++ ;; ++ + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) +@@ -2231,7 +2242,16 @@ + if test "$hardcode_direct" = yes; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then +- add_dir="-L$libdir" ++ # Try looking first in the location we're being installed to. ++ add_dir= ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ add_dir="$add_dir -L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in +@@ -2241,7 +2261,16 @@ + add="-l$name" + else + # We cannot seem to hardcode it, guess we'll fake it. +- add_dir="-L$libdir" ++ # Try looking first in the location we're being installed to. ++ add_dir= ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ add_dir="$add_dir -L$libdir" + add="-l$name" + fi + +@@ -4321,7 +4350,7 @@ + fi + done + # Quote the link command for shipping. +- relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args" ++ relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -4622,12 +4651,30 @@ + dir="$dir$objdir" + + if test -n "$relink_command"; then ++ # Determine the prefix the user has applied to our future dir. ++ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` ++ ++ # Don't allow the user to place us outside of our expected ++ # location b/c this prevents finding dependent libraries that ++ # are installed to the same prefix. ++ if test "$inst_prefix_dir" = "$destdir"; then ++ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++ exit 1 ++ fi ++ ++ if test -n "$inst_prefix_dir"; then ++ # Stick the inst_prefix_dir data into the link command. ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` ++ else ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` ++ fi ++ + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 +- continue ++ exit 1 + fi + fi + +@@ -4782,7 +4829,11 @@ + if test "$finalize" = yes && test -z "$run"; then + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" +- tmpdir="$tmpdir/libtool-$$" ++ tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` ++ if test $? = 0 ; then : ++ else ++ tmpdir="$tmpdir/libtool-$$" ++ fi + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : + else + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.2 new file mode 100644 index 0000000000..17a630b7cf --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.2 @@ -0,0 +1,99 @@ +--- ltmain.sh Wed Oct 3 02:05:35 2001 ++++ ltmain.sh Wed Oct 3 05:16:14 2001 +@@ -754,6 +754,7 @@ + linker_flags= + dllsearchpath= + lib_search_path=`pwd` ++ inst_prefix_dir= + + avoid_version=no + dlfiles= +@@ -884,6 +885,11 @@ + prev= + continue + ;; ++ inst_prefix) ++ inst_prefix_dir="$arg" ++ prev= ++ continue ++ ;; + release) + release="-$arg" + prev= +@@ -985,6 +991,11 @@ + continue + ;; + ++ -inst-prefix-dir) ++ prev=inst_prefix ++ continue ++ ;; ++ + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) +@@ -1866,6 +1877,7 @@ + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= ++ add_prefix_dir= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. +@@ -1886,10 +1898,22 @@ + add="-l$name" + fi + ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_prefix_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ ++ # add_prefix_dir must be appended instead, otherwise it can ++ # possibly be overrided by any hardcoded -L/... path in deplibs + if test "$linkmode" = prog; then ++ test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir" + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else ++ test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir" + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi +@@ -3856,7 +3880,7 @@ + fi + done + # Quote the link command for shipping. +- relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)" ++ relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -4157,6 +4181,24 @@ + dir="$dir$objdir" + + if test -n "$relink_command"; then ++ # Determine the prefix the user has applied to our future dir. ++ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` ++ ++ # Don't allow the user to place us outside of our expected ++ # location b/c this prevents finding dependent libraries that ++ # are installed to the same prefix. ++ if test "$inst_prefix_dir" = "$destdir"; then ++ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++ exit 1 ++ fi ++ ++ if test -n "$inst_prefix_dir"; then ++ # Stick the inst_prefix_dir data into the link command. ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` ++ else ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` ++ fi ++ + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.3 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.3 new file mode 100644 index 0000000000..3ed5fe3784 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/relink/1.4.3 @@ -0,0 +1,111 @@ +--- ltmain.sh Mon Feb 4 15:12:15 2002 ++++ ltmain.sh Mon Feb 4 15:12:15 2002 +@@ -745,6 +745,7 @@ + linker_flags= + dllsearchpath= + lib_search_path=`pwd` ++ inst_prefix_dir= + + avoid_version=no + dlfiles= +@@ -875,6 +876,11 @@ + prev= + continue + ;; ++ inst_prefix) ++ inst_prefix_dir="$arg" ++ prev= ++ continue ++ ;; + release) + release="-$arg" + prev= +@@ -976,6 +982,11 @@ + continue + ;; + ++ -inst-prefix-dir) ++ prev=inst_prefix ++ continue ++ ;; ++ + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) +@@ -1851,7 +1862,16 @@ + if test "$hardcode_direct" = yes; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then +- add_dir="-L$libdir" ++ # Try looking first in the location we're being installed to. ++ add_dir= ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ add_dir="$add_dir -L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in +@@ -1861,7 +1881,16 @@ + add="-l$name" + else + # We cannot seem to hardcode it, guess we'll fake it. +- add_dir="-L$libdir" ++ # Try looking first in the location we're being installed to. ++ add_dir= ++ if test -n "$inst_prefix_dir"; then ++ case "$libdir" in ++ [\\/]*) ++ add_dir="-L$inst_prefix_dir$libdir" ++ ;; ++ esac ++ fi ++ add_dir="$add_dir -L$libdir" + add="-l$name" + fi + +@@ -3823,7 +3852,7 @@ + fi + done + # Quote the link command for shipping. +- relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)" ++ relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -4124,12 +4153,30 @@ + dir="$dir$objdir" + + if test -n "$relink_command"; then ++ # Determine the prefix the user has applied to our future dir. ++ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` ++ ++ # Don't allow the user to place us outside of our expected ++ # location b/c this prevents finding dependent libraries that ++ # are installed to the same prefix. ++ if test "$inst_prefix_dir" = "$destdir"; then ++ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++ exit 1 ++ fi ++ ++ if test -n "$inst_prefix_dir"; then ++ # Stick the inst_prefix_dir data into the link command. ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` ++ else ++ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` ++ fi ++ + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 +- continue ++ exit 1 + fi + fi + diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/rem-int-dep/1.3.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/rem-int-dep/1.3.5 new file mode 100644 index 0000000000..4302623607 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/rem-int-dep/1.3.5 @@ -0,0 +1,11 @@ +--- ltmain.sh 2002-11-01 19:56:50.000000000 -0600 ++++ ltmain.sh 2002-11-01 19:57:03.000000000 -0600 +@@ -4551,6 +4551,8 @@ + if test "$installed" = yes && test "$D"; then + install_libdir="`echo "$install_libdir" |sed -e "s:$D::g" -e 's://:/:g'`" + fi ++ # Removing @REM_INT_DEP@ from dependency_libs in .la ++ dependency_libs=`echo $dependency_libs | $Xsed -e 's%\([^ ]*lib@REM_INT_DEP@\.\(so\|la\|a\)\)\|\(-l@REM_INT_DEP@\)%%g'` + \$echo > \$output "\\ + # \$outputname - a libtool library file + # Generated by \$PROGRAM - GNU \$PACKAGE \$VERSION\$TIMESTAMP diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.3.4 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.3.4 new file mode 100644 index 0000000000..c88ff727a7 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.3.4 @@ -0,0 +1,14 @@ +--- ltmain.sh 2005-05-13 11:48:24.000000000 +0200 ++++ ltmain.sh 2005-05-13 11:48:42.000000000 +0200 +@@ -47,6 +47,11 @@ + exit 0 + fi + ++# define variables for historic ltconfig's generated by Libtool 1.3 ++test -z "$SED" && SED=sed ++test -z "$EGREP" && EGREP=egrep ++test -z "$LTCC" && LTCC=${CC-gcc} ++ + # The name of this program. + progname=`$echo "$0" | sed 's%^.*/%%'` + modename="$progname" diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.4.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.4.0 new file mode 100644 index 0000000000..9c51ac2de0 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.4.0 @@ -0,0 +1,14 @@ +--- ltmain.sh 2003-02-13 14:54:24.000000000 +0100 ++++ ltmain.sh 2003-02-13 15:24:49.000000000 +0100 +@@ -48,6 +48,11 @@ EOF + exit 0 + fi + ++# define variables for historic ltconfig's generated by Libtool 1.3 ++test -z "$SED" && SED=sed ++test -z "$EGREP" && EGREP=egrep ++test -z "$LTCC" && LTCC=${CC-gcc} ++ + # The name of this program. + progname=`$echo "$0" | ${SED} 's%^.*/%%'` + modename="$progname" diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.5.6 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.5.6 new file mode 100644 index 0000000000..5efd5310dc --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sed/1.5.6 @@ -0,0 +1,16 @@ +--- ltmain.sh 2005-04-16 16:50:02.000000000 +0200 ++++ ltmain.sh 2005-04-16 16:46:46.000000000 +0200 +@@ -39,6 +39,13 @@ + if [ "x$SED" = x ] ; then + SED=sed + fi ++# Same for EGREP, and just to be sure, do LTCC as well ++if test "x$EGREP" = x ; then ++ EGREP=egrep ++fi ++if test "x$LTCC" = x ; then ++ LTCC=${CC-gcc} ++fi + + # The name of this program: + progname=`echo "$progpath" | $SED $basename` diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sol2-conf/2.4.2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sol2-conf/2.4.2 new file mode 100644 index 0000000000..a57f22c9ca --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sol2-conf/2.4.2 @@ -0,0 +1,14 @@ +Unbreak x86_64-pc-solaris2.1[01], it IS 64-bits too. Without this, +libtool thinks the linker is called ld_sol2. + +--- configure ++++ configure +@@ -1383,7 +1383,7 @@ + case $lt_cv_prog_gnu_ld in + yes*) + case $host in +- i?86-*-solaris*) ++ i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sol2-ltmain/2.4.2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sol2-ltmain/2.4.2 new file mode 100644 index 0000000000..ad35ed88db --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sol2-ltmain/2.4.2 @@ -0,0 +1,11 @@ +--- libltdl/config/ltmain.sh ++++ libltdl/config/ltmain.sh +@@ -1180,7 +1180,7 @@ + test "$opt_debug" = : || func_append preserve_args " --debug" + + case $host in +- *cygwin* | *mingw* | *pw32* | *cegcc*) ++ *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sys-lib-dlsearch/2.4 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sys-lib-dlsearch/2.4 new file mode 100644 index 0000000000..89eb6992e3 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/sys-lib-dlsearch/2.4 @@ -0,0 +1,21 @@ +the linux target parses /etc/ld.so.conf to see what paths are +searched at runtime, and hardcodes /lib /usr/lib as a fallback. +this works poorly when cross-compiling, so tweak the behavior: + - search $SYSROOT/etc/ld.so.conf + - default to Gentoo's notion of the active multilib + +--- a/configure ++++ b/configure +@@ -10405,9 +10405,9 @@ + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path +- if test -f /etc/ld.so.conf; then +- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ if test -f "$SYSROOT"/etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < "$SYSROOT"/etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/@GENTOO_LIBDIR@ /usr/@GENTOO_LIBDIR@ $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/test/1.4.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/test/1.4.0 new file mode 100644 index 0000000000..d6f442f0e3 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/test/1.4.0 @@ -0,0 +1,291 @@ +--- ltmain.sh Tue May 29 19:16:03 2001 ++++ ltmain.sh Tue May 29 21:26:50 2001 +@@ -459,7 +459,7 @@ + pic_mode=default + ;; + esac +- if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then ++ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi +@@ -1343,7 +1343,7 @@ + ;; + esac + for pass in $passes; do +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + # Determine which files to process + case $pass in + dlopen) +@@ -1360,11 +1360,11 @@ + found=no + case $deplib in + -l*) +- if test $linkmode = oldlib && test $linkmode = obj; then ++ if test "$linkmode" = oldlib && test "$linkmode" = obj; then + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2 + continue + fi +- if test $pass = conv; then ++ if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi +@@ -1384,7 +1384,7 @@ + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" +- test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs" ++ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi +@@ -1393,16 +1393,16 @@ + case $linkmode in + lib) + deplibs="$deplib $deplibs" +- test $pass = conv && continue ++ test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + ;; + prog) +- if test $pass = conv; then ++ if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi +- if test $pass = scan; then ++ if test "$pass" = scan; then + deplibs="$deplib $deplibs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + else +@@ -1417,7 +1417,7 @@ + continue + ;; # -L + -R*) +- if test $pass = link; then ++ if test "$pass" = link; then + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` + # Make sure the xrpath contains only unique directories. + case "$xrpath " in +@@ -1430,7 +1430,7 @@ + ;; + *.la) lib="$deplib" ;; + *.$libext) +- if test $pass = conv; then ++ if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi +@@ -1451,7 +1451,7 @@ + continue + ;; + prog) +- if test $pass != link; then ++ if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" +@@ -1462,7 +1462,7 @@ + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) +- if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then ++ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" +@@ -1512,13 +1512,13 @@ + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || +- { test $linkmode = oldlib && test $linkmode = obj; }; then ++ { test "$linkmode" = oldlib && test "$linkmode" = obj; }; then + # Add dl[pre]opened files of deplib + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + +- if test $pass = conv; then ++ if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then +@@ -1537,7 +1537,7 @@ + esac + tmp_libs="$tmp_libs $deplib" + done +- elif test $linkmode != prog && test $linkmode != lib; then ++ elif test "$linkmode" != prog && test "$linkmode" != lib; then + $echo "$modename: \`$lib' is not a convenience library" 1>&2 + exit 1 + fi +@@ -1555,7 +1555,7 @@ + fi + + # This library was specified with -dlopen. +- if test $pass = dlopen; then ++ if test "$pass" = dlopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 + exit 1 +@@ -1604,7 +1604,7 @@ + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + + # This library was specified with -dlpreopen. +- if test $pass = dlpreopen; then ++ if test "$pass" = dlpreopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 + exit 1 +@@ -1623,7 +1623,7 @@ + + if test -z "$libdir"; then + # Link the convenience library +- if test $linkmode = lib; then ++ if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" +@@ -1634,7 +1634,7 @@ + continue + fi + +- if test $linkmode = prog && test $pass != link; then ++ if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + +@@ -1671,7 +1671,7 @@ + # Link against this shared library + + if test "$linkmode,$pass" = "prog,link" || +- { test $linkmode = lib && test $hardcode_into_libs = yes; }; then ++ { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. +@@ -1693,7 +1693,7 @@ + esac + ;; + esac +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + # We need to hardcode the library path + if test -n "$shlibpath_var"; then + # Make sure the rpath contains only unique directories. +@@ -1777,7 +1777,7 @@ + linklib=$newlib + fi # test -n $old_archive_from_expsyms_cmds + +- if test $linkmode = prog || test "$mode" != relink; then ++ if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= +@@ -1826,7 +1826,7 @@ + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else +@@ -1843,7 +1843,7 @@ + fi + fi + +- if test $linkmode = prog || test "$mode" = relink; then ++ if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= +@@ -1865,7 +1865,7 @@ + add="-l$name" + fi + +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else +@@ -1873,7 +1873,7 @@ + test -n "$add" && deplibs="$add $deplibs" + fi + fi +- elif test $linkmode = prog; then ++ elif test "$linkmode" = prog; then + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && +@@ -1932,9 +1932,9 @@ + fi + fi # link shared/static library? + +- if test $linkmode = lib; then ++ if test "$linkmode" = lib; then + if test -n "$dependency_libs" && +- { test $hardcode_into_libs != yes || test $build_old_libs = yes || ++ { test "$hardcode_into_libs" != yes || test $build_old_libs = yes || + test $link_static = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= +@@ -1964,7 +1964,7 @@ + tmp_libs="$tmp_libs $deplib" + done + +- if test $link_all_deplibs != no; then ++ if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in +@@ -2007,15 +2007,15 @@ + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs +- if test $pass = dlpreopen; then ++ if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi +- if test $pass != dlopen; then +- test $pass != scan && dependency_libs="$newdependency_libs" +- if test $pass != conv; then ++ if test "$pass" != dlopen; then ++ test "$pass" != scan && dependency_libs="$newdependency_libs" ++ if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do +@@ -2073,7 +2073,7 @@ + deplibs= + fi + done # for pass +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + dlprefiles="$newdlprefiles" + fi +@@ -2410,7 +2410,7 @@ + ;; + *) + # Add libc to deplibs on all other systems if necessary. +- if test $build_libtool_need_lc = "yes"; then ++ if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; +@@ -2683,7 +2683,7 @@ + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then +- if test $hardcode_into_libs = yes; then ++ if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/test/1.4.2 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/test/1.4.2 new file mode 100644 index 0000000000..8ae65ef002 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/test/1.4.2 @@ -0,0 +1,578 @@ +--- ltmain.sh 2001-09-10 19:40:18.000000000 -0400 ++++ ltmain.sh 2002-07-11 14:49:35.000000000 -0400 +@@ -467,7 +467,7 @@ if test -z "$show_help"; then + pic_mode=default + ;; + esac +- if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then ++ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi +@@ -1303,11 +1303,11 @@ compiler." + output_objdir="$output_objdir/$objdir" + fi + # Create the object directory. +- if test ! -d $output_objdir; then ++ if test ! -d "$output_objdir"; then + $show "$mkdir $output_objdir" + $run $mkdir $output_objdir + status=$? +- if test $status -ne 0 && test ! -d $output_objdir; then ++ if test "$status" -ne 0 && test ! -d "$output_objdir"; then + exit $status + fi + fi +@@ -1366,7 +1366,7 @@ compiler." + ;; + esac + for pass in $passes; do +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + # Determine which files to process + case $pass in + dlopen) +@@ -1383,11 +1383,11 @@ compiler." + found=no + case $deplib in + -l*) +- if test $linkmode = oldlib && test $linkmode = obj; then ++ if test "$linkmode" = oldlib && test "$linkmode" = obj; then + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2 + continue + fi +- if test $pass = conv; then ++ if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi +@@ -1407,7 +1407,7 @@ compiler." + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" +- test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs" ++ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi +@@ -1416,16 +1416,16 @@ compiler." + case $linkmode in + lib) + deplibs="$deplib $deplibs" +- test $pass = conv && continue ++ test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + ;; + prog) +- if test $pass = conv; then ++ if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi +- if test $pass = scan; then ++ if test "$pass" = scan; then + deplibs="$deplib $deplibs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + else +@@ -1440,7 +1440,7 @@ compiler." + continue + ;; # -L + -R*) +- if test $pass = link; then ++ if test "$pass" = link; then + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` + # Make sure the xrpath contains only unique directories. + case "$xrpath " in +@@ -1453,7 +1453,7 @@ compiler." + ;; + *.la) lib="$deplib" ;; + *.$libext) +- if test $pass = conv; then ++ if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi +@@ -1474,7 +1474,7 @@ compiler." + continue + ;; + prog) +- if test $pass != link; then ++ if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" +@@ -1485,7 +1485,7 @@ compiler." + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) +- if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then ++ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" +@@ -1501,7 +1501,7 @@ compiler." + continue + ;; + esac # case $deplib +- if test $found = yes || test -f "$lib"; then : ++ if test "$found" = yes || test -f "$lib"; then : + else + $echo "$modename: cannot find the library \`$lib'" 1>&2 + exit 1 +@@ -1535,13 +1535,13 @@ compiler." + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || +- { test $linkmode = oldlib && test $linkmode = obj; }; then ++ { test "$linkmode" = oldlib && test "$linkmode" = obj; }; then + # Add dl[pre]opened files of deplib + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + +- if test $pass = conv; then ++ if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then +@@ -1560,7 +1560,7 @@ compiler." + esac + tmp_libs="$tmp_libs $deplib" + done +- elif test $linkmode != prog && test $linkmode != lib; then ++ elif test "$linkmode" != prog && test "$linkmode" != lib; then + $echo "$modename: \`$lib' is not a convenience library" 1>&2 + exit 1 + fi +@@ -1578,7 +1578,7 @@ compiler." + fi + + # This library was specified with -dlopen. +- if test $pass = dlopen; then ++ if test "$pass" = dlopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 + exit 1 +@@ -1627,7 +1627,7 @@ compiler." + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + + # This library was specified with -dlpreopen. +- if test $pass = dlpreopen; then ++ if test "$pass" = dlpreopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 + exit 1 +@@ -1646,7 +1646,7 @@ compiler." + + if test -z "$libdir"; then + # Link the convenience library +- if test $linkmode = lib; then ++ if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" +@@ -1657,7 +1657,7 @@ compiler." + continue + fi + +- if test $linkmode = prog && test $pass != link; then ++ if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + +@@ -1673,7 +1673,7 @@ compiler." + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test + esac + # Need to link against all dependency_libs? +- if test $linkalldeplibs = yes; then ++ if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths +@@ -1694,7 +1694,7 @@ compiler." + # Link against this shared library + + if test "$linkmode,$pass" = "prog,link" || +- { test $linkmode = lib && test $hardcode_into_libs = yes; }; then ++ { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. +@@ -1716,7 +1716,7 @@ compiler." + esac + ;; + esac +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + # We need to hardcode the library path + if test -n "$shlibpath_var"; then + # Make sure the rpath contains only unique directories. +@@ -1798,9 +1798,9 @@ compiler." + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib +- fi # test -n $old_archive_from_expsyms_cmds ++ fi # test -n "$old_archive_from_expsyms_cmds" + +- if test $linkmode = prog || test "$mode" != relink; then ++ if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= +@@ -1849,7 +1849,7 @@ compiler." + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else +@@ -1866,7 +1866,7 @@ compiler." + fi + fi + +- if test $linkmode = prog || test "$mode" = relink; then ++ if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= +@@ -1888,7 +1888,7 @@ compiler." + add="-l$name" + fi + +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else +@@ -1896,7 +1896,7 @@ compiler." + test -n "$add" && deplibs="$add $deplibs" + fi + fi +- elif test $linkmode = prog; then ++ elif test "$linkmode" = prog; then + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && +@@ -1955,10 +1955,10 @@ compiler." + fi + fi # link shared/static library? + +- if test $linkmode = lib; then ++ if test "$linkmode" = lib; then + if test -n "$dependency_libs" && +- { test $hardcode_into_libs != yes || test $build_old_libs = yes || +- test $link_static = yes; }; then ++ { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || ++ test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do +@@ -1987,7 +1987,7 @@ compiler." + tmp_libs="$tmp_libs $deplib" + done + +- if test $link_all_deplibs != no; then ++ if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in +@@ -2030,15 +2030,15 @@ compiler." + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs +- if test $pass = dlpreopen; then ++ if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi +- if test $pass != dlopen; then +- test $pass != scan && dependency_libs="$newdependency_libs" +- if test $pass != conv; then ++ if test "$pass" != dlopen; then ++ test "$pass" != scan && dependency_libs="$newdependency_libs" ++ if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do +@@ -2096,7 +2096,7 @@ compiler." + deplibs= + fi + done # for pass +- if test $linkmode = prog; then ++ if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + dlprefiles="$newdlprefiles" + fi +@@ -2173,7 +2173,7 @@ compiler." + fi + + set dummy $rpath +- if test $# -gt 2; then ++ if test "$#" -gt 2; then + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 + fi + install_libdir="$2" +@@ -2240,7 +2240,7 @@ compiler." + ;; + esac + +- if test $age -gt $current; then ++ if test "$age" -gt "$current"; then + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit 1 +@@ -2279,7 +2279,7 @@ compiler." + + # Add in all the interfaces that we are compatible with. + loop=$revision +- while test $loop != 0; do ++ while test "$loop" -ne 0; do + iface=`expr $revision - $loop` + loop=`expr $loop - 1` + verstring="sgi$major.$iface:$verstring" +@@ -2302,7 +2302,7 @@ compiler." + + # Add in all the interfaces that we are compatible with. + loop=$age +- while test $loop != 0; do ++ while test "$loop" -ne 0; do + iface=`expr $current - $loop` + loop=`expr $loop - 1` + verstring="$verstring:${iface}.0" +@@ -2403,7 +2403,7 @@ compiler." + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done +- if test $hardcode_into_libs != yes || test $build_old_libs = yes; then ++ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi +@@ -2446,7 +2446,7 @@ compiler." + ;; + *) + # Add libc to deplibs on all other systems if necessary. +- if test $build_libtool_need_lc = "yes"; then ++ if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; +@@ -2487,7 +2487,7 @@ compiler." + EOF + $rm conftest + $CC -o conftest conftest.c $deplibs +- if test $? -eq 0 ; then ++ if test "$?" -eq 0 ; then + ldd_output=`ldd conftest` + for i in $deplibs; do + name="`expr $i : '-l\(.*\)'`" +@@ -2521,7 +2521,7 @@ EOF + $rm conftest + $CC -o conftest conftest.c $i + # Did it work? +- if test $? -eq 0 ; then ++ if test "$?" -eq 0 ; then + ldd_output=`ldd conftest` + libname=`eval \\$echo \"$libname_spec\"` + deplib_matches=`eval \\$echo \"$library_names_spec\"` +@@ -2692,7 +2692,7 @@ EOF + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." + +- if test $allow_undefined = no; then ++ if test "$allow_undefined" = no; then + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" +@@ -2719,7 +2719,7 @@ EOF + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then +- if test $hardcode_into_libs = yes; then ++ if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= +@@ -2850,7 +2850,7 @@ EOF + $show "mkdir $gentop" + $run mkdir "$gentop" + status=$? +- if test $status -ne 0 && test ! -d "$gentop"; then ++ if test "$status" -ne 0 && test ! -d "$gentop"; then + exit $status + fi + generated="$generated $gentop" +@@ -2869,7 +2869,7 @@ EOF + $show "mkdir $xdir" + $run mkdir "$xdir" + status=$? +- if test $status -ne 0 && test ! -d "$xdir"; then ++ if test "$status" -ne 0 && test ! -d "$xdir"; then + exit $status + fi + $show "(cd $xdir && $AR x $xabs)" +@@ -2989,7 +2989,7 @@ EOF + $show "mkdir $gentop" + $run mkdir "$gentop" + status=$? +- if test $status -ne 0 && test ! -d "$gentop"; then ++ if test "$status" -ne 0 && test ! -d "$gentop"; then + exit $status + fi + generated="$generated $gentop" +@@ -3008,7 +3008,7 @@ EOF + $show "mkdir $xdir" + $run mkdir "$xdir" + status=$? +- if test $status -ne 0 && test ! -d "$xdir"; then ++ if test "$status" -ne 0 && test ! -d "$xdir"; then + exit $status + fi + $show "(cd $xdir && $AR x $xabs)" +@@ -3403,7 +3403,7 @@ static const void *lt_preloaded_setup() + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi + +- if test $need_relink = no || test "$build_libtool_libs" != yes; then ++ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + # Replace the output file specification. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" +@@ -3528,7 +3528,7 @@ static const void *lt_preloaded_setup() + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done +- relink_command="cd `pwd`; $relink_command" ++ relink_command="(cd `pwd`; $relink_command)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi + +@@ -3771,7 +3771,7 @@ fi\ + $show "mkdir $gentop" + $run mkdir "$gentop" + status=$? +- if test $status -ne 0 && test ! -d "$gentop"; then ++ if test "$status" -ne 0 && test ! -d "$gentop"; then + exit $status + fi + generated="$generated $gentop" +@@ -3791,7 +3791,7 @@ fi\ + $show "mkdir $xdir" + $run mkdir "$xdir" + status=$? +- if test $status -ne 0 && test ! -d "$xdir"; then ++ if test "$status" -ne 0 && test ! -d "$xdir"; then + exit $status + fi + $show "(cd $xdir && $AR x $xabs)" +@@ -3858,7 +3858,7 @@ fi\ + fi + done + # Quote the link command for shipping. +- relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args" ++ relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + + # Only create the output if not a dry run. +@@ -3948,7 +3948,7 @@ dlpreopen='$dlprefiles' + + # Directory that this library needs to be installed in: + libdir='$install_libdir'" +- if test "$installed" = no && test $need_relink = yes; then ++ if test "$installed" = no && test "$need_relink" = yes; then + $echo >> $output "\ + relink_command=\"$relink_command\"" + fi +@@ -4084,7 +4084,7 @@ relink_command=\"$relink_command\"" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files +- if test $# -gt 2; then ++ if test "$#" -gt 2; then + $echo "$modename: \`$dest' is not a directory" 1>&2 + $echo "$help" 1>&2 + exit 1 +@@ -4186,7 +4186,7 @@ relink_command=\"$relink_command\"" + $run eval "$striplib $destdir/$realname" || exit $? + fi + +- if test $# -gt 0; then ++ if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + for linkname + do +@@ -4444,7 +4444,7 @@ relink_command=\"$relink_command\"" + fi + + # Exit here if they wanted silent mode. +- test "$show" = ":" && exit 0 ++ test "$show" = : && exit 0 + + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" +@@ -4610,7 +4610,7 @@ relink_command=\"$relink_command\"" + fi + + # Now prepare to actually exec the command. +- exec_cmd='"$cmd"$args' ++ exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then +@@ -4660,10 +4660,10 @@ relink_command=\"$relink_command\"" + objdir="$dir/$objdir" + fi + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` +- test $mode = uninstall && objdir="$dir" ++ test "$mode" = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates +- if test $mode = clean; then ++ if test "$mode" = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; +@@ -4695,9 +4695,9 @@ relink_command=\"$relink_command\"" + rmfiles="$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" +- test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ++ test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + +- if test $mode = uninstall; then ++ if test "$mode" = uninstall; then + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + eval cmds=\"$postuninstall_cmds\" +@@ -4706,7 +4706,7 @@ relink_command=\"$relink_command\"" + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" +- if test $? != 0 && test "$rmforce" != yes; then ++ if test "$?" -ne 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done +@@ -4721,7 +4721,7 @@ relink_command=\"$relink_command\"" + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" +- if test $? != 0 && test "$rmforce" != yes; then ++ if test "$?" -ne 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done +@@ -4741,7 +4741,7 @@ relink_command=\"$relink_command\"" + + *) + # Do a test to see if this is a libtool program. +- if test $mode = clean && ++ if test "$mode" = clean && + (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + relink_command= + . $dir/$file diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/tmp/1.3.5 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/tmp/1.3.5 new file mode 100644 index 0000000000..29b70e0937 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/tmp/1.3.5 @@ -0,0 +1,15 @@ +--- ltmain.sh Fri Jul 7 18:49:44 2000 ++++ ltmain.sh Fri May 26 21:53:15 2000 +@@ -3462,7 +3462,11 @@ + if test "$finalize" = yes && test -z "$run"; then + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" +- tmpdir="$tmpdir/libtool-$$" ++ tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` ++ if test $? = 0 ; then : ++ else ++ tmpdir="$tmpdir/libtool-$$" ++ fi + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : + else + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-conf/1.2.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-conf/1.2.0 new file mode 100644 index 0000000000..acd804c8f4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-conf/1.2.0 @@ -0,0 +1,48 @@ +--- configure.libltdl~ Fri Jun 11 08:54:04 2004 ++++ configure Fri Jun 11 08:56:33 2004 +@@ -1978,6 +1978,11 @@ + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + ++linux-uclibc*) ++ lt_cv_deplibs_check_method=pass_all ++ lt_cv_file_magic_test_file=`echo /lib/libuClibc*.so` ++ ;; ++ + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' +@@ -3030,7 +3035,7 @@ + + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case $host_os in +-linux-gnu*) ;; ++linux-gnu*|linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -4504,6 +4509,24 @@ + dynamic_linker='GNU/Linux ld.so' + ;; + ++linux-uclibc*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' ++ soname_spec='${libname}${release}.so$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ # Note: copied from linux-gnu, and may not be appropriate. ++ hardcode_into_libs=yes ++ # Assume using the uClibc dynamic linker. ++ dynamic_linker="uClibc ld.so" ++ ;; ++ + netbsd*) + version_type=sunos + need_lib_prefix=no diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-conf/1.3.0c b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-conf/1.3.0c new file mode 100644 index 0000000000..03efc5dc9c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-conf/1.3.0c @@ -0,0 +1,48 @@ +--- configure.libltdl~ Fri Jun 11 08:54:04 2004 ++++ configure Fri Jun 11 08:56:33 2004 +@@ -1978,6 +1978,11 @@ + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; + ++linux-uclibc*) ++ lt_cv_deplibs_check_method=pass_all ++ lt_cv_file_magic_test_file=`echo /lib/libuClibc*.so` ++ ;; ++ + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' +@@ -3030,7 +3035,7 @@ + + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case "$host_os" in +-linux-gnu*) ;; ++linux-gnu*|linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -4504,6 +4509,24 @@ + dynamic_linker='GNU/Linux ld.so' + ;; + ++linux-uclibc*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' ++ soname_spec='${libname}${release}.so$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ # Note: copied from linux-gnu, and may not be appropriate. ++ hardcode_into_libs=yes ++ # Assume using the uClibc dynamic linker. ++ dynamic_linker="uClibc ld.so" ++ ;; ++ + netbsd*) + version_type=sunos + need_lib_prefix=no diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-ltconf/1.2.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-ltconf/1.2.0 new file mode 100644 index 0000000000..bbc6bc9657 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-ltconf/1.2.0 @@ -0,0 +1,36 @@ +--- ltconfig.uclibc 2004-01-14 22:07:42.000000000 +0100 ++++ ltconfig 2004-03-10 15:43:37.000000000 +0100 +@@ -603,6 +603,7 @@ + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case $host_os in + linux-gnu*) ;; ++linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -1259,6 +1260,25 @@ + fi + ;; + ++linux-uclibc*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so' ++ soname_spec='${libname}${release}.so.$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ deplibs_check_method=pass_all ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ # Note: copied from linux-gnu, and may not be appropriate. ++ hardcode_into_libs=yes ++ # Assume using the uClibc dynamic linker. ++ dynamic_linker="uClibc ld.so" ++ ;; ++ + netbsd* | openbsd*) + version_type=sunos + library_names_spec='${libname}${release}.so.$versuffix' diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-ltconf/1.3.0 b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-ltconf/1.3.0 new file mode 100644 index 0000000000..0a5a9ead8f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ELT-patches/uclibc-ltconf/1.3.0 @@ -0,0 +1,39 @@ +--- ltconfig.uclibc 2004-01-14 22:07:42.000000000 +0100 ++++ ltconfig 2004-03-10 15:43:37.000000000 +0100 +@@ -603,6 +603,7 @@ + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case $host_os in + linux-gnu*) ;; ++linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -1259,6 +1260,28 @@ + dynamic_linker='GNU/Linux ld.so' + ;; + ++linux-uclibc*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' ++ soname_spec='${libname}${release}.so$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # deplibs_check_method=pass_all ++ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ++ file_magic_cmd=/usr/bin/file ++ file_magic_test_file=`echo /lib/libuClibc-*.so` ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ # Note: copied from linux-gnu, and may not be appropriate. ++ hardcode_into_libs=yes ++ # Assume using the uClibc dynamic linker. ++ dynamic_linker="uClibc ld.so" ++ ;; ++ + netbsd*) + need_lib_prefix=no + need_version=no diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/alternatives.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/alternatives.eclass new file mode 100644 index 0000000000..d5e42fdc64 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/alternatives.eclass @@ -0,0 +1,139 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.17 2011/08/22 04:46:31 vapier Exp $ + +# @ECLASS: alternatives.eclass +# @AUTHOR: +# Original author: Alastair Tse (03 Oct 2003) +# @BLURB: Creates symlink to the latest version of multiple slotted packages. +# @DESCRIPTION: +# When a package is SLOT'ed, very often we need to have a symlink to the +# latest version. However, depending on the order the user has merged them, +# more often than not, the symlink maybe clobbered by the older versions. +# +# This eclass provides a convenience function that needs to be given a +# list of alternatives (descending order of recent-ness) and the symlink. +# It will choose the latest version it can find installed and create +# the desired symlink. +# +# There are two ways to use this eclass. First is by declaring two variables +# $SOURCE and $ALTERNATIVES where $SOURCE is the symlink to be created and +# $ALTERNATIVES is a list of alternatives. Second way is the use the function +# alternatives_makesym() like the example below. +# @EXAMPLE: +# pkg_postinst() { +# alternatives_makesym "/usr/bin/python" "/usr/bin/python2.3" "/usr/bin/python2.2" +# } +# +# The above example will create a symlink at /usr/bin/python to either +# /usr/bin/python2.3 or /usr/bin/python2.2. It will choose python2.3 over +# python2.2 if both exist. +# +# Alternatively, you can use this function: +# +# pkg_postinst() { +# alternatives_auto_makesym "/usr/bin/python" "/usr/bin/python[0-9].[0-9]" +# } +# +# This will use bash pathname expansion to fill a list of alternatives it can +# link to. It is probably more robust against version upgrades. You should +# consider using this unless you are want to do something special. + +# @ECLASS-VARIABLE: SOURCE +# @DEFAULT_UNSET +# @DESCRIPTION: +# The symlink to be created + +# @ECLASS-VARIABLE: ALTERNATIVES +# @DEFAULT_UNSET +# @DESCRIPTION: +# The list of alternatives + +# @FUNCTION: alternatives_auto_makesym +# @DESCRIPTION: +# automatic deduction based on a symlink and a regex mask +alternatives_auto_makesym() { + local SYMLINK REGEX ALT myregex + SYMLINK=$1 + REGEX=$2 + if [ "${REGEX:0:1}" != "/" ] + then + #not an absolute path: + #inherit the root directory of our main link path for our regex search + myregex="${SYMLINK%/*}/${REGEX}" + else + myregex=${REGEX} + fi + + # sort a space delimited string by converting it to a multiline list + # and then run sort -r over it. + # make sure we use ${ROOT} because otherwise stage-building will break + ALT="$(for i in $(echo ${ROOT}${myregex}); do echo ${i#${ROOT}}; done | sort -r)" + alternatives_makesym ${SYMLINK} ${ALT} +} + +alternatives_makesym() { + local ALTERNATIVES="" + local SYMLINK="" + local alt pref + + # usage: alternatives_makesym [alternative targets..] + SYMLINK=$1 + # this trick removes the trailing / from ${ROOT} + pref=$(echo ${ROOT} | sed 's:/$::') + shift + ALTERNATIVES=$@ + + # step through given alternatives from first to last + # and if one exists, link it and finish. + + for alt in ${ALTERNATIVES}; do + if [ -f "${pref}${alt}" ]; then + #are files in same directory? + if [ "${alt%/*}" = "${SYMLINK%/*}" ] + then + #yes; strip leading dirname from alt to create relative symlink + einfo "Linking ${alt} to ${pref}${SYMLINK} (relative)" + ln -sf ${alt##*/} ${pref}${SYMLINK} + else + #no; keep absolute path + einfo "Linking ${alt} to ${pref}${SYMLINK} (absolute)" + ln -sf ${pref}${alt} ${pref}${SYMLINK} + fi + break + fi + done + + # report any errors + if [ ! -L ${pref}${SYMLINK} ]; then + ewarn "Unable to establish ${pref}${SYMLINK} symlink" + else + # we need to check for either the target being in relative path form + # or absolute path form + if [ ! -f "`dirname ${pref}${SYMLINK}`/`readlink ${pref}${SYMLINK}`" -a \ + ! -f "`readlink ${pref}${SYMLINK}`" ]; then + ewarn "Removing dead symlink ${pref}${SYMLINK}" + rm -f ${pref}${SYMLINK} + fi + fi +} + +# @FUNCTION: alernatives-pkg_postinst +# @DESCRIPTION: +# The alternatives pkg_postinst, this function will be exported +alternatives_pkg_postinst() { + if [ -n "${ALTERNATIVES}" -a -n "${SOURCE}" ]; then + alternatives_makesym ${SOURCE} ${ALTERNATIVES} + fi +} + +# @FUNCTION: alternatives_pkg_postrm +# @DESCRIPTION: +# The alternatives pkg_postrm, this function will be exported +alternatives_pkg_postrm() { + if [ -n "${ALTERNATIVES}" -a -n "${SOURCE}" ]; then + alternatives_makesym ${SOURCE} ${ALTERNATIVES} + fi +} + +EXPORT_FUNCTIONS pkg_postinst pkg_postrm diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/ant-tasks.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/ant-tasks.eclass new file mode 100644 index 0000000000..7155cddd23 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/ant-tasks.eclass @@ -0,0 +1,198 @@ +# Eclass for building dev-java/ant-* packages +# +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Vlastimil Babka +# $Header: /var/cvsroot/gentoo-x86/eclass/ant-tasks.eclass,v 1.13 2012/06/01 12:19:42 sera Exp $ + +# we set ant-core dep ourselves, restricted +JAVA_ANT_DISABLE_ANT_CORE_DEP=true +# rewriting build.xml for are the testcases has no reason atm +JAVA_PKG_BSFIX_ALL=no +inherit versionator java-pkg-2 java-ant-2 + +EXPORT_FUNCTIONS src_unpack src_compile src_install + +# ----------------------------------------------------------------------------- +# @eclass-begin +# @eclass-shortdesc Eclass for building dev-java/ant-* packages +# @eclass-maintainer java@gentoo.org +# +# This eclass provides functionality and default ebuild variables for building +# dev-java/ant-* packages easily. +# +# ----------------------------------------------------------------------------- + +# ----------------------------------------------------------------------------- +# @variable-preinherit ANT_TASK_JDKVER +# @variable-default 1.4 +# +# Affects the >=virtual/jdk version set in DEPEND string. Defaults to 1.4, can +# be overriden from ebuild BEFORE inheriting this eclass. +# ----------------------------------------------------------------------------- +ANT_TASK_JDKVER=${ANT_TASK_JDKVER-1.4} + +# ----------------------------------------------------------------------------- +# @variable-preinherit ANT_TASK_JREVER +# @variable-default 1.4 +# +# Affects the >=virtual/jre version set in DEPEND string. Defaults to 1.4, can +# be overriden from ebuild BEFORE inheriting this eclass. +# ----------------------------------------------------------------------------- +ANT_TASK_JREVER=${ANT_TASK_JREVER-1.4} + +# ----------------------------------------------------------------------------- +# @variable-internal ANT_TASK_NAME +# @variable-default the rest of $PN after "ant-" +# +# The name of this ant task as recognized by ant's build.xml, derived from $PN. +# ----------------------------------------------------------------------------- +ANT_TASK_NAME="${PN#ant-}" + +# ----------------------------------------------------------------------------- +# @variable-preinherit ANT_TASK_DEPNAME +# @variable-default $ANT_TASK_NAME +# +# Specifies JAVA_PKG_NAME (PN{-SLOT} used with java-pkg_jar-from) of the package +# that this one depends on. Defaults to the name of ant task, ebuild can +# override it before inheriting this eclass. +# ----------------------------------------------------------------------------- +ANT_TASK_DEPNAME=${ANT_TASK_DEPNAME-${ANT_TASK_NAME}} + +# ----------------------------------------------------------------------------- +# @variable-preinherit ANT_TASK_DISABLE_VM_DEPS +# @variable-default unset +# +# If set, no JDK/JRE deps are added. +# ----------------------------------------------------------------------------- + +# ----------------------------------------------------------------------------- +# @variable-internal ANT_TASK_PV +# @variable-default Just the number in $PV without any beta/RC suffixes +# +# Version of ant-core this task is intended to register and thus load with. +# ----------------------------------------------------------------------------- +ANT_TASK_PV="${PV}" + +# special care for beta/RC releases +if [[ ${PV} == *beta2* ]]; then + MY_PV=${PV/_beta2/beta} + UPSTREAM_PREFIX="http://people.apache.org/dist/ant/v1.7.1beta2/src" + GENTOO_PREFIX="http://dev.gentoo.org/~caster/distfiles" + ANT_TASK_PV=$(get_version_component_range 1-3) +elif [[ ${PV} == *_rc* ]]; then + MY_PV=${PV/_rc/RC} + UPSTREAM_PREFIX="http://dev.gentoo.org/~caster/distfiles" + GENTOO_PREFIX="http://dev.gentoo.org/~caster/distfiles" + ANT_TASK_PV=$(get_version_component_range 1-3) +else + # default for final releases + MY_PV=${PV} + UPSTREAM_PREFIX="mirror://apache/ant/source" + case ${PV} in + 1.8.4) + GENTOO_PREFIX="http://dev.gentoo.org/~sera/distfiles" + ;; + *) + GENTOO_PREFIX="http://dev.gentoo.org/~caster/distfiles" + ;; + esac +fi + +# source/workdir name +MY_P="apache-ant-${MY_PV}" + +# ----------------------------------------------------------------------------- +# Default values for standard ebuild variables, can be overriden from ebuild. +# ----------------------------------------------------------------------------- +DESCRIPTION="Apache Ant's optional tasks depending on ${ANT_TASK_DEPNAME}" +HOMEPAGE="http://ant.apache.org/" +SRC_URI="${UPSTREAM_PREFIX}/${MY_P}-src.tar.bz2 + ${GENTOO_PREFIX}/ant-${PV}-gentoo.tar.bz2" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RDEPEND="~dev-java/ant-core-${PV}" +DEPEND="${RDEPEND}" + +if [[ -z "${ANT_TASK_DISABLE_VM_DEPS}" ]]; then + RDEPEND+=" >=virtual/jre-${ANT_TASK_JREVER}" + DEPEND+=" >=virtual/jdk-${ANT_TASK_JDKVER}" +fi + +# we need direct blockers with old ant-tasks for file collisions - bug #252324 +if version_is_at_least 1.7.1 ; then + DEPEND+=" !dev-java/ant-tasks" +fi + +# Would run the full ant test suite for every ant task +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +# ------------------------------------------------------------------------------ +# @eclass-src_unpack +# +# Is split into two parts, defaults to both of them ('all'). +# base: performs the unpack, build.xml replacement and symlinks ant.jar from +# ant-core +# jar-dep: symlinks the jar file(s) from dependency package +# ------------------------------------------------------------------------------ +ant-tasks_src_unpack() { + [[ -z "${1}" ]] && ant-tasks_src_unpack all + + while [[ -n "${1}" ]]; do + case ${1} in + base) + unpack ${A} + cd "${S}" + + # replace build.xml with our modified for split building + mv -f "${WORKDIR}"/build.xml . + + cd lib + # remove bundled xerces + rm -f *.jar + + # ant.jar to build against + java-pkg_jar-from --build-only ant-core ant.jar;; + jar-dep) + # get jar from the dependency package + if [[ -n "${ANT_TASK_DEPNAME}" ]]; then + java-pkg_jar-from ${ANT_TASK_DEPNAME} + fi;; + all) + ant-tasks_src_unpack base jar-dep;; + esac + shift + done + +} + +# ------------------------------------------------------------------------------ +# @eclass-src_compile +# +# Compiles the jar with installed ant-core. +# ------------------------------------------------------------------------------ +ant-tasks_src_compile() { + ANT_TASKS="none" eant -Dbuild.dep=${ANT_TASK_NAME} jar-dep +} + +# ------------------------------------------------------------------------------ +# @eclass-src_install +# +# Installs the jar and registers its presence for the ant launcher script. +# Version param ensures it won't get loaded (thus break) when ant-core is +# updated to newer version. +# ------------------------------------------------------------------------------ +ant-tasks_src_install() { + java-pkg_dojar build/lib/${PN}.jar + java-pkg_register-ant-task --version "${ANT_TASK_PV}" + + # create the compatibility symlink + if version_is_at_least 1.7.1_beta2; then + dodir /usr/share/ant/lib + dosym /usr/share/${PN}/lib/${PN}.jar /usr/share/ant/lib/${PN}.jar + fi +} diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/apache-2.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/apache-2.eclass new file mode 100644 index 0000000000..b4fc37be5c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/apache-2.eclass @@ -0,0 +1,584 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.29 2012/05/23 03:24:44 flameeyes Exp $ + +# @ECLASS: apache-2.eclass +# @MAINTAINER: +# apache-devs@gentoo.org +# @BLURB: Provides a common set of functions for apache-2.x ebuilds +# @DESCRIPTION: +# This eclass handles apache-2.x ebuild functions such as LoadModule generation +# and inter-module dependency checking. + +inherit autotools eutils flag-o-matic multilib ssl-cert + +# ============================================================================== +# INTERNAL VARIABLES +# ============================================================================== + +# @ECLASS-VARIABLE: GENTOO_PATCHNAME +# @DESCRIPTION: +# This internal variable contains the prefix for the patch tarball. +# Defaults to the full name and version (including revision) of the package. +# If you want to override this in an ebuild, use: +# ORIG_PR="(revision of Gentoo stuff you want)" +# GENTOO_PATCHNAME="gentoo-${PN}-${PV}${ORIG_PR:+-${ORIG_PR}}" +[[ -n "$GENTOO_PATCHNAME" ]] || GENTOO_PATCHNAME="gentoo-${PF}" + +# @ECLASS-VARIABLE: GENTOO_PATCHDIR +# @DESCRIPTION: +# This internal variable contains the working directory where patches and config +# files are located. +# Defaults to the patchset name appended to the working directory. +[[ -n "$GENTOO_PATCHDIR" ]] || GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}" + +# @VARIABLE: GENTOO_DEVELOPER +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains the name of the +# gentoo developer who created the patch tarball + +# @VARIABLE: GENTOO_PATCHSTAMP +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains the date the patch +# tarball was created at in YYYYMMDD format + +# @VARIABLE: GENTOO_PATCH_A +# @DESCRIPTION: +# This variable should contain the entire filename of patch tarball. +# Defaults to the name of the patchset, with a datestamp. +[[ -n "$GENTOO_PATCH_A" ]] || GENTOO_PATCH_A="${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2" + +SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 + http://dev.gentoo.org/~${GENTOO_DEVELOPER}/dist/apache/${GENTOO_PATCH_A}" + +# @VARIABLE: IUSE_MPMS_FORK +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains a list of forking +# (i.e. non-threaded) MPMs + +# @VARIABLE: IUSE_MPMS_THREAD +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains a list of threaded +# MPMs + +# @VARIABLE: IUSE_MODULES +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains a list of available +# built-in modules + +IUSE_MPMS="${IUSE_MPMS_FORK} ${IUSE_MPMS_THREAD}" +IUSE="${IUSE} debug doc ldap selinux ssl static suexec threads" + +for module in ${IUSE_MODULES} ; do + IUSE="${IUSE} apache2_modules_${module}" +done + +for mpm in ${IUSE_MPMS} ; do + IUSE="${IUSE} apache2_mpms_${mpm}" +done + +DEPEND="dev-lang/perl + =dev-libs/apr-1* + =dev-libs/apr-util-1*[ldap?] + dev-libs/libpcre + ldap? ( =net-nds/openldap-2* ) + selinux? ( sec-policy/selinux-apache ) + ssl? ( >=dev-libs/openssl-0.9.8f ) + !=www-servers/apache-1*" +RDEPEND="${DEPEND}" +PDEPEND="~app-admin/apache-tools-${PV}" + +S="${WORKDIR}/httpd-${PV}" + +# ============================================================================== +# INTERNAL FUNCTIONS +# ============================================================================== + +# @ECLASS-VARIABLE: MY_MPM +# @DESCRIPTION: +# This internal variable contains the selected MPM after a call to setup_mpm() + +# @FUNCTION: setup_mpm +# @DESCRIPTION: +# This internal function makes sure that only one of APACHE2_MPMS was selected +# or a default based on USE=threads is selected if APACHE2_MPMS is empty +setup_mpm() { + MY_MPM="" + for x in ${IUSE_MPMS} ; do + if use apache2_mpms_${x} ; then + if [[ -z "${MY_MPM}" ]] ; then + MY_MPM=${x} + elog + elog "Selected MPM: ${MY_MPM}" + elog + else + eerror "You have selected more then one mpm USE-flag." + eerror "Only one MPM is supported." + die "more then one mpm was specified" + fi + fi + done + + if [[ -z "${MY_MPM}" ]] ; then + if use threads ; then + MY_MPM=worker + elog + elog "Selected default threaded MPM: ${MY_MPM}" + elog + else + MY_MPM=prefork + elog + elog "Selected default MPM: ${MY_MPM}" + elog + fi + fi + + if has ${MY_MPM} ${IUSE_MPMS_THREAD} && ! use threads ; then + eerror "You have selected a threaded MPM but USE=threads is disabled" + die "invalid use flag combination" + fi + + if has ${MY_MPM} ${IUSE_MPMS_FORK} && use threads ; then + eerror "You have selected a non-threaded MPM but USE=threads is enabled" + die "invalid use flag combination" + fi +} + +# @VARIABLE: MODULE_CRITICAL +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains a space-separated +# list of modules critical for the default apache. A user may still +# disable these modules for custom minimal installation at their own risk. + +# @FUNCTION: check_module_critical +# @DESCRIPTION: +# This internal function warns the user about modules critical for the default +# apache configuration. +check_module_critical() { + local unsupported=0 + + for m in ${MODULE_CRITICAL} ; do + if ! has ${m} ${MY_MODS} ; then + ewarn "Module '${m}' is required in the default apache configuration." + unsupported=1 + fi + done + + if [[ ${unsupported} -ne 0 ]] ; then + ewarn + ewarn "You have disabled one or more required modules" + ewarn "for the default apache configuration." + ewarn "Although this is not an error, please be" + ewarn "aware that this setup is UNSUPPORTED." + ewarn + ebeep 10 + fi +} + +# @VARIABLE: MODULE_DEPENDS +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains a space-separated +# list of dependency tokens each with a module and the module it depends on +# separated by a colon + +# @FUNCTION: check_module_depends +# @DESCRIPTION: +# This internal function makes sure that all inter-module dependencies are +# satisfied with the current module selection +check_module_depends() { + local err=0 + + for m in ${MY_MODS} ; do + for dep in ${MODULE_DEPENDS} ; do + if [[ "${m}" == "${dep%:*}" ]] ; then + if ! use apache2_modules_${dep#*:} ; then + eerror "Module '${m}' depends on '${dep#*:}'" + err=1 + fi + fi + done + done + + if [[ ${err} -ne 0 ]] ; then + die "invalid use flag combination" + fi +} + +# @ECLASS-VARIABLE: MY_CONF +# @DESCRIPTION: +# This internal variable contains the econf options for the current module +# selection after a call to setup_modules() + +# @ECLASS-VARIABLE: MY_MODS +# @DESCRIPTION: +# This internal variable contains a sorted, space separated list of currently +# selected modules after a call to setup_modules() + +# @FUNCTION: setup_modules +# @DESCRIPTION: +# This internal function selects all built-in modules based on USE flags and +# APACHE2_MODULES USE_EXPAND flags +setup_modules() { + local mod_type= + + if use static ; then + mod_type="static" + else + mod_type="shared" + fi + + MY_CONF="--enable-so=static" + + if use ldap ; then + MY_CONF="${MY_CONF} --enable-authnz_ldap=${mod_type} --enable-ldap=${mod_type}" + MY_MODS="${MY_MODS} ldap authnz_ldap" + else + MY_CONF="${MY_CONF} --disable-authnz_ldap --disable-ldap" + fi + + if use ssl ; then + MY_CONF="${MY_CONF} --with-ssl=/usr --enable-ssl=${mod_type}" + MY_MODS="${MY_MODS} ssl" + else + MY_CONF="${MY_CONF} --without-ssl --disable-ssl" + fi + + if use suexec ; then + elog "You can manipulate several configure options of suexec" + elog "through the following environment variables:" + elog + elog " SUEXEC_SAFEPATH: Default PATH for suexec (default: /usr/local/bin:/usr/bin:/bin)" + elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: /var/log/apache2/suexec_log)" + elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)" + elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: /var/www)" + elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)" + elog " SUEXEC_MINGID: Minimum GID, which is allowed to run scripts via suexec (default: 100)" + elog " SUEXEC_USERDIR: User subdirectories (like /home/user/html) (default: public_html)" + elog " SUEXEC_UMASK: Umask for the suexec process (default: 077)" + elog + + MY_CONF="${MY_CONF} --with-suexec-safepath=${SUEXEC_SAFEPATH:-/usr/local/bin:/usr/bin:/bin}" + MY_CONF="${MY_CONF} --with-suexec-logfile=${SUEXEC_LOGFILE:-/var/log/apache2/suexec_log}" + MY_CONF="${MY_CONF} --with-suexec-bin=/usr/sbin/suexec" + MY_CONF="${MY_CONF} --with-suexec-userdir=${SUEXEC_USERDIR:-public_html}" + MY_CONF="${MY_CONF} --with-suexec-caller=${SUEXEC_CALLER:-apache}" + MY_CONF="${MY_CONF} --with-suexec-docroot=${SUEXEC_DOCROOT:-/var/www}" + MY_CONF="${MY_CONF} --with-suexec-uidmin=${SUEXEC_MINUID:-1000}" + MY_CONF="${MY_CONF} --with-suexec-gidmin=${SUEXEC_MINGID:-100}" + MY_CONF="${MY_CONF} --with-suexec-umask=${SUEXEC_UMASK:-077}" + MY_CONF="${MY_CONF} --enable-suexec=${mod_type}" + MY_MODS="${MY_MODS} suexec" + else + MY_CONF="${MY_CONF} --disable-suexec" + fi + + for x in ${IUSE_MODULES} ; do + if use apache2_modules_${x} ; then + MY_CONF="${MY_CONF} --enable-${x}=${mod_type}" + MY_MODS="${MY_MODS} ${x}" + else + MY_CONF="${MY_CONF} --disable-${x}" + fi + done + + # sort and uniquify MY_MODS + MY_MODS=$(echo ${MY_MODS} | tr ' ' '\n' | sort -u) + check_module_depends + check_module_critical +} + +# @VARIABLE: MODULE_DEFINES +# @DESCRIPTION: +# This variable needs to be set in the ebuild and contains a space-separated +# list of tokens each mapping a module to a runtime define which can be +# specified in APACHE2_OPTS in /etc/conf.d/apache2 to enable this particular +# module. + +# @FUNCTION: generate_load_module +# @DESCRIPTION: +# This internal function generates the LoadModule lines for httpd.conf based on +# the current module selection and MODULE_DEFINES +generate_load_module() { + local endit=0 mod_lines= mod_dir="${D}/usr/$(get_libdir)/apache2/modules" + + if use static; then + sed -i -e "/%%LOAD_MODULE%%/d" \ + "${GENTOO_PATCHDIR}"/conf/httpd.conf + return + fi + + for m in ${MY_MODS} ; do + if [[ -e "${mod_dir}/mod_${m}.so" ]] ; then + for def in ${MODULE_DEFINES} ; do + if [[ "${m}" == "${def%:*}" ]] ; then + mod_lines="${mod_lines}\n" + endit=1 + fi + done + + mod_lines="${mod_lines}\nLoadModule ${m}_module modules/mod_${m}.so" + + if [[ ${endit} -ne 0 ]] ; then + mod_lines="${mod_lines}\n" + endit=0 + fi + fi + done + + sed -i -e "s:%%LOAD_MODULE%%:${mod_lines}:" \ + "${GENTOO_PATCHDIR}"/conf/httpd.conf +} + +# @FUNCTION: check_upgrade +# @DESCRIPTION: +# This internal function checks if the previous configuration file for built-in +# modules exists in ROOT and prevents upgrade in this case. Users are supposed +# to convert this file to the new APACHE2_MODULES USE_EXPAND variable and remove +# it afterwards. +check_upgrade() { + if [[ -e "${ROOT}"etc/apache2/apache2-builtin-mods ]]; then + eerror "The previous configuration file for built-in modules" + eerror "(${ROOT}etc/apache2/apache2-builtin-mods) exists on your" + eerror "system." + eerror + eerror "Please read http://www.gentoo.org/doc/en/apache-upgrading.xml" + eerror "for detailed information how to convert this file to the new" + eerror "APACHE2_MODULES USE_EXPAND variable." + eerror + die "upgrade not possible with existing ${ROOT}etc/apache2/apache2-builtin-mods" + fi +} + +# ============================================================================== +# EXPORTED FUNCTIONS +# ============================================================================== + +# @FUNCTION: apache-2_pkg_setup +# @DESCRIPTION: +# This function selects built-in modules, the MPM and other configure options, +# creates the apache user and group and informs about CONFIG_SYSVIPC being +# needed (we don't depend on kernel sources and therefore cannot check). +apache-2_pkg_setup() { + check_upgrade + + # setup apache user and group + enewgroup apache 81 + enewuser apache 81 -1 /var/www apache + + setup_mpm + setup_modules + + if use debug; then + MY_CONF="${MY_CONF} --enable-maintainer-mode --enable-exception-hook" + fi + + elog "Please note that you need SysV IPC support in your kernel." + elog "Make sure CONFIG_SYSVIPC=y is set." + elog + + if use userland_BSD; then + elog "On BSD systems you need to add the following line to /boot/loader.conf:" + elog " accf_http_load=\"YES\"" + elog + fi +} + +# @FUNCTION: apache-2_src_prepare +# @DESCRIPTION: +# This function applies patches, configures a custom file-system layout and +# rebuilds the configure scripts. +apache-2_src_prepare() { + # 03_all_gentoo-apache-tools.patch injects -Wl,-z,now, which is not a good + # idea for everyone + case ${CHOST} in + *-linux-gnu|*-solaris*|*-freebsd*) + # do nothing, these use GNU binutils + : + ;; + *-darwin*) + sed -i -e 's/-Wl,-z,now/-Wl,-bind_at_load/g' \ + "${GENTOO_PATCHDIR}"/patches/03_all_gentoo_apache-tools.patch + ;; + *) + # patch it out to be like upstream + sed -i -e 's/-Wl,-z,now//g' \ + "${GENTOO_PATCHDIR}"/patches/03_all_gentoo_apache-tools.patch + ;; + esac + + # Use correct multilib libdir in gentoo patches + sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \ + "${GENTOO_PATCHDIR}"/{conf/httpd.conf,init/*,patches/config.layout} \ + || die "libdir sed failed" + + epatch "${GENTOO_PATCHDIR}"/patches/*.patch + + # setup the filesystem layout config + cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \ + die "Failed preparing config.layout!" + sed -i -e "s:version:${PF}:g" "${S}"/config.layout + + # apache2.8 instead of httpd.8 (bug #194828) + mv docs/man/{httpd,apache2}.8 + sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in + + # patched-in MPMs need the build environment rebuilt + sed -i -e '/sinclude/d' configure.in + AT_M4DIR=build eautoreconf +} + +# @FUNCTION: apache-2_src_configure +# @DESCRIPTION: +# This function adds compiler flags and runs econf and emake based on MY_MPM and +# MY_CONF +apache-2_src_configure() { + # Instead of filtering --as-needed (bug #128505), append --no-as-needed + # Thanks to Harald van Dijk + append-ldflags $(no-as-needed) + + # peruser MPM debugging with -X is nearly impossible + if has peruser ${IUSE_MPMS} && use apache2_mpms_peruser ; then + use debug && append-flags -DMPM_PERUSER_DEBUG + fi + + # econf overwrites the stuff from config.layout, so we have to put them into + # our myconf line too + econf \ + --includedir=/usr/include/apache2 \ + --libexecdir=/usr/$(get_libdir)/apache2/modules \ + --datadir=/var/www/localhost \ + --sysconfdir=/etc/apache2 \ + --localstatedir=/var \ + --with-mpm=${MY_MPM} \ + --with-apr=/usr \ + --with-apr-util=/usr \ + --with-pcre=/usr \ + --with-z=/usr \ + --with-port=80 \ + --with-program-name=apache2 \ + --enable-layout=Gentoo \ + ${MY_CONF} || die "econf failed!" + + sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h +} + +# @FUNCTION: apache-2_src_install +# @DESCRIPTION: +# This function runs `emake install' and generates, installs and adapts the gentoo +# specific configuration files found in the tarball +apache-2_src_install() { + emake DESTDIR="${D}" MKINSTALLDIRS="mkdir -p" install || die "make install failed" + + # install our configuration files + keepdir /etc/apache2/vhosts.d + keepdir /etc/apache2/modules.d + + generate_load_module + insinto /etc/apache2 + doins -r "${GENTOO_PATCHDIR}"/conf/* + use apache2_modules_mime_magic && doins docs/conf/magic + + insinto /etc/logrotate.d + newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2 + + # generate a sane default APACHE2_OPTS + APACHE2_OPTS="-D DEFAULT_VHOST -D INFO" + use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL" + use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST" + use suexec && APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC" + if has negotiation ${APACHE2_MODULES} && use apache2_modules_negotiation; then + APACHE2_OPTS="${APACHE2_OPTS} -D LANGUAGE" + fi + + sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \ + "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed" + + newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2 + newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 + + # install apache2ctl wrapper for our init script if available + if test -e "${GENTOO_PATCHDIR}"/scripts/apache2ctl; then + exeinto /usr/sbin + doexe "${GENTOO_PATCHDIR}"/scripts/apache2ctl + else + dosym /etc/init.d/apache2 /usr/sbin/apache2ctl + fi + + # provide legacy symlink for apxs, bug 177697 + dosym /usr/sbin/apxs /usr/sbin/apxs2 + + # install some documentation + dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING + dodoc "${GENTOO_PATCHDIR}"/docs/* + + # drop in a convenient link to the manual + if use doc ; then + sed -i -e "s:VERSION:${PVR}:" "${D}/etc/apache2/modules.d/00_apache_manual.conf" + else + rm -f "${D}/etc/apache2/modules.d/00_apache_manual.conf" + rm -Rf "${D}/usr/share/doc/${PF}/manual" + fi + + # the default icons and error pages get stored in + # /usr/share/apache2/{error,icons} + dodir /usr/share/apache2 + mv -f "${D}/var/www/localhost/error" "${D}/usr/share/apache2/error" + mv -f "${D}/var/www/localhost/icons" "${D}/usr/share/apache2/icons" + rm -rf "${D}/var/www/localhost/" + eend $? + + # set some sane permissions for suexec + if use suexec ; then + fowners 0:${SUEXEC_CALLER:-apache} /usr/sbin/suexec + fperms 4710 /usr/sbin/suexec + # provide legacy symlink for suexec, bug 177697 + dosym /usr/sbin/suexec /usr/sbin/suexec2 + fi + + # empty dirs + for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do + keepdir ${i} + fowners apache:apache ${i} + fperms 0750 ${i} + done +} + +# @FUNCTION: apache-2_pkg_postinst +# @DESCRIPTION: +# This function creates test certificates if SSL is enabled and installs the +# default index.html to /var/www/localhost if it does not exist. We do this here +# because the default webroot is a copy of the files that exist elsewhere and we +# don't want them to be managed/removed by portage when apache is upgraded. +apache-2_pkg_postinst() { + # fix previously wrong set permissions Bug#398899 + einfo "Sanitizing directory permissions ..." + for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do + chmod 0750 ${i} + done + + if use ssl && [[ ! -e "${ROOT}/etc/ssl/apache2/server.pem" ]]; then + SSL_ORGANIZATION="${SSL_ORGANIZATION:-Apache HTTP Server}" + install_cert /etc/ssl/apache2/server + ewarn + ewarn "The location of SSL certificates has changed. If you are" + ewarn "upgrading from ${CATEGORY}/${PN}-2.2.13 or earlier (or remerged" + ewarn "*any* apache version), you might want to move your old" + ewarn "certificates from /etc/apache2/ssl/ to /etc/ssl/apache2/ and" + ewarn "update your config files." + ewarn + fi + + if [[ ! -e "${ROOT}/var/www/localhost" ]] ; then + mkdir -p "${ROOT}/var/www/localhost/htdocs" + echo "

It works!

" > "${ROOT}/var/www/localhost/htdocs/index.html" + fi + + echo + elog "Attention: cgi and cgid modules are now handled via APACHE2_MODULES flags" + elog "in /etc/make.conf. Make sure to enable those in order to compile them." + elog "In general, you should use 'cgid' with threaded MPMs and 'cgi' otherwise." + echo + +} + +EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_install pkg_postinst diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/apache-module.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/apache-module.eclass new file mode 100644 index 0000000000..c4532d43cd --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/apache-module.eclass @@ -0,0 +1,237 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.25 2011/12/27 17:55:12 fauli Exp $ + +# @ECLASS: apache-module.eclass +# @MAINTAINER: +# apache-devs@gentoo.org +# @BLURB: Provides a common set of functions for apache modules +# @DESCRIPTION: +# This eclass handles apache modules in a sane way. +# +# To make use of this eclass simply call one of the need/want_apache functions +# described in depend.apache.eclass. Make sure you use the need/want_apache call +# after you have defined DEPEND and RDEPEND. Also note that you can not rely on +# the automatic RDEPEND=DEPEND that portage does if you use this eclass. +# +# See Bug 107127 for more information. +# +# @EXAMPLE: +# +# Here is a simple example of an ebuild for mod_foo: +# +# @CODE +# APACHE2_MOD_CONF="42_mod_foo" +# APACHE2_MOD_DEFINE="FOO" +# need_apache2 +# @CODE +# +# A more complicated example for a module with non-standard locations: +# +# @CODE +# APXS2_S="${S}/apache22/src" +# APACHE2_MOD_FILE="${APXS2_S}/${PN}.so" +# APACHE2_MOD_CONF="42_${PN}" +# APACHE2_MOD_DEFINE="FOO" +# DOCFILES="docs/*.html" +# need_apache2_2 +# @CODE +# +# A basic module configuration which just loads the module into apache: +# +# @CODE +# +# LoadModule foo_module modules/mod_foo.so +# +# @CODE + +inherit depend.apache + +# ============================================================================== +# PUBLIC VARIABLES +# ============================================================================== + +# @VARIABLE: APXS2_S +# @DESCRIPTION: +# Path to temporary build directory. (Defaults to `${S}/src' if it exists, +# `${S}' otherwise) + +# @VARIABLE: APXS2_ARGS +# @DESCRIPTION: +# Arguments to pass to the apxs tool. (Defaults to `-c ${PN}.c') + +# @VARIABLE: APACHE2_EXECFILES +# @DESCRIPTION: +# List of files that will be installed into ${APACHE_MODULE_DIR} beside +# ${APACHE2_MOD_FILE}. In addition, this function also sets the executable +# permission on those files. + +# @VARIABLE: APACHE2_MOD_CONF +# @DESCRIPTION: +# Module configuration file installed by src_install (minus the .conf suffix and +# relative to ${FILESDIR}). + +# @VARIABLE: APACHE2_MOD_DEFINE +# @DESCRIPTION: +# Name of define (e.g. FOO) to use in conditional loading of the installed +# module/its config file, multiple defines should be space separated. + +# @VARIABLE: APACHE2_MOD_FILE +# @DESCRIPTION: +# Name of the module that src_install installs minus the .so suffix. (Defaults +# to `${APXS2_S}/.libs/${PN}.so') + +# @VARIABLE: APACHE2_VHOST_CONF +# @DESCRIPTION: +# Virtual host configuration file installed by src_install (minus the .conf +# suffix and relative to ${FILESDIR}). + +# @VARIABLE: DOCFILES +# @DESCRIPTION: +# If the exported src_install() is being used, and ${DOCFILES} is non-zero, some +# sed-fu is applied to split out html documentation (if any) from normal +# documentation, and dodoc'd or dohtml'd. + +# ============================================================================== +# INTERNAL FUNCTIONS +# ============================================================================== + +# Internal function to construct the default ${APXS2_S} path if required. +apache_cd_dir() { + debug-print-function $FUNCNAME $* + + local CD_DIR="${APXS2_S}" + + if [[ -z "${CD_DIR}" ]] ; then + if [[ -d "${S}/src" ]] ; then + CD_DIR="${S}/src" + else + CD_DIR="${S}" + fi + fi + + debug-print $FUNCNAME "CD_DIR=${CD_DIR}" + echo "${CD_DIR}" +} + +# Internal function to construct the default ${APACHE2_MOD_FILE} if required. +apache_mod_file() { + debug-print-function $FUNCNAME $* + + local MOD_FILE="${APACHE2_MOD_FILE:-$(apache_cd_dir)/.libs/${PN}.so}" + + debug-print $FUNCNAME "MOD_FILE=${MOD_FILE}" + echo "${MOD_FILE}" +} + +# Internal function for picking out html files from ${DOCFILES}. It takes an +# optional first argument `html'; if the first argument is equals `html', only +# html files are returned, otherwise normal (non-html) docs are returned. +apache_doc_magic() { + debug-print-function $FUNCNAME $* + + local DOCS= + + if [[ -n "${DOCFILES}" ]] ; then + if [[ "x$1" == "xhtml" ]] ; then + DOCS="`echo ${DOCFILES} | sed -e 's/ /\n/g' | sed -e '/^[^ ]*.html$/ !d'`" + else + DOCS="`echo ${DOCFILES} | sed 's, *[^ ]*\+.html, ,g'`" + fi + fi + + debug-print $FUNCNAME "DOCS=${DOCS}" + echo "${DOCS}" +} + +# ============================================================================== +# EXPORTED FUNCTIONS +# ============================================================================== + +# @FUNCTION: apache-module_src_compile +# @DESCRIPTION: +# The default action is to call ${APXS} with the value of ${APXS2_ARGS}. If a +# module requires a different build setup than this, use ${APXS} in your own +# src_compile routine. +apache-module_src_compile() { + debug-print-function $FUNCNAME $* + + local CD_DIR=$(apache_cd_dir) + cd "${CD_DIR}" || die "cd ${CD_DIR} failed" + + APXS2_ARGS="${APXS2_ARGS:--c ${PN}.c}" + ${APXS} ${APXS2_ARGS} || die "${APXS} ${APXS2_ARGS} failed" +} + +# @FUNCTION: apache-module_src_install +# @DESCRIPTION: +# This installs the files into apache's directories. The module is installed +# from a directory chosen as above (apache_cd_dir). In addition, this function +# can also set the executable permission on files listed in +# ${APACHE2_EXECFILES}. The configuration file name is listed in +# ${APACHE2_MOD_CONF} without the .conf extensions, so if you configuration is +# 55_mod_foo.conf, APACHE2_MOD_CONF would be 55_mod_foo. ${DOCFILES} contains +# the list of files you want filed as documentation. +apache-module_src_install() { + debug-print-function $FUNCNAME $* + + local CD_DIR=$(apache_cd_dir) + cd "${CD_DIR}" || die "cd ${CD_DIR} failed" + + local MOD_FILE=$(apache_mod_file) + + exeinto "${APACHE_MODULESDIR}" + doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found" + [[ -n "${APACHE2_EXECFILES}" ]] && doexe ${APACHE2_EXECFILES} + + if [[ -n "${APACHE2_MOD_CONF}" ]] ; then + insinto "${APACHE_MODULES_CONFDIR}" + set -- ${APACHE2_MOD_CONF} + newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf" \ + || die "internal ebuild error: '${FILESDIR}/${1}.conf' not found" + fi + + if [[ -n "${APACHE2_VHOST_CONF}" ]] ; then + insinto "${APACHE_VHOSTS_CONFDIR}" + set -- ${APACHE2_VHOST_CONF} + newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf " \ + || die "internal ebuild error: '${FILESDIR}/${1}.conf' not found" + fi + + cd "${S}" + + if [[ -n "${DOCFILES}" ]] ; then + local OTHER_DOCS=$(apache_doc_magic) + local HTML_DOCS=$(apache_doc_magic html) + + [[ -n "${OTHER_DOCS}" ]] && dodoc ${OTHER_DOCS} + [[ -n "${HTML_DOCS}" ]] && dohtml ${HTML_DOCS} + fi +} + +# @FUNCTION: apache-module_pkg_postinst +# @DESCRIPTION: +# This prints out information about the installed module and how to enable it. +apache-module_pkg_postinst() { + debug-print-function $FUNCNAME $* + + if [[ -n "${APACHE2_MOD_DEFINE}" ]] ; then + local my_opts="-D ${APACHE2_MOD_DEFINE// / -D }" + + einfo + einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache2 file and" + einfo "add '${my_opts}' to APACHE2_OPTS." + einfo + fi + + if [[ -n "${APACHE2_MOD_CONF}" ]] ; then + set -- ${APACHE2_MOD_CONF} + einfo + einfo "Configuration file installed as" + einfo " ${APACHE_MODULES_CONFDIR}/$(basename ${2:-$1}).conf" + einfo "You may want to edit it before turning the module on in /etc/conf.d/apache2" + einfo + fi +} + +EXPORT_FUNCTIONS src_compile src_install pkg_postinst diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/aspell-dict.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/aspell-dict.eclass new file mode 100644 index 0000000000..60f6e1e42d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/aspell-dict.eclass @@ -0,0 +1,66 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/aspell-dict.eclass,v 1.43 2011/08/22 04:46:31 vapier Exp $ + +# @ECLASS: aspell-dict.eclass +# @MAINTAINER: +# app-dicts@gentoo.org +# @AUTHOR: +# Original author: Seemant Kulleen +# @BLURB: An eclass to streamline the construction of ebuilds for new aspell dicts +# @DESCRIPTION: +# The aspell-dict eclass is designed to streamline the construction of +# ebuilds for the new aspell dictionaries (from gnu.org) which support +# aspell-0.50. Support for aspell-0.60 has been added by Sergey Ulanov. + +# @ECLASS-VARIABLE: ASPELL_LANG +# @REQUIRED +# @DESCRIPTION: +# Which language is the dictionary for? It's used for the DESCRIPTION of the +# package. + +# @ECLASS-VARIABLE: ASPOSTFIX +# @REQUIRED +# @DESCRIPTION: +# What major version of aspell is this dictionary for? + +EXPORT_FUNCTIONS src_compile src_install + +#MY_P=${PN}-${PV%.*}-${PV#*.*.} +MY_P=${P%.*}-${PV##*.} +MY_P=aspell${ASPOSTFIX}-${MY_P/aspell-/} +SPELLANG=${PN/aspell-/} +S="${WORKDIR}/${MY_P}" +DESCRIPTION="${ASPELL_LANG} language dictionary for aspell" +HOMEPAGE="http://aspell.net" +SRC_URI="mirror://gnu/aspell/dict/${SPELLANG}/${MY_P}.tar.bz2" + +IUSE="" +SLOT="0" + +if [ x${ASPOSTFIX} = x6 ] ; then + RDEPEND=">=app-text/aspell-0.60" + DEPEND="${RDEPEND}" +else + RDEPEND=">=app-text/aspell-0.50" + DEPEND="${RDEPEND}" +fi + +# @FUNCTION: aspell-dict_src_compile +# @DESCRIPTION: +# The aspell-dict src_compile function which is exported. +aspell-dict_src_compile() { + ./configure || die + emake || die +} + +# @FUNCTION: aspell-dict_src_install +# @DESCRIPTION: +# The aspell-dict src_install function which is exported. +aspell-dict_src_install() { + make DESTDIR="${D}" install || die + + for doc in README info ; do + [ -s "$doc" ] && dodoc $doc + done +} diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/autotools-multilib.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/autotools-multilib.eclass new file mode 100644 index 0000000000..97abfe65e0 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/autotools-multilib.eclass @@ -0,0 +1,84 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v 1.8 2013/02/01 21:39:50 mgorny Exp $ + +# @ECLASS: autotools-multilib.eclass +# @MAINTAINER: +# Michał Górny +# @BLURB: autotools-utils wrapper for multilib builds +# @DESCRIPTION: +# The autotools-multilib.eclass is an autotools-utils.eclass(5) wrapper +# introducing support for building for more than one ABI (multilib). +# +# Inheriting this eclass sets IUSE=multilib and exports autotools-utils +# phase function wrappers which build the package for each supported ABI +# if the flag is enabled. Otherwise, it works like regular +# autotools-utils. +# +# Note that the multilib support requires out-of-source builds to be +# enabled. Thus, it is impossible to use AUTOTOOLS_IN_SOURCE_BUILD with +# it. + +# EAPI=5 is required for meaningful MULTILIB_USEDEP. +case ${EAPI:-0} in + 5) ;; + *) die "EAPI=${EAPI} is not supported" ;; +esac + +if [[ ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then + die "${ECLASS}: multilib support requires out-of-source builds." +fi + +inherit autotools-utils multilib-build + +EXPORT_FUNCTIONS src_configure src_compile src_test src_install + +autotools-multilib_src_configure() { + multilib_parallel_foreach_abi autotools-utils_src_configure +} + +autotools-multilib_src_compile() { + multilib_foreach_abi autotools-utils_src_compile +} + +autotools-multilib_src_test() { + multilib_foreach_abi autotools-utils_src_test +} + +autotools-multilib_src_install() { + autotools-multilib_secure_install() { + autotools-utils_src_install + + # Make sure all headers are the same for each ABI. + autotools-multilib_cksum() { + find "${ED}"usr/include -type f \ + -exec cksum {} + | sort -k2 + } + + local cksum=$(autotools-multilib_cksum) + local cksum_file=${T}/.autotools-multilib_cksum + + if [[ -f ${cksum_file} ]]; then + local cksum_prev=$(< "${cksum_file}") + + if [[ ${cksum} != ${cksum_prev} ]]; then + echo "${cksum}" > "${cksum_file}.new" + + eerror "Header files have changed between ABIs." + + if type -p diff &>/dev/null; then + eerror "$(diff -du "${cksum_file}" "${cksum_file}.new")" + else + eerror "Old checksums in: ${cksum_file}" + eerror "New checksums in: ${cksum_file}.new" + fi + + die "Header checksum mismatch, aborting." + fi + else + echo "${cksum}" > "${cksum_file}" + fi + } + + multilib_foreach_abi autotools-multilib_secure_install +} diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/autotools-utils.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/autotools-utils.eclass new file mode 100644 index 0000000000..c952de5ae6 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/autotools-utils.eclass @@ -0,0 +1,525 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.61 2012/12/14 08:40:18 mgorny Exp $ + +# @ECLASS: autotools-utils.eclass +# @MAINTAINER: +# Maciej Mrozowski +# Michał Górny +# @BLURB: common ebuild functions for autotools-based packages +# @DESCRIPTION: +# autotools-utils.eclass is autotools.eclass(5) and base.eclass(5) wrapper +# providing all inherited features along with econf arguments as Bash array, +# out of source build with overridable build dir location, static archives +# handling, libtool files removal. +# +# Please note that autotools-utils does not support mixing of its phase +# functions with regular econf/emake calls. If necessary, please call +# autotools-utils_src_compile instead of the latter. +# +# @EXAMPLE: +# Typical ebuild using autotools-utils.eclass: +# +# @CODE +# EAPI="2" +# +# inherit autotools-utils +# +# DESCRIPTION="Foo bar application" +# HOMEPAGE="http://example.org/foo/" +# SRC_URI="mirror://sourceforge/foo/${P}.tar.bz2" +# +# LICENSE="LGPL-2.1" +# KEYWORDS="" +# SLOT="0" +# IUSE="debug doc examples qt4 static-libs tiff" +# +# CDEPEND=" +# media-libs/libpng:0 +# qt4? ( +# x11-libs/qt-core:4 +# x11-libs/qt-gui:4 +# ) +# tiff? ( media-libs/tiff:0 ) +# " +# RDEPEND="${CDEPEND} +# !media-gfx/bar +# " +# DEPEND="${CDEPEND} +# doc? ( app-doc/doxygen ) +# " +# +# # bug 123456 +# AUTOTOOLS_IN_SOURCE_BUILD=1 +# +# DOCS=(AUTHORS ChangeLog README "Read me.txt" TODO) +# +# PATCHES=( +# "${FILESDIR}/${P}-gcc44.patch" # bug 123458 +# "${FILESDIR}/${P}-as-needed.patch" +# "${FILESDIR}/${P}-unbundle_libpng.patch" +# ) +# +# src_configure() { +# local myeconfargs=( +# $(use_enable debug) +# $(use_with qt4) +# $(use_enable threads multithreading) +# $(use_with tiff) +# ) +# autotools-utils_src_configure +# } +# +# src_compile() { +# autotools-utils_src_compile +# use doc && autotools-utils_src_compile docs +# } +# +# src_install() { +# use doc && HTML_DOCS=("${BUILD_DIR}/apidocs/html/") +# autotools-utils_src_install +# if use examples; then +# dobin "${BUILD_DIR}"/foo_example{1,2,3} \\ +# || die 'dobin examples failed' +# fi +# } +# +# @CODE + +# Keep variable names synced with cmake-utils and the other way around! + +case ${EAPI:-0} in + 2|3|4|5) ;; + *) die "EAPI=${EAPI} is not supported" ;; +esac + +# @ECLASS-VARIABLE: AUTOTOOLS_AUTORECONF +# @DEFAULT_UNSET +# @DESCRIPTION: +# Set to a non-empty value in order to enable running autoreconf +# in src_prepare() and adding autotools dependencies. +# +# This is usually necessary when using live sources or applying patches +# modifying configure.ac or Makefile.am files. Note that in the latter case +# setting this variable is obligatory even though the eclass will work without +# it (to add the necessary dependencies). +# +# The eclass will try to determine the correct autotools to run including a few +# external tools: gettext, glib-gettext, intltool, gtk-doc, gnome-doc-prepare. +# If your tool is not supported, please open a bug and we'll add support for it. +# +# Note that dependencies are added for autoconf, automake and libtool only. +# If your package needs one of the external tools listed above, you need to add +# appropriate packages to DEPEND yourself. +[[ ${AUTOTOOLS_AUTORECONF} ]] || : ${AUTOTOOLS_AUTO_DEPEND:=no} + +inherit autotools eutils libtool + +EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test + +# @ECLASS-VARIABLE: BUILD_DIR +# @DEFAULT_UNSET +# @DESCRIPTION: +# Build directory, location where all autotools generated files should be +# placed. For out of source builds it defaults to ${WORKDIR}/${P}_build. +# +# This variable has been called AUTOTOOLS_BUILD_DIR formerly. +# It is set under that name for compatibility. + +# @ECLASS-VARIABLE: AUTOTOOLS_IN_SOURCE_BUILD +# @DEFAULT_UNSET +# @DESCRIPTION: +# Set to enable in-source build. + +# @ECLASS-VARIABLE: ECONF_SOURCE +# @DEFAULT_UNSET +# @DESCRIPTION: +# Specify location of autotools' configure script. By default it uses ${S}. + +# @ECLASS-VARIABLE: myeconfargs +# @DEFAULT_UNSET +# @DESCRIPTION: +# Optional econf arguments as Bash array. Should be defined before calling src_configure. +# @CODE +# src_configure() { +# local myeconfargs=( +# --disable-readline +# --with-confdir="/etc/nasty foo confdir/" +# $(use_enable debug cnddebug) +# $(use_enable threads multithreading) +# ) +# autotools-utils_src_configure +# } +# @CODE + +# @ECLASS-VARIABLE: DOCS +# @DEFAULT_UNSET +# @DESCRIPTION: +# Array containing documents passed to dodoc command. +# +# In EAPIs 4+, can list directories as well. +# +# Example: +# @CODE +# DOCS=( NEWS README ) +# @CODE + +# @ECLASS-VARIABLE: HTML_DOCS +# @DEFAULT_UNSET +# @DESCRIPTION: +# Array containing documents passed to dohtml command. +# +# Example: +# @CODE +# HTML_DOCS=( doc/html/ ) +# @CODE + +# @ECLASS-VARIABLE: PATCHES +# @DEFAULT_UNSET +# @DESCRIPTION: +# PATCHES array variable containing all various patches to be applied. +# +# Example: +# @CODE +# PATCHES=( "${FILESDIR}"/${P}-mypatch.patch ) +# @CODE + +# Determine using IN or OUT source build +_check_build_dir() { + : ${ECONF_SOURCE:=${S}} + if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then + BUILD_DIR="${ECONF_SOURCE}" + else + # Respect both the old variable and the new one, depending + # on which one was set by the ebuild. + if [[ ! ${BUILD_DIR} && ${AUTOTOOLS_BUILD_DIR} ]]; then + eqawarn "The AUTOTOOLS_BUILD_DIR variable has been renamed to BUILD_DIR." + eqawarn "Please migrate the ebuild to use the new one." + + # In the next call, both variables will be set already + # and we'd have to know which one takes precedence. + _RESPECT_AUTOTOOLS_BUILD_DIR=1 + fi + + if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then + BUILD_DIR=${AUTOTOOLS_BUILD_DIR:-${WORKDIR}/${P}_build} + else + : ${BUILD_DIR:=${WORKDIR}/${P}_build} + fi + fi + + # Backwards compatibility for getting the value. + AUTOTOOLS_BUILD_DIR=${BUILD_DIR} + echo ">>> Working in BUILD_DIR: \"${BUILD_DIR}\"" +} + +# @FUNCTION: remove_libtool_files +# @USAGE: [all] +# @DESCRIPTION: +# Determines unnecessary libtool files (.la) and libtool static archives (.a) +# and removes them from installation image. +# +# To unconditionally remove all libtool files, pass 'all' as argument. +# Otherwise, libtool archives required for static linking will be preserved. +# +# In most cases it's not necessary to manually invoke this function. +# See autotools-utils_src_install for reference. +remove_libtool_files() { + debug-print-function ${FUNCNAME} "$@" + local removing_all + + eqawarn "The remove_libtool_files() function was deprecated." + eqawarn "Please use prune_libtool_files() from eutils eclass instead." + + [[ ${#} -le 1 ]] || die "Invalid number of args to ${FUNCNAME}()" + if [[ ${#} -eq 1 ]]; then + case "${1}" in + all) + removing_all=1 + ;; + *) + die "Invalid argument to ${FUNCNAME}(): ${1}" + esac + fi + + local pc_libs=() + if [[ ! ${removing_all} ]]; then + local arg + for arg in $(find "${D}" -name '*.pc' -exec \ + sed -n -e 's;^Libs:;;p' {} +); do + [[ ${arg} == -l* ]] && pc_libs+=(lib${arg#-l}.la) + done + fi + + local f + find "${D}" -type f -name '*.la' -print0 | while read -r -d '' f; do + local shouldnotlink=$(sed -ne '/^shouldnotlink=yes$/p' "${f}") + local archivefile=${f/%.la/.a} + [[ "${f}" != "${archivefile}" ]] || die 'regex sanity check failed' + + # Remove static libs we're not supposed to link against. + if [[ ${shouldnotlink} ]]; then + einfo "Removing unnecessary ${archivefile#${D%/}}" + rm -f "${archivefile}" || die + # The .la file may be used by a module loader, so avoid removing it + # unless explicitly requested. + [[ ${removing_all} ]] || continue + fi + + # Remove .la files when: + # - user explicitly wants us to remove all .la files, + # - respective static archive doesn't exist, + # - they are covered by a .pc file already, + # - they don't provide any new information (no libs & no flags). + local removing + if [[ ${removing_all} ]]; then removing='forced' + elif [[ ! -f ${archivefile} ]]; then removing='no static archive' + elif has "$(basename "${f}")" "${pc_libs[@]}"; then + removing='covered by .pc' + elif [[ ! $(sed -n -e \ + "s/^\(dependency_libs\|inherited_linker_flags\)='\(.*\)'$/\2/p" \ + "${f}") ]]; then removing='no libs & flags' + fi + + if [[ ${removing} ]]; then + einfo "Removing unnecessary ${f#${D%/}} (${removing})" + rm -f "${f}" || die + fi + done +} + +# @FUNCTION: autotools-utils_autoreconf +# @DESCRIPTION: +# Reconfigure the sources (like gnome-autogen.sh or eautoreconf). +autotools-utils_autoreconf() { + debug-print-function ${FUNCNAME} "$@" + + eqawarn "The autotools-utils_autoreconf() function was deprecated." + eqawarn "Please call autotools-utils_src_prepare()" + eqawarn "with AUTOTOOLS_AUTORECONF set instead." + + # Override this func to not require unnecessary eaclocal calls. + autotools_check_macro() { + local x + + # Add a few additional variants as we don't get expansions. + [[ ${1} = AC_CONFIG_HEADERS ]] && set -- "${@}" \ + AC_CONFIG_HEADER AM_CONFIG_HEADER + + for x; do + grep -h "^${x}" configure.{ac,in} 2>/dev/null + done + } + + einfo "Autoreconfiguring '${PWD}' ..." + + local auxdir=$(sed -n -e 's/^AC_CONFIG_AUX_DIR(\(.*\))$/\1/p' \ + configure.{ac,in} 2>/dev/null) + if [[ ${auxdir} ]]; then + auxdir=${auxdir%%]} + mkdir -p ${auxdir##[} + fi + + # Support running additional tools like gnome-autogen.sh. + # Note: you need to add additional depends to the ebuild. + + # gettext + if [[ $(autotools_check_macro AM_GLIB_GNU_GETTEXT) ]]; then + echo 'no' | autotools_run_tool glib-gettextize --copy --force + elif [[ $(autotools_check_macro AM_GNU_GETTEXT) ]]; then + eautopoint --force + fi + + # intltool + if [[ $(autotools_check_macro AC_PROG_INTLTOOL IT_PROG_INTLTOOL) ]] + then + autotools_run_tool intltoolize --copy --automake --force + fi + + # gtk-doc + if [[ $(autotools_check_macro GTK_DOC_CHECK) ]]; then + autotools_run_tool gtkdocize --copy + fi + + # gnome-doc + if [[ $(autotools_check_macro GNOME_DOC_INIT) ]]; then + autotools_run_tool gnome-doc-prepare --copy --force + fi + + if [[ $(autotools_check_macro AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT) ]] + then + _elibtoolize --copy --force --install + fi + + eaclocal + eautoconf + eautoheader + FROM_EAUTORECONF=sure eautomake + + local x + for x in $(autotools_check_macro_val AC_CONFIG_SUBDIRS); do + if [[ -d ${x} ]] ; then + pushd "${x}" >/dev/null || die + autotools-utils_autoreconf + popd >/dev/null || die + fi + done +} + +# @FUNCTION: autotools-utils_src_prepare +# @DESCRIPTION: +# The src_prepare function. +# +# Supporting PATCHES array and user patches. See base.eclass(5) for reference. +autotools-utils_src_prepare() { + debug-print-function ${FUNCNAME} "$@" + + local want_autoreconf=${AUTOTOOLS_AUTORECONF} + + [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" + + at_checksum() { + find '(' -name 'Makefile.am' \ + -o -name 'configure.ac' \ + -o -name 'configure.in' ')' \ + -exec cksum {} + | sort -k2 + } + + [[ ! ${want_autoreconf} ]] && local checksum=$(at_checksum) + epatch_user + if [[ ! ${want_autoreconf} ]]; then + if [[ ${checksum} != $(at_checksum) ]]; then + einfo 'Will autoreconfigure due to user patches applied.' + want_autoreconf=yep + fi + fi + + [[ ${want_autoreconf} ]] && eautoreconf + elibtoolize --patch-only +} + +# @FUNCTION: autotools-utils_src_configure +# @DESCRIPTION: +# The src_configure function. For out of source build it creates build +# directory and runs econf there. Configuration parameters defined +# in myeconfargs are passed here to econf. Additionally following USE +# flags are known: +# +# IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static +# to econf respectively. +autotools-utils_src_configure() { + debug-print-function ${FUNCNAME} "$@" + + [[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \ + || die 'autotools-utils.eclass: myeconfargs has to be an array.' + + [[ ${EAPI} == 2 ]] && ! use prefix && EPREFIX= + + # Common args + local econfargs=() + + _check_build_dir + if "${ECONF_SOURCE}"/configure --help 2>&1 | grep -q '^ *--docdir='; then + econfargs+=( + --docdir="${EPREFIX}"/usr/share/doc/${PF} + ) + fi + + # Handle static-libs found in IUSE, disable them by default + if in_iuse static-libs; then + econfargs+=( + --enable-shared + $(use_enable static-libs static) + ) + fi + + # Append user args + econfargs+=("${myeconfargs[@]}") + + mkdir -p "${BUILD_DIR}" || die + pushd "${BUILD_DIR}" > /dev/null || die + econf "${econfargs[@]}" "$@" + popd > /dev/null || die +} + +# @FUNCTION: autotools-utils_src_compile +# @DESCRIPTION: +# The autotools src_compile function, invokes emake in specified BUILD_DIR. +autotools-utils_src_compile() { + debug-print-function ${FUNCNAME} "$@" + + _check_build_dir + pushd "${BUILD_DIR}" > /dev/null || die + emake "$@" || die 'emake failed' + popd > /dev/null || die +} + +# @FUNCTION: autotools-utils_src_install +# @DESCRIPTION: +# The autotools src_install function. Runs emake install, unconditionally +# removes unnecessary static libs (based on shouldnotlink libtool property) +# and removes unnecessary libtool files when static-libs USE flag is defined +# and unset. +# +# DOCS and HTML_DOCS arrays are supported. See base.eclass(5) for reference. +autotools-utils_src_install() { + debug-print-function ${FUNCNAME} "$@" + + _check_build_dir + pushd "${BUILD_DIR}" > /dev/null || die + emake DESTDIR="${D}" "$@" install || die "emake install failed" + popd > /dev/null || die + + # Move docs installed by autotools (in EAPI < 4). + if [[ ${EAPI} == [23] ]] \ + && path_exists "${D}${EPREFIX}"/usr/share/doc/${PF}/*; then + if [[ $(find "${D}${EPREFIX}"/usr/share/doc/${PF}/* -type d) ]]; then + eqawarn "autotools-utils: directories in docdir require at least EAPI 4" + else + mkdir "${T}"/temp-docdir + mv "${D}${EPREFIX}"/usr/share/doc/${PF}/* "${T}"/temp-docdir/ \ + || die "moving docs to tempdir failed" + + dodoc "${T}"/temp-docdir/* || die "docdir dodoc failed" + rm -r "${T}"/temp-docdir || die + fi + fi + + # XXX: support installing them from builddir as well? + if [[ ${DOCS} ]]; then + if [[ ${EAPI} == [23] ]]; then + dodoc "${DOCS[@]}" || die + else + # dies by itself + dodoc -r "${DOCS[@]}" + fi + else + local f + # same list as in PMS + for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \ + THANKS BUGS FAQ CREDITS CHANGELOG; do + if [[ -s ${f} ]]; then + dodoc "${f}" || die "(default) dodoc ${f} failed" + fi + done + fi + if [[ ${HTML_DOCS} ]]; then + dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" + fi + + # Remove libtool files and unnecessary static libs + prune_libtool_files +} + +# @FUNCTION: autotools-utils_src_test +# @DESCRIPTION: +# The autotools src_test function. Runs emake check in build directory. +autotools-utils_src_test() { + debug-print-function ${FUNCNAME} "$@" + + _check_build_dir + pushd "${BUILD_DIR}" > /dev/null || die + # Run default src_test as defined in ebuild.sh + default_src_test + popd > /dev/null || die +} diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/autotools.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/autotools.eclass new file mode 100644 index 0000000000..9ec87d0065 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/autotools.eclass @@ -0,0 +1,563 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.151 2013/01/28 04:13:00 vapier Exp $ + +# @ECLASS: autotools.eclass +# @MAINTAINER: +# base-system@gentoo.org +# @BLURB: Regenerates auto* build scripts +# @DESCRIPTION: +# This eclass is for safely handling autotooled software packages that need to +# regenerate their build scripts. All functions will abort in case of errors. + +# Note: We require GNU m4, as does autoconf. So feel free to use any features +# from the GNU version of m4 without worrying about other variants (i.e. BSD). + +if [[ ${___ECLASS_ONCE_AUTOTOOLS} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_AUTOTOOLS="recur -_+^+_- spank" + +inherit libtool multiprocessing + +# @ECLASS-VARIABLE: WANT_AUTOCONF +# @DESCRIPTION: +# The major version of autoconf your package needs +: ${WANT_AUTOCONF:=latest} + +# @ECLASS-VARIABLE: WANT_AUTOMAKE +# @DESCRIPTION: +# The major version of automake your package needs +: ${WANT_AUTOMAKE:=latest} + +# @ECLASS-VARIABLE: WANT_LIBTOOL +# @DESCRIPTION: +# Do you want libtool? Valid values here are "latest" and "none". +: ${WANT_LIBTOOL:=latest} + +# @ECLASS-VARIABLE: _LATEST_AUTOMAKE +# @INTERNAL +# @DESCRIPTION: +# CONSTANT! +# The latest major version/slot of automake available on each arch. #312315 +# If a newer slot is stable on any arch, and is NOT reflected in this list, +# then circular dependencies may arise during emerge @system bootstraps. +# Do NOT change this variable in your ebuilds! +# If you want to force a newer minor version, you can specify the correct +# WANT value by using a colon: : +_LATEST_AUTOMAKE=( 1.11.1:1.11 1.12:1.12 ) + +_automake_atom="sys-devel/automake" +_autoconf_atom="sys-devel/autoconf" +if [[ -n ${WANT_AUTOMAKE} ]]; then + case ${WANT_AUTOMAKE} in + # Even if the package doesn't use automake, we still need to depend + # on it because we run aclocal to process m4 macros. This matches + # the autoreconf tool, so this requirement is correct. #401605 + none) ;; + latest) + # Use SLOT deps if we can. For EAPI=0, we get pretty close. + if [[ ${EAPI:-0} != 0 ]] ; then + _automake_atom="|| ( `printf '>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ }` )" + else + _automake_atom="|| ( `printf '>=sys-devel/automake-%s ' ${_LATEST_AUTOMAKE[@]/%:*}` )" + fi + ;; + *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" ;; + esac + export WANT_AUTOMAKE +fi + +if [[ -n ${WANT_AUTOCONF} ]] ; then + case ${WANT_AUTOCONF} in + none) _autoconf_atom="" ;; # some packages don't require autoconf at all + 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;; + # if you change the "latest" version here, change also autotools_env_setup + latest|2.5) _autoconf_atom=">=sys-devel/autoconf-2.68" ;; + *) die "Invalid WANT_AUTOCONF value '${WANT_AUTOCONF}'" ;; + esac + export WANT_AUTOCONF +fi + +_libtool_atom="sys-devel/libtool" +if [[ -n ${WANT_LIBTOOL} ]] ; then + case ${WANT_LIBTOOL} in + none) _libtool_atom="" ;; + latest) ;; + *) die "Invalid WANT_LIBTOOL value '${WANT_LIBTOOL}'" ;; + esac + export WANT_LIBTOOL +fi + +AUTOTOOLS_DEPEND="${_automake_atom} ${_autoconf_atom} ${_libtool_atom}" +RDEPEND="" + +# @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND +# @DESCRIPTION: +# Set to 'no' to disable automatically adding to DEPEND. This lets +# ebuilds former conditional depends by using ${AUTOTOOLS_DEPEND} in +# their own DEPEND string. +: ${AUTOTOOLS_AUTO_DEPEND:=yes} +if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then + DEPEND=${AUTOTOOLS_DEPEND} +fi + +unset _automake_atom _autoconf_atom + +# @ECLASS-VARIABLE: AM_OPTS +# @DEFAULT_UNSET +# @DESCRIPTION: +# Additional options to pass to automake during +# eautoreconf call. + +# @ECLASS-VARIABLE: AT_NOEAUTOMAKE +# @DEFAULT_UNSET +# @DESCRIPTION: +# Don't run eautomake command if set to 'yes'; only used to workaround +# broken packages. Generally you should, instead, fix the package to +# not call AM_INIT_AUTOMAKE if it doesn't actually use automake. + +# @ECLASS-VARIABLE: AT_NOELIBTOOLIZE +# @DEFAULT_UNSET +# @DESCRIPTION: +# Don't run elibtoolize command if set to 'yes', +# useful when elibtoolize needs to be ran with +# particular options + +# @ECLASS-VARIABLE: AT_M4DIR +# @DESCRIPTION: +# Additional director(y|ies) aclocal should search +: ${AT_M4DIR:=} + +# @ECLASS-VARIABLE: AT_SYS_M4DIR +# @INTERNAL +# @DESCRIPTION: +# For system integrators, a list of additional aclocal search paths. +# This variable gets eval-ed, so you can use variables in the definition +# that may not be valid until eautoreconf & friends are run. +: ${AT_SYS_M4DIR:=} + +# @FUNCTION: eautoreconf +# @DESCRIPTION: +# This function mimes the behavior of autoreconf, but uses the different +# eauto* functions to run the tools. It doesn't accept parameters, but +# the directory with include files can be specified with AT_M4DIR variable. +# +# Should do a full autoreconf - normally what most people will be interested in. +# Also should handle additional directories specified by AC_CONFIG_SUBDIRS. +eautoreconf() { + local x g multitop + + if [[ -z ${AT_TOPLEVEL_EAUTORECONF} ]] ; then + AT_TOPLEVEL_EAUTORECONF="yes" + multitop="yes" + multijob_init + fi + + if [[ -z ${AT_NO_RECURSIVE} ]] ; then + # Take care of subdirs + for x in $(autotools_check_macro_val AC_CONFIG_SUBDIRS) ; do + if [[ -d ${x} ]] ; then + pushd "${x}" >/dev/null + if [[ -z ${PAST_TOPLEVEL_EAUTORECONF} ]] ; then + PAST_TOPLEVEL_EAUTORECONF="yes" AT_NOELIBTOOLIZE="yes" \ + multijob_child_init eautoreconf || die + else + # Avoid unsafe nested multijob_finish_one for bug #426512. + AT_NOELIBTOOLIZE="yes" eautoreconf || die + fi + popd >/dev/null + fi + done + fi + + einfo "Running eautoreconf in '${PWD}' ..." + + local m4dirs=$(autotools_check_macro_val AC_CONFIG_{AUX,MACRO}_DIR) + [[ -n ${m4dirs} ]] && mkdir -p ${m4dirs} + + # Run all the tools before aclocal so we can gather the .m4 files. + local i tools=( + # + glibgettext false "autotools_run_tool glib-gettextize --copy --force" + gettext false "autotools_run_tool --at-missing autopoint --force" + # intltool must come after autopoint. + intltool false "autotools_run_tool intltoolize --automake --copy --force" + gtkdoc false "autotools_run_tool --at-missing gtkdocize --copy" + gnomedoc false "autotools_run_tool --at-missing gnome-doc-prepare --copy --force" + libtool false "_elibtoolize --install --copy --force" + ) + for (( i = 0; i < ${#tools[@]}; i += 3 )) ; do + if _at_uses_${tools[i]} ; then + tools[i+1]=true + ${tools[i+2]} + fi + done + + # Generate aclocal.m4 with our up-to-date m4 files. + local rerun_aclocal=false + eaclocal + + # Check to see if we had macros expanded by other macros or in other + # m4 files that we couldn't detect early. This is uncommon, but some + # packages do this, so we have to handle it correctly. + for (( i = 0; i < ${#tools[@]}; i += 3 )) ; do + if ! ${tools[i+1]} && _at_uses_${tools[i]} ; then + ${tools[i+2]} + rerun_aclocal=true + fi + done + ${rerun_aclocal} && eaclocal + + eautoconf + eautoheader + [[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS} + + if [[ ${AT_NOELIBTOOLIZE} != "yes" ]] ; then + # Call it here to prevent failures due to elibtoolize called _before_ + # eautoreconf. We set $S because elibtoolize runs on that #265319 + S=${PWD} elibtoolize --force + fi + + if [[ -n ${multitop} ]] ; then + unset AT_TOPLEVEL_EAUTORECONF + multijob_finish || die + fi + + return 0 +} + +# @FUNCTION: _at_uses_pkg +# @USAGE: +# @INTERNAL +# See if the specified macros are enabled. +_at_uses_pkg() { + if [[ -n $(autotools_check_macro "$@") ]] ; then + return 0 + else + # If the trace didn't find it (perhaps because aclocal.m4 hasn't + # been generated yet), cheat, but be conservative. + local macro args=() + for macro ; do + args+=( -e "^[[:space:]]*${macro}\>" ) + done + egrep -q "${args[@]}" configure.?? + fi +} +_at_uses_autoheader() { _at_uses_pkg AC_CONFIG_HEADERS; } +_at_uses_automake() { _at_uses_pkg AM_INIT_AUTOMAKE; } +_at_uses_gettext() { _at_uses_pkg AM_GNU_GETTEXT_VERSION; } +_at_uses_glibgettext() { _at_uses_pkg AM_GLIB_GNU_GETTEXT; } +_at_uses_intltool() { _at_uses_pkg {AC,IT}_PROG_INTLTOOL; } +_at_uses_gtkdoc() { _at_uses_pkg GTK_DOC_CHECK; } +_at_uses_gnomedoc() { _at_uses_pkg GNOME_DOC_INIT; } +_at_uses_libtool() { _at_uses_pkg A{C,M}_PROG_LIBTOOL LT_INIT; } + +# @FUNCTION: eaclocal_amflags +# @DESCRIPTION: +# Extract the ACLOCAL_AMFLAGS value from the Makefile.am and try to handle +# (most) of the crazy crap that people throw at us. +eaclocal_amflags() { + local aclocal_opts amflags_file + + for amflags_file in GNUmakefile.am Makefile.am GNUmakefile.in Makefile.in ; do + [[ -e ${amflags_file} ]] || continue + # setup the env in case the pkg does something crazy + # in their ACLOCAL_AMFLAGS. like run a shell script + # which turns around and runs autotools. #365401 + # or split across multiple lines. #383525 + autotools_env_setup + aclocal_opts=$(sed -n \ + "/^ACLOCAL_AMFLAGS[[:space:]]*=/{ \ + # match the first line + s:[^=]*=::p; \ + # then gobble up all escaped lines + : nextline /\\\\$/{ n; p; b nextline; } \ + }" ${amflags_file}) + eval aclocal_opts=\""${aclocal_opts}"\" + break + done + + echo ${aclocal_opts} +} + +# @FUNCTION: eaclocal +# @DESCRIPTION: +# These functions runs the autotools using autotools_run_tool with the +# specified parametes. The name of the tool run is the same of the function +# without e prefix. +# They also force installing the support files for safety. +# Respects AT_M4DIR for additional directories to search for macro's. +eaclocal() { + [[ ! -f aclocal.m4 || -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \ + autotools_run_tool --at-m4flags aclocal "$@" $(eaclocal_amflags) +} + +# @FUNCTION: _elibtoolize +# @DESCRIPTION: +# Runs libtoolize. If --install is the first arg, automatically drop it if +# the active libtool version doesn't support it. +# +# Note the '_' prefix .. to not collide with elibtoolize() from libtool.eclass. +_elibtoolize() { + local LIBTOOLIZE=${LIBTOOLIZE:-$(type -P glibtoolize > /dev/null && echo glibtoolize || echo libtoolize)} + + [[ -f GNUmakefile.am || -f Makefile.am ]] && set -- "$@" --automake + if [[ $1 == "--install" ]] ; then + ${LIBTOOLIZE} -n --install >& /dev/null || shift + fi + + autotools_run_tool ${LIBTOOLIZE} "$@" ${opts} +} + +# @FUNCTION: eautoheader +# @DESCRIPTION: +# Runs autoheader. +eautoheader() { + _at_uses_autoheader || return 0 + autotools_run_tool --at-no-fail --at-m4flags autoheader "$@" +} + +# @FUNCTION: eautoconf +# @DESCRIPTION: +# Runs autoconf. +eautoconf() { + if [[ ! -f configure.ac && ! -f configure.in ]] ; then + echo + eerror "No configure.{ac,in} present in '${PWD}'!" + echo + die "No configure.{ac,in} present!" + fi + + autotools_run_tool --at-m4flags autoconf "$@" +} + +# @FUNCTION: eautomake +# @DESCRIPTION: +# Runs automake. +eautomake() { + local extra_opts + local makefile_name + + # Run automake if: + # - a Makefile.am type file exists + # - the configure script is using the AM_INIT_AUTOMAKE directive + for makefile_name in {GNUmakefile,{M,m}akefile}.am "" ; do + [[ -f ${makefile_name} ]] && break + done + + if [[ -z ${makefile_name} ]] ; then + _at_uses_automake || return 0 + + elif [[ -z ${FROM_EAUTORECONF} && -f ${makefile_name%.am}.in ]]; then + local used_automake + local installed_automake + + installed_automake=$(WANT_AUTOMAKE= automake --version | head -n 1 | \ + sed -e 's:.*(GNU automake) ::') + used_automake=$(head -n 1 < ${makefile_name%.am}.in | \ + sed -e 's:.*by automake \(.*\) from .*:\1:') + + if [[ ${installed_automake} != ${used_automake} ]]; then + einfo "Automake used for the package (${used_automake}) differs from" + einfo "the installed version (${installed_automake})." + eautoreconf + return 0 + fi + fi + + [[ -f INSTALL && -f AUTHORS && -f ChangeLog && -f NEWS && -f README ]] \ + || extra_opts="${extra_opts} --foreign" + + # --force-missing seems not to be recognized by some flavours of automake + autotools_run_tool automake --add-missing --copy ${extra_opts} "$@" +} + +# @FUNCTION: eautopoint +# @DESCRIPTION: +# Runs autopoint (from the gettext package). +eautopoint() { + autotools_run_tool autopoint "$@" +} + +# @FUNCTION: config_rpath_update +# @USAGE: [destination] +# @DESCRIPTION: +# Some packages utilize the config.rpath helper script, but don't +# use gettext directly. So we have to copy it in manually since +# we can't let `autopoint` do it for us. +config_rpath_update() { + local dst src=$(type -P gettext | sed 's:bin/gettext:share/gettext/config.rpath:') + + [[ $# -eq 0 ]] && set -- $(find -name config.rpath) + [[ $# -eq 0 ]] && return 0 + + einfo "Updating all config.rpath files" + for dst in "$@" ; do + einfo " ${dst}" + cp "${src}" "${dst}" || die + done +} + +# @FUNCTION: autotools_env_setup +# @INTERNAL +# @DESCRIPTION: +# Process the WANT_AUTO{CONF,MAKE} flags. +autotools_env_setup() { + # We do the "latest" → version switch here because it solves + # possible order problems, see bug #270010 as an example. + if [[ ${WANT_AUTOMAKE} == "latest" ]]; then + local pv + for pv in ${_LATEST_AUTOMAKE[@]/#*:} ; do + # has_version respects ROOT, but in this case, we don't want it to, + # thus "ROOT=/" prefix: + ROOT=/ has_version "=sys-devel/automake-${pv}*" && export WANT_AUTOMAKE="${pv}" + done + [[ ${WANT_AUTOMAKE} == "latest" ]] && \ + die "Cannot find the latest automake! Tried ${_LATEST_AUTOMAKE}" + fi + [[ ${WANT_AUTOCONF} == "latest" ]] && export WANT_AUTOCONF=2.5 +} + +# @FUNCTION: autotools_run_tool +# @USAGE: [--at-no-fail] [--at-m4flags] [--at-missing] [tool-specific flags] +# @INTERNAL +# @DESCRIPTION: +# Run the specified autotool helper, but do logging and error checking +# around it in the process. +autotools_run_tool() { + # Process our own internal flags first + local autofail=true m4flags=false missing_ok=false + while [[ -n $1 ]] ; do + case $1 in + --at-no-fail) autofail=false;; + --at-m4flags) m4flags=true;; + --at-missing) missing_ok=true;; + # whatever is left goes to the actual tool + *) break;; + esac + shift + done + + if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then + ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase" + fi + + if ${missing_ok} && ! type -P ${1} >/dev/null ; then + einfo "Skipping '$*' due $1 not installed" + return 0 + fi + + autotools_env_setup + + local STDERR_TARGET="${T}/$1.out" + # most of the time, there will only be one run, but if there are + # more, make sure we get unique log filenames + if [[ -e ${STDERR_TARGET} ]] ; then + local i=1 + while :; do + STDERR_TARGET="${T}/$1-${i}.out" + [[ -e ${STDERR_TARGET} ]] || break + : $(( i++ )) + done + fi + + if ${m4flags} ; then + set -- "${1}" $(autotools_m4dir_include) "${@:2}" $(autotools_m4sysdir_include) + fi + + printf "***** $1 *****\n***** PWD: ${PWD}\n***** $*\n\n" > "${STDERR_TARGET}" + + ebegin "Running $@" + "$@" >> "${STDERR_TARGET}" 2>&1 + if ! eend $? && ${autofail} ; then + echo + eerror "Failed Running $1 !" + eerror + eerror "Include in your bugreport the contents of:" + eerror + eerror " ${STDERR_TARGET}" + echo + die "Failed Running $1 !" + fi +} + +# Internal function to check for support + +# Keep a list of all the macros we might use so that we only +# have to run the trace code once. Order doesn't matter. +ALL_AUTOTOOLS_MACROS=( + AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT + AC_CONFIG_HEADERS + AC_CONFIG_SUBDIRS + AC_CONFIG_AUX_DIR AC_CONFIG_MACRO_DIR + AM_INIT_AUTOMAKE + AM_GLIB_GNU_GETTEXT + AM_GNU_GETTEXT_VERSION + {AC,IT}_PROG_INTLTOOL + GTK_DOC_CHECK + GNOME_DOC_INIT +) +autotools_check_macro() { + [[ -f configure.ac || -f configure.in ]] || return 0 + + # We can run in multiple dirs, so we have to cache the trace + # data in $PWD rather than an env var. + local trace_file=".__autoconf_trace_data" + if [[ ! -e ${trace_file} ]] || [[ ! aclocal.m4 -ot ${trace_file} ]] ; then + WANT_AUTOCONF="2.5" autoconf \ + $(autotools_m4dir_include) \ + ${ALL_AUTOTOOLS_MACROS[@]/#/--trace=} > ${trace_file} 2>/dev/null + fi + + local macro args=() + for macro ; do + has ${macro} ${ALL_AUTOTOOLS_MACROS[@]} || die "internal error: add ${macro} to ALL_AUTOTOOLS_MACROS" + args+=( -e ":${macro}:" ) + done + grep "${args[@]}" ${trace_file} +} + +# @FUNCTION: autotools_check_macro_val +# @USAGE: [macros] +# @INTERNAL +# @DESCRIPTION: +# Look for a macro and extract its value. +autotools_check_macro_val() { + local macro scan_out + + for macro ; do + autotools_check_macro "${macro}" | \ + gawk -v macro="${macro}" \ + '($0 !~ /^[[:space:]]*(#|dnl)/) { + if (match($0, macro ":(.*)$", res)) + print res[1] + }' | uniq + done + + return 0 +} + +_autotools_m4dir_include() { + local x include_opts flag + + # Use the right flag to autoconf based on the version #448986 + [[ ${WANT_AUTOCONF} == "2.1" ]] \ + && flag="l" \ + || flag="I" + + for x in "$@" ; do + case ${x} in + # We handle it below + -${flag}) ;; + *) + [[ ! -d ${x} ]] && ewarn "autotools.eclass: '${x}' does not exist" + include_opts+=" -${flag} ${x}" + ;; + esac + done + + echo ${include_opts} +} +autotools_m4dir_include() { _autotools_m4dir_include ${AT_M4DIR} ; } +autotools_m4sysdir_include() { _autotools_m4dir_include $(eval echo ${AT_SYS_M4DIR}) ; } + +fi diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/base.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/base.eclass new file mode 100644 index 0000000000..bc93795b3f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/base.eclass @@ -0,0 +1,194 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.58 2012/09/27 16:35:41 axs Exp $ + +# @ECLASS: base.eclass +# @MAINTAINER: +# QA Team +# @AUTHOR: +# Original author: Dan Armak +# @BLURB: The base eclass defines some default functions and variables. +# @DESCRIPTION: +# The base eclass defines some default functions and variables. + +if [[ ${___ECLASS_ONCE_BASE} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_BASE="recur -_+^+_- spank" + +inherit eutils + +BASE_EXPF="src_unpack src_compile src_install" +case "${EAPI:-0}" in + 2|3|4|5) BASE_EXPF+=" src_prepare src_configure" ;; + *) ;; +esac + +EXPORT_FUNCTIONS ${BASE_EXPF} + +# @ECLASS-VARIABLE: DOCS +# @DESCRIPTION: +# Array containing documents passed to dodoc command. +# +# DOCS=( "${S}/doc/document.txt" "${S}/doc/doc_folder/" ) + +# @ECLASS-VARIABLE: HTML_DOCS +# @DESCRIPTION: +# Array containing documents passed to dohtml command. +# +# HTML_DOCS=( "${S}/doc/document.html" "${S}/doc/html_folder/" ) + +# @ECLASS-VARIABLE: PATCHES +# @DESCRIPTION: +# PATCHES array variable containing all various patches to be applied. +# This variable is expected to be defined in global scope of ebuild. +# Make sure to specify the full path. This variable is utilised in +# src_unpack/src_prepare phase based on EAPI. +# +# NOTE: if using patches folders with special file suffixes you have to +# define one additional variable EPATCH_SUFFIX="something" +# +# PATCHES=( "${FILESDIR}/mypatch.patch" "${FILESDIR}/patches_folder/" ) + + +# @FUNCTION: base_src_unpack +# @DESCRIPTION: +# The base src_unpack function, which is exported. +# Calls also src_prepare with eapi older than 2. +base_src_unpack() { + debug-print-function $FUNCNAME "$@" + + pushd "${WORKDIR}" > /dev/null + + if [[ $(type -t unpacker_src_unpack) == "function" ]] ; then + unpacker_src_unpack + elif [[ -n ${A} ]] ; then + unpack ${A} + fi + has src_prepare ${BASE_EXPF} || base_src_prepare + + popd > /dev/null +} + +# @FUNCTION: base_src_prepare +# @DESCRIPTION: +# The base src_prepare function, which is exported +# EAPI is greater or equal to 2. Here the PATCHES array is evaluated. +base_src_prepare() { + debug-print-function $FUNCNAME "$@" + debug-print "$FUNCNAME: PATCHES=$PATCHES" + + local patches_failed=0 + + pushd "${S}" > /dev/null + if [[ "$(declare -p PATCHES 2>/dev/null 2>&1)" == "declare -a"* ]]; then + for x in "${PATCHES[@]}"; do + debug-print "$FUNCNAME: applying patch from ${x}" + if [[ -d "${x}" ]]; then + # Use standardized names and locations with bulk patching + # Patch directory is ${WORKDIR}/patch + # See epatch() in eutils.eclass for more documentation + EPATCH_SUFFIX=${EPATCH_SUFFIX:=patch} + + # in order to preserve normal EPATCH_SOURCE value that can + # be used other way than with base eclass store in local + # variable and restore later + oldval=${EPATCH_SOURCE} + EPATCH_SOURCE=${x} + EPATCH_FORCE=yes + epatch + EPATCH_SOURCE=${oldval} + elif [[ -f "${x}" ]]; then + epatch "${x}" + else + ewarn "QA: File or directory \"${x}\" does not exist." + ewarn "QA: Check your PATCHES array or add missing file/directory." + patches_failed=1 + fi + done + [[ ${patches_failed} -eq 1 ]] && die "Some patches failed. See above messages." + else + for x in ${PATCHES}; do + debug-print "$FUNCNAME: patching from ${x}" + epatch "${x}" + done + fi + + # Apply user patches + debug-print "$FUNCNAME: applying user patches" + epatch_user + + popd > /dev/null +} + +# @FUNCTION: base_src_configure +# @DESCRIPTION: +# The base src_configure function, which is exported when +# EAPI is greater or equal to 2. Runs basic econf. +base_src_configure() { + debug-print-function $FUNCNAME "$@" + + # there is no pushd ${S} so we can override its place where to run + [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf "$@" +} + +# @FUNCTION: base_src_compile +# @DESCRIPTION: +# The base src_compile function, calls src_configure with +# EAPI older than 2. +base_src_compile() { + debug-print-function $FUNCNAME "$@" + + has src_configure ${BASE_EXPF} || base_src_configure + base_src_make "$@" +} + +# @FUNCTION: base_src_make +# @DESCRIPTION: +# Actual function that runs emake command. +base_src_make() { + debug-print-function $FUNCNAME "$@" + + if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then + emake "$@" || die "died running emake, $FUNCNAME" + fi +} + +# @FUNCTION: base_src_install +# @DESCRIPTION: +# The base src_install function. Runs make install and +# installs documents and html documents from DOCS and HTML_DOCS +# arrays. +base_src_install() { + debug-print-function $FUNCNAME "$@" + + emake DESTDIR="${D}" "$@" install || die "died running make install, $FUNCNAME" + base_src_install_docs +} + +# @FUNCTION: base_src_install_docs +# @DESCRIPTION: +# Actual function that install documentation from +# DOCS and HTML_DOCS arrays. +base_src_install_docs() { + debug-print-function $FUNCNAME "$@" + + local x + + pushd "${S}" > /dev/null + + if [[ "$(declare -p DOCS 2>/dev/null 2>&1)" == "declare -a"* ]]; then + for x in "${DOCS[@]}"; do + debug-print "$FUNCNAME: docs: creating document from ${x}" + dodoc "${x}" || die "dodoc failed" + done + fi + if [[ "$(declare -p HTML_DOCS 2>/dev/null 2>&1)" == "declare -a"* ]]; then + for x in "${HTML_DOCS[@]}"; do + debug-print "$FUNCNAME: docs: creating html document from ${x}" + dohtml -r "${x}" || die "dohtml failed" + done + fi + + popd > /dev/null +} + +fi diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/bash-completion-r1.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/bash-completion-r1.eclass new file mode 100644 index 0000000000..8af46ee160 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/bash-completion-r1.eclass @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.3 2012/09/27 16:35:41 axs Exp $ + +# @ECLASS: bash-completion-r1.eclass +# @MAINTAINER: +# mgorny@gentoo.org +# @BLURB: A few quick functions to install bash-completion files +# @EXAMPLE: +# +# @CODE +# EAPI=4 +# +# src_install() { +# default +# +# newbashcomp contrib/${PN}.bash-completion ${PN} +# } +# @CODE + +case ${EAPI:-0} in + 0|1|2|3|4|5) ;; + *) die "EAPI ${EAPI} unsupported (yet)." +esac + +# @FUNCTION: dobashcomp +# @USAGE: file [...] +# @DESCRIPTION: +# Install bash-completion files passed as args. Has EAPI-dependant failure +# behavior (like doins). +dobashcomp() { + debug-print-function ${FUNCNAME} "${@}" + + ( + insinto /usr/share/bash-completion + doins "${@}" + ) +} + +# @FUNCTION: newbashcomp +# @USAGE: file newname +# @DESCRIPTION: +# Install bash-completion file under a new name. Has EAPI-dependant failure +# behavior (like newins). +newbashcomp() { + debug-print-function ${FUNCNAME} "${@}" + + ( + insinto /usr/share/bash-completion + newins "${@}" + ) +} diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/bash-completion.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/bash-completion.eclass new file mode 100644 index 0000000000..c226878c5f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/eclass/bash-completion.eclass @@ -0,0 +1,101 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.28 2011/09/08 19:06:46 mgorny Exp $ + +# @DEPRECATED +# This eclass has been superseded by bash-completion-r1 eclass. +# Please modify your ebuilds to use that one instead. + +# @ECLASS: bash-completion.eclass +# @MAINTAINER: +# shell-tools@gentoo.org. +# @AUTHOR: +# Original author: Aaron Walker +# @BLURB: An Interface for installing contributed bash-completion scripts +# @DESCRIPTION: +# Simple eclass that provides an interface for installing +# contributed (ie not included in bash-completion proper) +# bash-completion scripts. +# +# Note: this eclass has been deprecated in favor of bash-completion-r1. Please +# use that one instead. + +# @ECLASS-VARIABLE: BASHCOMPLETION_NAME +# @DESCRIPTION: +# Install the completion script with this name (see also dobashcompletion) + +# @ECLASS-VARIABLE: BASHCOMPFILES +# @DESCRIPTION: +# Space delimited list of files to install if dobashcompletion is called without +# arguments. + +inherit eutils + +EXPORT_FUNCTIONS pkg_postinst + +IUSE="bash-completion" + +# Allow eclass to be inherited by eselect without a circular dependency +if [[ ${CATEGORY}/${PN} != app-admin/eselect ]]; then + RDEPEND="bash-completion? ( app-admin/eselect )" +fi +PDEPEND="bash-completion? ( app-shells/bash-completion )" + +# @FUNCTION: dobashcompletion +# @USAGE: [file] [new_file] +# @DESCRIPTION: +# The first argument is the location of the bash-completion script to install, +# and is required if BASHCOMPFILES is not set. The second argument is the name +# the script will be installed as. If BASHCOMPLETION_NAME is set, it overrides +# the second argument. If no second argument is given and BASHCOMPLETION_NAME +# is not set, it will default to ${PN}. +dobashcompletion() { + local f + + eqawarn "bash-completion.eclass has been deprecated." + eqawarn "Please update your ebuilds to use bash-completion-r1 instead." + + if [[ -z ${1} && -z ${BASHCOMPFILES} ]]; then + die "Usage: dobashcompletion [file] [new file]" + fi + + if use bash-completion; then + insinto /usr/share/bash-completion + if [[ -n ${1} ]]; then + [[ -z ${BASHCOMPLETION_NAME} ]] && BASHCOMPLETION_NAME="${2:-${PN}}" + newins "${1}" "${BASHCOMPLETION_NAME}" || die "Failed to install ${1}" + else + set -- ${BASHCOMPFILES} + for f in "$@"; do + if [[ -e ${f} ]]; then + doins "${f}" || die "Failed to install ${f}" + fi + done + fi + fi +} + +# @FUNCTION: bash-completion_pkg_postinst +# @DESCRIPTION: +# The bash-completion pkg_postinst function, which is exported +bash-completion_pkg_postinst() { + local f + + if use bash-completion ; then + elog "The following bash-completion scripts have been installed:" + if [[ -n ${BASHCOMPLETION_NAME} ]]; then + elog " ${BASHCOMPLETION_NAME}" + else + set -- ${BASHCOMPFILES} + for f in "$@"; do + elog " $(basename ${f})" + done + fi + elog + elog "To enable command-line completion on a per-user basis run:" + elog " eselect bashcomp enable