From ce7607c38e89fa56303cdf5d3aef7559cc1e0378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sun, 7 Feb 2016 20:48:54 +0100 Subject: Merged 300.coreutils.build with 101.gmp.build into pkg.build and 200.psxtypes.build with 204.psxscl.build. --- 001.binutils.host.build | 1 - 001.binutils_host.build | 1 + 101.gmp.build | 61 +-------------------------------------- 102.mpfr.build | 2 +- 103.mpc.build | 2 +- 104.libelf.build | 2 +- 104.libelf.vars | 15 ++++++++++ 105.binutils.build | 2 +- 200.psxtypes.build | 15 +--------- 204.psxscl.build | 39 ++++++++++++++----------- 300.coreutils.build | 70 +-------------------------------------------- 301.diffutils.build | 2 +- 302.findutils.build | 2 +- 302.patch.build | 1 + 303.gawk.build | 1 + 303.patch.build | 1 - 304.bash.build | 1 + 304.bash.vars | 45 +++++++++++++++++++++++++++++ 304.gawk.build | 1 - 305.bash.build | 1 - 305.bash.vars | 45 ----------------------------- 305.make.build | 1 + 306.libz.build | 42 +++++++++++++++++++++++++++ 306.make.build | 1 - 307.gzip.build | 1 + 307.libz.build | 42 --------------------------- 308.grep.build | 1 + 308.gzip.build | 1 - 309.grep.build | 1 - 309.sed.build | 1 + 310.sed.build | 1 - build.subr | 5 ++-- build.vars | 8 ++++++ pkg.build | 76 +++++++++++++++++++++++++++++++++++++++++++++++++ 34 files changed, 229 insertions(+), 262 deletions(-) delete mode 120000 001.binutils.host.build create mode 120000 001.binutils_host.build mode change 100644 => 120000 101.gmp.build create mode 100644 104.libelf.vars mode change 100644 => 120000 200.psxtypes.build mode change 100644 => 120000 300.coreutils.build create mode 120000 302.patch.build create mode 120000 303.gawk.build delete mode 120000 303.patch.build create mode 120000 304.bash.build create mode 100644 304.bash.vars delete mode 120000 304.gawk.build delete mode 120000 305.bash.build delete mode 100644 305.bash.vars create mode 120000 305.make.build create mode 100644 306.libz.build delete mode 120000 306.make.build create mode 120000 307.gzip.build delete mode 100644 307.libz.build create mode 120000 308.grep.build delete mode 120000 308.gzip.build delete mode 120000 309.grep.build create mode 120000 309.sed.build delete mode 120000 310.sed.build create mode 100644 pkg.build diff --git a/001.binutils.host.build b/001.binutils.host.build deleted file mode 120000 index 5b9b303f..00000000 --- a/001.binutils.host.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/001.binutils_host.build b/001.binutils_host.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/001.binutils_host.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/101.gmp.build b/101.gmp.build deleted file mode 100644 index c0d0fca4..00000000 --- a/101.gmp.build +++ /dev/null @@ -1,60 +0,0 @@ -parse_with_pkg_name ${2} gmp mpfr mpc libelf binutils; -if is_build_script_done finished; then - exit 212; -else - fetch ${PKG_URL} ${PKG_SHA256SUM}; - set_build_dir ${PKG_SUBDIR} native; -fi; -if ! is_build_script_done extracted; then - rm_if_exists ${PKG_SUBDIR}; - tar -axf ${PKG_FNAME}; - set_build_script_done extracted -patched; -fi; -if ! is_build_script_done patched; then - patch -d ${PKG_SUBDIR} -p1 \ - < portage/${PKG_SUBDIR}.midipix.patch; - if [ ${PKG_NO_LIBTOOL_MIDIPIX:-0} -eq 0 ]; then - cp portage/libtool.midipix ${PKG_SUBDIR}/; - fi; - set_build_script_done patched -configured; -fi; -if ! is_build_script_done configured; then - rm_if_exists -m -c ${BUILD_DIR}; - ../${PKG_SUBDIR}/configure \ - ${PKG_CONFIGURE_EXTRA_ARGS} \ - --host=${HOST_NATIVE} \ - --prefix=${PKG_PREFIX:-/} \ - --target=${TARGET}; - set_build_script_done configured -built; -else - cd ${BUILD_DIR}; -fi; -if ! is_build_script_done built; then - make; - set_build_script_done configured built -installed1; -fi; -if ! is_build_script_done installed1; then - make DESTDIR=${PREFIX_NATIVE} install; - set_build_script_done configured installed1 -installed2 -finished; -fi; -if [ -n "${PKG_PREFIX_EXTRA}" ]; then - if ! is_build_script_done installed2; then - make DESTDIR=${PKG_PREFIX_EXTRA} install; - set_build_script_done configured installed2 -finished; - fi; -elif [ "x${PKG_NAME}" = "xlibelf" ]; then - if ! is_build_script_done installed2; then - rm -f lib/libelf.def; - echo EXPORTS > lib/libelf.def; - perk -e lib/libelf.so >> lib/libelf.def; - ${HOST_NATIVE}-dlltool \ - --output-lib lib/libelf.lib.a \ - --dllname libelf.so \ - --input-def lib/libelf.def; - cp lib/libelf.lib.a ${PREFIX}/lib; - set_build_script_done configured installed2 -finished; - fi; -fi; -set_build_script_done finished; - -# vim:filetype=sh diff --git a/101.gmp.build b/101.gmp.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/101.gmp.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/102.mpfr.build b/102.mpfr.build index c9048e09..52bb82e5 120000 --- a/102.mpfr.build +++ b/102.mpfr.build @@ -1 +1 @@ -101.gmp.build \ No newline at end of file +pkg.build \ No newline at end of file diff --git a/103.mpc.build b/103.mpc.build index c9048e09..52bb82e5 120000 --- a/103.mpc.build +++ b/103.mpc.build @@ -1 +1 @@ -101.gmp.build \ No newline at end of file +pkg.build \ No newline at end of file diff --git a/104.libelf.build b/104.libelf.build index c9048e09..52bb82e5 120000 --- a/104.libelf.build +++ b/104.libelf.build @@ -1 +1 @@ -101.gmp.build \ No newline at end of file +pkg.build \ No newline at end of file diff --git a/104.libelf.vars b/104.libelf.vars new file mode 100644 index 00000000..786e691e --- /dev/null +++ b/104.libelf.vars @@ -0,0 +1,15 @@ +pkg_libelf_install_post() { + if ! is_build_script_done installed2; then + rm -f lib/libelf.def; + echo EXPORTS > lib/libelf.def; + perk -e lib/libelf.so >> lib/libelf.def; + ${HOST_NATIVE}-dlltool \ + --output-lib lib/libelf.lib.a \ + --dllname libelf.so \ + --input-def lib/libelf.def; + cp lib/libelf.lib.a ${PREFIX}/lib; + set_build_script_done installed2 -finished; + fi; +}; + +# vim:filetype=sh diff --git a/105.binutils.build b/105.binutils.build index c9048e09..52bb82e5 120000 --- a/105.binutils.build +++ b/105.binutils.build @@ -1 +1 @@ -101.gmp.build \ No newline at end of file +pkg.build \ No newline at end of file diff --git a/200.psxtypes.build b/200.psxtypes.build deleted file mode 100644 index add23676..00000000 --- a/200.psxtypes.build +++ /dev/null @@ -1,14 +0,0 @@ -# Order: psxtypes pemagine dalist ntapi psxscl ntcon ntctty - -parse_with_pkg_name ${2} psxtypes; -if is_build_script_done finished; then - exit 212; -else - fetch_git ${PKG_SUBDIR} ${PKG_URL}; -fi; -if ! is_build_script_done installed; then - make -C ${PKG_SUBDIR} ${MAKEFLAGS} DESTDIR=${PREFIX_NATIVE}; - set_build_script_done installed finished; -fi; - -# vim:filetype=sh diff --git a/200.psxtypes.build b/200.psxtypes.build new file mode 120000 index 00000000..44d66684 --- /dev/null +++ b/200.psxtypes.build @@ -0,0 +1 @@ +204.psxscl.build \ No newline at end of file diff --git a/204.psxscl.build b/204.psxscl.build index 3e479146..7202d1a7 100644 --- a/204.psxscl.build +++ b/204.psxscl.build @@ -8,23 +8,30 @@ else fetch_git ${PKG_SUBDIR} ${PKG_URL}; set_build_dir ${PKG_SUBDIR} cross; fi; -if ! is_build_script_done configured; then - rm_if_exists -m -c ${BUILD_DIR}; - ../${PKG_SUBDIR}/configure \ - --prefix=${PREFIX_NATIVE} \ - --host=${HOST_NATIVE}; - set_build_script_done configured -built; +if [ "x${PKG_NAME}" = "xpsxtypes" ]; then + if ! is_build_script_done installed; then + make -C ${PKG_SUBDIR} ${MAKEFLAGS} DESTDIR=${PREFIX_TARGET}; + set_build_script_done installed finished; + fi; else - cd ${BUILD_DIR}; -fi; -if ! is_build_script_done built; then - make ${MAKEFLAGS}; - set_build_script_done built -installed; -fi; -if ! is_build_script_done installed; then - make ${MAKEFLAGS} install; - make ${MAKEFLAGS} DESTDIR=${PREFIX_NATIVE}; - set_build_script_done installed finished; + if ! is_build_script_done configured; then + rm_if_exists -m -c ${BUILD_DIR}; + ../${PKG_SUBDIR}/configure \ + --prefix=${PREFIX_TARGET} \ + --host=${HOST_NATIVE}; + set_build_script_done configured -built; + else + cd ${BUILD_DIR}; + fi; + if ! is_build_script_done built; then + make ${MAKEFLAGS}; + set_build_script_done built -installed; + fi; + if ! is_build_script_done installed; then + make ${MAKEFLAGS} install; + make ${MAKEFLAGS} DESTDIR=${PREFIX_TARGET}; + set_build_script_done installed finished; + fi; fi; # vim:filetype=sh diff --git a/300.coreutils.build b/300.coreutils.build deleted file mode 100644 index f222ae03..00000000 --- a/300.coreutils.build +++ /dev/null @@ -1,69 +0,0 @@ -parse_with_pkg_name ${2} \ - coreutils diffutils findutils patch \ - gawk bash make grep sed binutils; -if is_build_script_done finished; then - exit 212; -else - fetch ${PKG_URL} ${PKG_SHA256SUM}; - if [ "x${PKG_NAME}" = "xbinutils" ]\ - && [ "x${3}" = "xhost" ]; then - _no_config_cache=${_no_destdir:=1}; - _configure_args="--disable-werror --prefix=${PREFIX} --with-sysroot=${PREFIX_TARGET}"; - set_build_dir ${PKG_SUBDIR} cross; - else - _no_config_cache=${_no_destdir:=0}; - _configure_args="-C --host=${HOST_NATIVE} --prefix="; - set_build_dir ${PKG_SUBDIR} native; - fi; - _configure_args="${_configure_args}${PKG_CONFIGURE_EXTRA_ARGS:+ ${PKG_CONFIGURE_EXTRA_ARGS}}"; -fi; -if ! is_build_script_done extracted; then - rm_if_exists ${PKG_SUBDIR}; - tar -axf ${PKG_FNAME}; - set_build_script_done extracted -patched; -fi; -if ! is_build_script_done patched; then - if [ -n "${PKG_PATCHES_EXTRA}" ]; then - (rm_if_exists -m -c ${PKG_SUBDIR}-patches-extra; - wget -c -nd -np -r -R \*.htm\* -R \*.sig ${PKG_PATCHES_EXTRA} - for _patch_fname in \ - $(find . -type f -not -iname \*.sig | sort); do - patch -d ../${PKG_SUBDIR} -p0 \ - < ${_patch_fname}; - done; - for _patch_fname in ${PKG_PATCHES_EXTRA_MANIFEST}; do - _patch_sha256sum=${2}; shift; - if ! compare_hash ${_patch_fname} ${_patch_sha256sum}; then - log_msg fail "Error: hash mismatch for patch file \`${_patch_fname}'."; - exit 1; - fi; - done); wait; - fi; - patch -d ${PKG_SUBDIR} -p1 \ - < portage/${PKG_SUBDIR}.midipix.patch; - set_build_script_done patched -configured; -fi; -if ! is_build_script_done configured; then - rm_if_exists -m -c ${BUILD_DIR}; - [ ${_no_config_cache:-0} -eq 0 ] &&\ - cp ../portage/config.cache .; - ../${PKG_SUBDIR}/configure \ - ${_configure_args} --target=${TARGET}; - set_build_script_done configured -built; -else - cd ${BUILD_DIR}; -fi; -if ! is_build_script_done built; then - make ${MAKEFLAGS}; - set_build_script_done built -installed; -fi; -if ! is_build_script_done installed; then - if [ ${_no_destdir:-0} -eq 0 ]; then - make ${MAKEFLAGS} DESTDIR=${PREFIX_NATIVE} install; - else - make ${MAKEFLAGS} install; - fi; - set_build_script_done installed finished; -fi; - -# vim:filetype=sh diff --git a/300.coreutils.build b/300.coreutils.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/300.coreutils.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/301.diffutils.build b/301.diffutils.build index 5b9b303f..52bb82e5 120000 --- a/301.diffutils.build +++ b/301.diffutils.build @@ -1 +1 @@ -300.coreutils.build \ No newline at end of file +pkg.build \ No newline at end of file diff --git a/302.findutils.build b/302.findutils.build index 5b9b303f..52bb82e5 120000 --- a/302.findutils.build +++ b/302.findutils.build @@ -1 +1 @@ -300.coreutils.build \ No newline at end of file +pkg.build \ No newline at end of file diff --git a/302.patch.build b/302.patch.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/302.patch.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/303.gawk.build b/303.gawk.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/303.gawk.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/303.patch.build b/303.patch.build deleted file mode 120000 index 5b9b303f..00000000 --- a/303.patch.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/304.bash.build b/304.bash.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/304.bash.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/304.bash.vars b/304.bash.vars new file mode 100644 index 00000000..b1333b3c --- /dev/null +++ b/304.bash.vars @@ -0,0 +1,45 @@ +PKG_BASH_PATCHES_EXTRA_MANIFEST=" +bash43-001 ecb3dff2648667513e31554b3ad054ccd89fce38e33367c9459ac3a285153742 +bash43-002 eee7cd7062ab29a9e4f02924d9c367264dcb8b162703f74ff6eb8f175a91502b +bash43-003 000e6eac50cd9053ce0630db01239dcdead04a2c2c351c47e2b51dac1ac1087d +bash43-004 5ea0a42c6506720d26e6d3c5c358e9a0d49f6f189d69a8ed34d5935964821338 +bash43-005 1ac83044032b9f5f11aeca8a344ae3c524ec2156185d3adbb8ad3e7a165aa3fa +bash43-006 a0648ee72d15e4a90c8b77a5c6b19f8d89e28c1bc881657d22fe26825f040213 +bash43-007 1113e321c59cf6a8648a36245bbe4217cf8acf948d71e67886dad7d486f8f3a3 +bash43-008 9941a98a4987192cc5ce3d45afe879983cad2f0bec96d441a4edd9033767f95e +bash43-009 c0226d6728946b2f53cdebf090bcd1c01627f01fee03295768605caa80bb40a5 +bash43-010 ce05799c0137314c70c7b6ea0477c90e1ac1d52e113344be8e32fa5a55c9f0b7 +bash43-011 7c63402cdbc004a210f6c1c527b63b13d8bb9ec9c5a43d5c464a9010ff6f7f3b +bash43-012 3e1379030b35fbcf314e9e7954538cf4b43be1507142b29efae39eef997b8c12 +bash43-013 bfa8ca5336ab1f5ef988434a4bdedf71604aa8a3659636afa2ce7c7446c42c79 +bash43-014 5a4d6fa2365b6eb725a9d4966248b5edf7630a4aeb3fa8d526b877972658ac13 +bash43-015 13293e8a24e003a44d7fe928c6b1e07b444511bed2d9406407e006df28355e8d +bash43-016 92d60bcf49f61bd7f1ccb9602bead6f2c9946d79dea0e5ec0589bb3bfa5e0773 +bash43-017 1267c25c6b5ba57042a7bb6c569a6de02ffd0d29530489a16666c3b8a23e7780 +bash43-018 7aa8b40a9e973931719d8cc72284a8fb3292b71b522db57a5a79052f021a3d58 +bash43-019 a7a91475228015d676cafa86d2d7aa9c5d2139aa51485b6bbdebfdfbcf0d2d23 +bash43-020 ca5e86d87f178128641fe91f2f094875b8c1eb2de9e0d2e9154f5d5cc0336c98 +bash43-021 41439f06883e6bd11c591d9d5e9ae08afbc2abd4b935e1d244b08100076520a9 +bash43-022 fd4d47bb95c65863f634c4706c65e1e3bae4ee8460c72045c0a0618689061a88 +bash43-023 9ac250c7397a8f53dbc84dfe790d2a418fbf1fe090bcece39b4a5c84a2d300d4 +bash43-024 3b505882a0a6090667d75824fc919524cd44cc3bd89dd08b7c4e622d3f960f6c +bash43-025 1e5186f5c4a619bb134a1177d9e9de879f3bb85d9c5726832b03a762a2499251 +bash43-026 2ecc12201b3ba4273b63af4e9aad2305168cf9babf6d11152796db08724c214d +bash43-027 1eb76ad28561d27f7403ff3c76a36e932928a4b58a01b868d663c165f076dabe +bash43-028 e8b0dbed4724fa7b9bd8ff77d12c7f03da0fbfc5f8251ef5cb8511eb082b469d +bash43-029 4cc4a397fe6bc63ecb97d030a4e44258ef2d4e076d0e90c77782968cc43d6292 +bash43-030 85434f8a2f379d0c49a3ff6d9ffa12c8b157188dd739e556d638217d2a58385b +bash43-031 cd529f59dd0f2fdd49d619fe34691da6f0affedf87cc37cd460a9f3fe812a61d +bash43-032 889357d29a6005b2c3308ca5b6286cb223b5e9c083219e5db3156282dd554f4a +bash43-033 fb2a7787a13fbe027a7335aca6eb3c21cdbd813e9edc221274b6a9d8692eaa16 +bash43-034 f1694f04f110defe1330a851cc2768e7e57ddd2dfdb0e3e350ca0e3c214ff889 +bash43-035 370d85e51780036f2386dc18c5efe996eba8e652fc1973f0f4f2ab55a993c1e3 +bash43-036 ac5f82445b36efdb543dbfae64afed63f586d7574b833e9aa9cd5170bc5fd27c +bash43-037 33f170dd7400ab3418d749c55c6391b1d161ef2de7aced1873451b3a3fca5813 +bash43-038 adbeaa500ca7a82535f0e88d673661963f8a5fcdc7ad63445e68bf5b49786367 +bash43-039 ab94dced2215541097691f60c3eb323cc28ef2549463e6a5334bbcc1e61e74ec +bash43-040 84bb396b9262992ca5424feab6ed3ec39f193ef5c76dfe4a62b551bd8dd9d76b +bash43-041 4ec432966e4198524a7e0cd685fe222e96043769c9613e66742ac475db132c1a +bash43-042 ac219322db2791da87a496ee6e8e5544846494bdaaea2626270c2f73c1044919"; + +# vim:filetype=sh diff --git a/304.gawk.build b/304.gawk.build deleted file mode 120000 index 5b9b303f..00000000 --- a/304.gawk.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/305.bash.build b/305.bash.build deleted file mode 120000 index 5b9b303f..00000000 --- a/305.bash.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/305.bash.vars b/305.bash.vars deleted file mode 100644 index b1333b3c..00000000 --- a/305.bash.vars +++ /dev/null @@ -1,45 +0,0 @@ -PKG_BASH_PATCHES_EXTRA_MANIFEST=" -bash43-001 ecb3dff2648667513e31554b3ad054ccd89fce38e33367c9459ac3a285153742 -bash43-002 eee7cd7062ab29a9e4f02924d9c367264dcb8b162703f74ff6eb8f175a91502b -bash43-003 000e6eac50cd9053ce0630db01239dcdead04a2c2c351c47e2b51dac1ac1087d -bash43-004 5ea0a42c6506720d26e6d3c5c358e9a0d49f6f189d69a8ed34d5935964821338 -bash43-005 1ac83044032b9f5f11aeca8a344ae3c524ec2156185d3adbb8ad3e7a165aa3fa -bash43-006 a0648ee72d15e4a90c8b77a5c6b19f8d89e28c1bc881657d22fe26825f040213 -bash43-007 1113e321c59cf6a8648a36245bbe4217cf8acf948d71e67886dad7d486f8f3a3 -bash43-008 9941a98a4987192cc5ce3d45afe879983cad2f0bec96d441a4edd9033767f95e -bash43-009 c0226d6728946b2f53cdebf090bcd1c01627f01fee03295768605caa80bb40a5 -bash43-010 ce05799c0137314c70c7b6ea0477c90e1ac1d52e113344be8e32fa5a55c9f0b7 -bash43-011 7c63402cdbc004a210f6c1c527b63b13d8bb9ec9c5a43d5c464a9010ff6f7f3b -bash43-012 3e1379030b35fbcf314e9e7954538cf4b43be1507142b29efae39eef997b8c12 -bash43-013 bfa8ca5336ab1f5ef988434a4bdedf71604aa8a3659636afa2ce7c7446c42c79 -bash43-014 5a4d6fa2365b6eb725a9d4966248b5edf7630a4aeb3fa8d526b877972658ac13 -bash43-015 13293e8a24e003a44d7fe928c6b1e07b444511bed2d9406407e006df28355e8d -bash43-016 92d60bcf49f61bd7f1ccb9602bead6f2c9946d79dea0e5ec0589bb3bfa5e0773 -bash43-017 1267c25c6b5ba57042a7bb6c569a6de02ffd0d29530489a16666c3b8a23e7780 -bash43-018 7aa8b40a9e973931719d8cc72284a8fb3292b71b522db57a5a79052f021a3d58 -bash43-019 a7a91475228015d676cafa86d2d7aa9c5d2139aa51485b6bbdebfdfbcf0d2d23 -bash43-020 ca5e86d87f178128641fe91f2f094875b8c1eb2de9e0d2e9154f5d5cc0336c98 -bash43-021 41439f06883e6bd11c591d9d5e9ae08afbc2abd4b935e1d244b08100076520a9 -bash43-022 fd4d47bb95c65863f634c4706c65e1e3bae4ee8460c72045c0a0618689061a88 -bash43-023 9ac250c7397a8f53dbc84dfe790d2a418fbf1fe090bcece39b4a5c84a2d300d4 -bash43-024 3b505882a0a6090667d75824fc919524cd44cc3bd89dd08b7c4e622d3f960f6c -bash43-025 1e5186f5c4a619bb134a1177d9e9de879f3bb85d9c5726832b03a762a2499251 -bash43-026 2ecc12201b3ba4273b63af4e9aad2305168cf9babf6d11152796db08724c214d -bash43-027 1eb76ad28561d27f7403ff3c76a36e932928a4b58a01b868d663c165f076dabe -bash43-028 e8b0dbed4724fa7b9bd8ff77d12c7f03da0fbfc5f8251ef5cb8511eb082b469d -bash43-029 4cc4a397fe6bc63ecb97d030a4e44258ef2d4e076d0e90c77782968cc43d6292 -bash43-030 85434f8a2f379d0c49a3ff6d9ffa12c8b157188dd739e556d638217d2a58385b -bash43-031 cd529f59dd0f2fdd49d619fe34691da6f0affedf87cc37cd460a9f3fe812a61d -bash43-032 889357d29a6005b2c3308ca5b6286cb223b5e9c083219e5db3156282dd554f4a -bash43-033 fb2a7787a13fbe027a7335aca6eb3c21cdbd813e9edc221274b6a9d8692eaa16 -bash43-034 f1694f04f110defe1330a851cc2768e7e57ddd2dfdb0e3e350ca0e3c214ff889 -bash43-035 370d85e51780036f2386dc18c5efe996eba8e652fc1973f0f4f2ab55a993c1e3 -bash43-036 ac5f82445b36efdb543dbfae64afed63f586d7574b833e9aa9cd5170bc5fd27c -bash43-037 33f170dd7400ab3418d749c55c6391b1d161ef2de7aced1873451b3a3fca5813 -bash43-038 adbeaa500ca7a82535f0e88d673661963f8a5fcdc7ad63445e68bf5b49786367 -bash43-039 ab94dced2215541097691f60c3eb323cc28ef2549463e6a5334bbcc1e61e74ec -bash43-040 84bb396b9262992ca5424feab6ed3ec39f193ef5c76dfe4a62b551bd8dd9d76b -bash43-041 4ec432966e4198524a7e0cd685fe222e96043769c9613e66742ac475db132c1a -bash43-042 ac219322db2791da87a496ee6e8e5544846494bdaaea2626270c2f73c1044919"; - -# vim:filetype=sh diff --git a/305.make.build b/305.make.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/305.make.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/306.libz.build b/306.libz.build new file mode 100644 index 00000000..a6f48d59 --- /dev/null +++ b/306.libz.build @@ -0,0 +1,42 @@ +parse_with_pkg_name ${2} libz gzip; +if is_build_script_done finished; then + exit 212; +else + fetch ${PKG_URL} ${PKG_SHA256SUM}; +fi; +if ! is_build_script_done extracted; then + rm_if_exists ${PKG_FNAME%%.tar*}; + tar -axf ${PKG_FNAME}; + set_build_script_done extracted -configured; +fi; +if ! is_build_script_done configured; then + set_build_dir ${PKG_FNAME%%-*} native; + rm_if_exists -c -m ${BUILD_DIR}; + cp ../portage/config.cache .; + ../${PKG_SUBDIR}/configure \ + --host=${HOST_NATIVE} \ + --prefix= \ + --target=${TARGET}; + set_build_script_done configured -built; +else + cd ${BUILD_DIR}; +fi; +if ! is_build_script_done built; then + if [ "x${2}" = "xlibz" ]; then + make -j18; + elif [ "x${2}" = "xgzip" ]; then + make clean; + make; + fi; + set_build_script_done built -installed; +fi; +if ! is_build_script_done installed; then + if [ "x${2}" = "xlibz" ]; then + make -j18 DESTDIR=${PREFIX_NATIVE} install; + elif [ "x${2}" = "xgzip" ]; then + cp gunzip gzip zcat ${PREFIX_NATIVE}/bin; + fi; + set_build_script_done installed finished; +fi; + +# vim:filetype=sh diff --git a/306.make.build b/306.make.build deleted file mode 120000 index 5b9b303f..00000000 --- a/306.make.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/307.gzip.build b/307.gzip.build new file mode 120000 index 00000000..bee571a6 --- /dev/null +++ b/307.gzip.build @@ -0,0 +1 @@ +306.libz.build \ No newline at end of file diff --git a/307.libz.build b/307.libz.build deleted file mode 100644 index a6f48d59..00000000 --- a/307.libz.build +++ /dev/null @@ -1,42 +0,0 @@ -parse_with_pkg_name ${2} libz gzip; -if is_build_script_done finished; then - exit 212; -else - fetch ${PKG_URL} ${PKG_SHA256SUM}; -fi; -if ! is_build_script_done extracted; then - rm_if_exists ${PKG_FNAME%%.tar*}; - tar -axf ${PKG_FNAME}; - set_build_script_done extracted -configured; -fi; -if ! is_build_script_done configured; then - set_build_dir ${PKG_FNAME%%-*} native; - rm_if_exists -c -m ${BUILD_DIR}; - cp ../portage/config.cache .; - ../${PKG_SUBDIR}/configure \ - --host=${HOST_NATIVE} \ - --prefix= \ - --target=${TARGET}; - set_build_script_done configured -built; -else - cd ${BUILD_DIR}; -fi; -if ! is_build_script_done built; then - if [ "x${2}" = "xlibz" ]; then - make -j18; - elif [ "x${2}" = "xgzip" ]; then - make clean; - make; - fi; - set_build_script_done built -installed; -fi; -if ! is_build_script_done installed; then - if [ "x${2}" = "xlibz" ]; then - make -j18 DESTDIR=${PREFIX_NATIVE} install; - elif [ "x${2}" = "xgzip" ]; then - cp gunzip gzip zcat ${PREFIX_NATIVE}/bin; - fi; - set_build_script_done installed finished; -fi; - -# vim:filetype=sh diff --git a/308.grep.build b/308.grep.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/308.grep.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/308.gzip.build b/308.gzip.build deleted file mode 120000 index 84e1ba09..00000000 --- a/308.gzip.build +++ /dev/null @@ -1 +0,0 @@ -307.libz.build \ No newline at end of file diff --git a/309.grep.build b/309.grep.build deleted file mode 120000 index 5b9b303f..00000000 --- a/309.grep.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/309.sed.build b/309.sed.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/309.sed.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/310.sed.build b/310.sed.build deleted file mode 120000 index 5b9b303f..00000000 --- a/310.sed.build +++ /dev/null @@ -1 +0,0 @@ -300.coreutils.build \ No newline at end of file diff --git a/build.subr b/build.subr index ea487558..82e73b32 100644 --- a/build.subr +++ b/build.subr @@ -98,10 +98,11 @@ parse_with_pkg_name() { if [ "x${PKG_NAME}" = "x${1}" ]; then _pkg_NAME=$(echo "${PKG_NAME}" | tr a-z A-Z); for _vname in \ - configure_extra_args no_libtool_midipix \ + build_type configure_args configure_extra_args \ + no_config_cache no_libtool_midipix \ patches_extra prefix prefix_extra sha256sum \ url version \ - CC CFLAGS LDFLAGS DESTDIR; do + CC CFLAGS DESTDIR LDFLAGS; do _vNAME=$(echo "${_vname}" | tr a-z A-Z); if [ -n "${_vval:=$(eval echo \${PKG_${_pkg_NAME}_${_vNAME}})}" ]; then export PKG_${_vNAME}="${_vval}"; diff --git a/build.vars b/build.vars index d18e2d3e..faf98ff9 100644 --- a/build.vars +++ b/build.vars @@ -37,6 +37,14 @@ TIMESTAMP_FMT="%Y/%m/%d %H:%M:%S"; : ${PKG_BINUTILS_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa}; : ${PKG_BINUTILS_VERSION:=2.24.51}; : ${PKG_BINUTILS_URL:=ftp://sourceware.org/pub/binutils/snapshots/binutils-${PKG_BINUTILS_VERSION}.tar.bz2}; +: ${PKG_BINUTILS_HOST_BUILD_TYPE:=cross}; +: ${PKG_BINUTILS_HOST_CONFIGURE_ARGS:=--disable-werror --prefix=${PREFIX} --with-sysroot=${PREFIX_TARGET}}; +: ${PKG_BINUTILS_HOST_DESTDIR:=}; +: ${PKG_BINUTILS_HOST_NO_CONFIG_CACHE:=1}; +: ${PKG_BINUTILS_HOST_NO_LIBTOOL_MIDIPIX:=1}; +: ${PKG_BINUTILS_HOST_SHA256SUM:=250d3b2925c6b211fb16173b0b25bc091c58829fbcad3eb849645e0af52cf7fa}; +: ${PKG_BINUTILS_HOST_VERSION:=2.24.51}; +: ${PKG_BINUTILS_HOST_URL:=ftp://sourceware.org/pub/binutils/snapshots/binutils-${PKG_BINUTILS_VERSION}.tar.bz2}; : ${PKG_COREUTILS_SHA256SUM:=ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d}; : ${PKG_COREUTILS_VERSION:=8.23}; : ${PKG_COREUTILS_URL:=https://ftp.gnu.org/gnu/coreutils/coreutils-${PKG_COREUTILS_VERSION}.tar.xz}; diff --git a/pkg.build b/pkg.build new file mode 100644 index 00000000..2624096a --- /dev/null +++ b/pkg.build @@ -0,0 +1,76 @@ +parse_with_pkg_name ${2} \ + bash binutils binutils_host coreutils diffutils \ + findutils gawk gmp grep libelf make mpc mpfr \ + patch sed; +if is_build_script_done finished; then + exit 212; +else + fetch ${PKG_URL} ${PKG_SHA256SUM}; + if [ "x${SCRIPT_FNAME%[0-9][0-9]*}" = "x1" ]; then + _configure_args="--host=${HOST_NATIVE} --prefix=${PKG_PREFIX:-/}"; + PKG_NO_CONFIG_CACHE=1; + else + _configure_args=${PKG_CONFIGURE_ARGS:--C --host=${HOST_NATIVE} --prefix=}; + fi; + : ${DESTDIR:=${PREFIX_NATIVE}}; + set_build_dir ${PKG_SUBDIR} ${PKG_BUILD_TYPE:-native}; +fi; +if ! is_build_script_done extracted; then + rm_if_exists ${PKG_SUBDIR}; + tar -axf ${PKG_FNAME}; + set_build_script_done extracted -patched; +fi; +if ! is_build_script_done patched; then + if [ -n "${PKG_PATCHES_EXTRA}" ]; then + (rm_if_exists -m -c ${PKG_SUBDIR}-patches-extra; + wget -c -nd -np -r -R \*.htm\* -R \*.sig ${PKG_PATCHES_EXTRA} + for _patch_fname in \ + $(find . -type f -not -iname \*.sig | sort); do + patch -d ../${PKG_SUBDIR} -p0 \ + < ${_patch_fname}; + done; + for _patch_fname in ${PKG_PATCHES_EXTRA_MANIFEST}; do + _patch_sha256sum=${2}; shift; + if ! compare_hash ${_patch_fname} ${_patch_sha256sum}; then + log_msg fail "Error: hash mismatch for patch file \`${_patch_fname}'."; + exit 1; + fi; + done); wait; + fi; + patch -d ${PKG_SUBDIR} -p1 \ + < portage/${PKG_SUBDIR}.midipix.patch; + if [ ${PKG_NO_LIBTOOL_MIDIPIX:-0} -eq 0 ]; then + cp portage/libtool.midipix ${PKG_SUBDIR}/; + fi; + set_build_script_done patched -configured; +fi; +if ! is_build_script_done configured; then + rm_if_exists -m -c ${BUILD_DIR}; + [ ${PKG_NO_CONFIG_CACHE:-0} -eq 0 ] &&\ + cp ../portage/config.cache .; + ../${PKG_SUBDIR}/configure \ + ${_configure_args} \ + --target=${TARGET} \ + ${PKG_CONFIGURE_EXTRA_ARGS}; + set_build_script_done configured -built; +else + cd ${BUILD_DIR}; +fi; +if ! is_build_script_done built; then + make ${MAKEFLAGS}; + set_build_script_done built -installed; +fi; +if ! is_build_script_done installed1; then + make ${MAKEFLAGS} ${DESTDIR:+DESTDIR=${DESTDIR}} install; + set_build_script_done installed1 -installed2 -finished; +fi; +if [ -n "${PKG_PREFIX_EXTRA}" ]\ +&& ! is_build_script_done installed2; then + make DESTDIR=${PKG_PREFIX_EXTRA} install; + set_build_script_done installed2 -finished; +elif command -v pkg_${PKG_NAME}_install_post >/dev/null; then + pkg_${PKG_NAME}_install_post; +fi; +set_build_script_done finished; + +# vim:filetype=sh -- cgit v1.2.3