From a14544b83763f0a680a3df4d41d9a61b5728c891 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Wed, 15 Jun 2016 01:35:08 +0000 Subject: [PATCH] Add compiling[?] kbuild --- dev-util/kbuild/Manifest | 20 +++++++ .../kbuild/files/0001-unknown-configure-opt.patch | 25 ++++++++ dev-util/kbuild/files/0002-glibc-2.10.patch | 48 +++++++++++++++ dev-util/kbuild/files/0003-gentoo-docdir.patch | 25 ++++++++ dev-util/kbuild/files/0004-have-unistd.h.patch | 27 +++++++++ dev-util/kbuild/files/0005-kash-link-pthread.patch | 24 ++++++++ dev-util/kbuild/files/0006-another-pthread.patch | 25 ++++++++ dev-util/kbuild/files/0007-gcc-4.7.patch | 25 ++++++++ dev-util/kbuild/files/0008-allperms.patch | 43 +++++++++++++ dev-util/kbuild/files/0009-getloadavg.patch | 44 ++++++++++++++ dev-util/kbuild/files/0010-glob.patch | 33 ++++++++++ dev-util/kbuild/files/0011-kobjcache.patch | 24 ++++++++ dev-util/kbuild/files/0012-lchmod.patch | 42 +++++++++++++ dev-util/kbuild/files/0013-obstack.patch | 56 +++++++++++++++++ dev-util/kbuild/files/0014-strlcpy.patch | 25 ++++++++ dev-util/kbuild/files/0015-sys-types.h.patch | 26 ++++++++ dev-util/kbuild/files/0016-sys_siglist.patch | 43 +++++++++++++ dev-util/kbuild/files/0017-uclibc.patch | 39 ++++++++++++ .../kbuild/files/0018-strlcpy-exists-on-musl.patch | 28 +++++++++ .../kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild | 70 ++++++++++++++++++++++ 20 files changed, 692 insertions(+) create mode 100644 dev-util/kbuild/Manifest create mode 100644 dev-util/kbuild/files/0001-unknown-configure-opt.patch create mode 100644 dev-util/kbuild/files/0002-glibc-2.10.patch create mode 100644 dev-util/kbuild/files/0003-gentoo-docdir.patch create mode 100644 dev-util/kbuild/files/0004-have-unistd.h.patch create mode 100644 dev-util/kbuild/files/0005-kash-link-pthread.patch create mode 100644 dev-util/kbuild/files/0006-another-pthread.patch create mode 100644 dev-util/kbuild/files/0007-gcc-4.7.patch create mode 100644 dev-util/kbuild/files/0008-allperms.patch create mode 100644 dev-util/kbuild/files/0009-getloadavg.patch create mode 100644 dev-util/kbuild/files/0010-glob.patch create mode 100644 dev-util/kbuild/files/0011-kobjcache.patch create mode 100644 dev-util/kbuild/files/0012-lchmod.patch create mode 100644 dev-util/kbuild/files/0013-obstack.patch create mode 100644 dev-util/kbuild/files/0014-strlcpy.patch create mode 100644 dev-util/kbuild/files/0015-sys-types.h.patch create mode 100644 dev-util/kbuild/files/0016-sys_siglist.patch create mode 100644 dev-util/kbuild/files/0017-uclibc.patch create mode 100644 dev-util/kbuild/files/0018-strlcpy-exists-on-musl.patch create mode 100644 dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild diff --git a/dev-util/kbuild/Manifest b/dev-util/kbuild/Manifest new file mode 100644 index 0000000..5ec7738 --- /dev/null +++ b/dev-util/kbuild/Manifest @@ -0,0 +1,20 @@ +AUX 0001-unknown-configure-opt.patch 738 SHA256 d783688d26505d9170a07f6edab948155de711826ff924e25e73e31eeaf57c85 SHA512 0e474606749daa82d6a1ab5b52487a94e8cb4a484e7b13d14464a994135ddbe2d8a7c7522b4c84421f90708313f2b98ca83f7806b2b95468a1ae1ae44a30e6b9 WHIRLPOOL 7ae6fa3760bad776a9d75347e151b381212763645912c144d759aec8c2a5c4cd67f506867e0dd3feb219b55d35b4fcfadf6e8f7d0f25eb6f411bd126d5e61046 +AUX 0002-glibc-2.10.patch 1263 SHA256 5e2de3949f358813f7c991f079252feb1404c7385bba7f9aaa2dc77b0debcfd5 SHA512 1dc958504a9ef4a1acb8b3e674d0e18e2f3555944f0e11e097aec8d8948b4bb4f9a78c53c42c524b5a69da8ebaa72d37005ee502689ab62839258a9eb61d1b75 WHIRLPOOL c8f933c3309e6d0e42e162e14c6b22de353000bb7f73f1d4f2c1139d2e1624b57843743f4cace97f20c14883ae85c50d88ec309bcfe473d0ac29c45e7e8d3c7e +AUX 0003-gentoo-docdir.patch 717 SHA256 648c221544c593633c8d01fb490e46e5eca42a3daace505fe72245700a80e978 SHA512 6d58bc4748cd29f31c1131353e2c10f4d067c6d627fdf91badba2492f9997f6437260d6cccd79375495c294d26787843028a3bf5e25bbb3df3bb5d3515d17fb2 WHIRLPOOL 86d5d2f02b1a35414de87430afcfe21ebad98a1a09a69d0e7729ff2521858af9db32c3a1413051833739076578bf59d7ed5fd4f040ed19abd3999a21650dafcb +AUX 0004-have-unistd.h.patch 592 SHA256 22fde29ad67cc311665b39b967401b8bb2bdcca39f5fc404a4da9c10cd447aad SHA512 c98f04116501b5a925f8de9a7949536ae324e50ad70e519985f5620df6ac83e83d75ebf58874f8229e225d5d68e39f810b806392e3a686402f931a73f4e1db24 WHIRLPOOL 6af70ec2f7521d924dc02131768dc4c1fa9a464ac206a5eec5f91234649f461097924abf7593a2de7f56627649328e0263ec8181ed6d37a9473453fd6d48b299 +AUX 0005-kash-link-pthread.patch 661 SHA256 f7e3cba2b1f6aa574a65e1f5aa263fd290196550f623895fbea0b6186ad1c5a1 SHA512 459520770bfe8614fb1e85fca6a000c90764d718d0d9e5d287a6bd54acbcb54938bcfc17878bdf13863545e6809e94ca53e03ae7cc521981831264bd70920ba4 WHIRLPOOL ab3fff8f7b5e1a11cf5bd6e98b5a7f33e828ce6bea971721bfbcf22736785d44a1b1367b2e361678d16efaaede09b8c58ca631275a405ddbbd0d8fc3098f0c85 +AUX 0006-another-pthread.patch 990 SHA256 5ff34d4a081586b91131ed18db67ffa1eea78f90bd90391a4889a151cde7d2c0 SHA512 dd8bd57791e266c03f9b97025c711d95482630488103bf93b7f9c9ff10ed973432552f04152725c11ea1982c311175aa463bc283436d493ca331891411af57ff WHIRLPOOL b33ab0203bb05971f60e6f9c344707c62d19f27cd0ffc288bd7f71211472bedf4406ea86b0b7c0a6d1b8ecbc166263878b79af4d78995357b716fd73c3d380a8 +AUX 0007-gcc-4.7.patch 708 SHA256 baa37a2cbadefe0d0deeb51898836f92a9f5c6e49eb0357cfcbdaa30bdf78624 SHA512 237cb07d2b03115637891fbb47e71b86dba2b8a9d47983bad23ba770b06d44e0ae0eb6a2d5470dd8792670b3b3c3e61e7f00e33f5d0caa4dff21e562ec730322 WHIRLPOOL 2c7baa2375da9d39d3ff38368ecae043caa99582b5359ea97d2f4316fe1626c883fabf39c952627fd9857a81d04ff68be81214385cafb0f6f093e114bd27d50f +AUX 0008-allperms.patch 1410 SHA256 bc3710447b0db0f5edebb0e20c31835ab80c824474d6e4d4a76025da02e56270 SHA512 c2babb921ed7581c14dfe8fd941f0ed7fb7c9a54c99cd890494cf4b044bdcdbfe08205eff2bb4477b9961362d11fc210beb217cc8f50f3b7141f5b38afd555ae WHIRLPOOL 848d28ae7bdce91e3fe63bb685d0fc0678d5e512671db193abfd7d98ccdc6cbdf45d83ddbad9b8c6caa4fc0f7dd12a0bb9b857d7ccb5106138e71d7e87d1d9a0 +AUX 0009-getloadavg.patch 1071 SHA256 c02feb5c5089a460b4d8903fccdd7a794220deb710b8ca54bfd533bd4c7e4782 SHA512 fedb0822bd281607b015c5afde641ce4a31699bbdad85058a544bf4e2782c545f4ae0451e752e3556617dca5bd77016b66016afb3fb66a3b3e5d62e483b96a3d WHIRLPOOL af61bdd178aa84f105a1e9c1e3a86b86d6a60c79552af1de7e33c7ad104b388b982eff4eed15468a2d13ce02fa1c23ffb82a48988b25d4863f2dc53db5d92761 +AUX 0010-glob.patch 1027 SHA256 f2653440208f6ba622d37c37eff44a29d63a4c6bb2eaadf55f7e620b398a105f SHA512 5559ee0da5a8d8a1681d3f74c2f6d54f4e99859c8db5193a307fc18bfeccff99eac5f630807cb31ed6a3bc5fa405f50752b3a2b7cafc75ddd0ca904e2a8b5fd9 WHIRLPOOL 7d632b3b888fd087c99f77cbe17001f00b6d371155c5a17aebbba81ce53ae08cdb4a24a17ebc73b5daf2b02a6355d0bb86cec82e600f1dc1e589e1238f367185 +AUX 0011-kobjcache.patch 592 SHA256 e790300f1952923d9db569a180cbfa8ee49d3548146f41b2183e3495d4bc14a8 SHA512 f9255ffb07dcf5a0ddfa27b4ff591dd7cf048eebbf8ce270edc86856d92e0e9df522a1b7c82bb6d166a68eb49da8857105e080ac7f7edb61df637ab84af7567c WHIRLPOOL 6f0b07248f311b9a5f214667c17497db464c1d0cecd57aae40fd04736fe74c92a48c4d74c92ab1560cb512cf2b336edbab1bd93b6af86440f72b6523727da9a3 +AUX 0012-lchmod.patch 1214 SHA256 539d3bbaa532b9e527a2a737443d446a6fd94889fc9feed00e982f67f6ec6980 SHA512 937e446e180293db7b1f6b9c1f44d846d4b7f8c7516b076f45ee08d33c9e53f9c2d96197f156f91009d96ac2493f1dd7f09c750a73fa7c4ed6d6f16e2ac2ec0b WHIRLPOOL 8e5129dfeea21a5d4c8f3cf7f96a5b33c10e4673443d3edb20e2b6262e1cf2e6d5216bf533f37403cb785ac8eb1a9b71a1fa0865826335c9527edbb34f9eba8b +AUX 0013-obstack.patch 1261 SHA256 66ff044a0e0ea8bb39804d47a9de5e74ba46d3641a4124224698d1222ed3e31e SHA512 38204152082e317b9d2420cfcf854c4251e49a49da594b301cf140be4f3123a3b4f51b8f8a3c8449fcc80cc1a8aed8ffc637fef52443370c579a5f2ce8d9c909 WHIRLPOOL 07a4a9aa3457ef8389a1c493ee7e6e7f56fef999f2d18a229582663727e41231b6d58c1d87d232d2b3638295969c304b9a27334a78fc08398c3f4293c60e1562 +AUX 0014-strlcpy.patch 792 SHA256 dd8bed43d4ba59e2f4a3fcda9c836e2178cf5ec356ab6c102ae49d4cc6cd22f1 SHA512 9af5a4e76a95c6e6429586ec9985ecf2c879ed6baa124943fc407854c77db1beb0471f65cbdf06e75a1638b746b0b7d93466610144f7ec1d45c6af6589a70e5c WHIRLPOOL 151cc5444b64537ac592586b27205c81a203ca6497fa7909961a0e122ccf3d9a5d268ba41a5ec4da6b48ebb7d13bc6373efb6c0faa715958977afded500ed25b +AUX 0015-sys-types.h.patch 675 SHA256 6684564b86aa59f65aa0fb0f40c4a551c6d4591cbfcdb59347c58515fbb3b837 SHA512 fb56799ed0cccff0c80de666a99fba32ac65c92efa9e4c73e806f640b47eef567c72aa602e90b90ea3d232e02963139ce48f877e2e803bec331d1e3bf3330b03 WHIRLPOOL 47cc7d02fe0c126f67b88ceeb31e4b3eae5935e00722df52dc7f14e9cf54d1b4189c7c2d3473f5b2102a6da07a45fe6a8aa394829392571ce44cd4703a405935 +AUX 0016-sys_siglist.patch 1305 SHA256 0dff0941189a7c60313d78b0771cda1e6b869271e282547e069677ea3bae0ebb SHA512 1ad1ba53003c7d1e3c4b090e2f3508a76d3e8e7f6a328ea54b913a5d520281384b7a98e1606f8a578538a6fb7e22d5b199499714ae1445290a858083f88c02aa WHIRLPOOL fd2ca3f09f6664c65693f18e7518c7c61a013980415e5c7c294a966c1f94b316fbf01dd1714660942c4bf38cbdac7a5e5b57496cd9834d0240ccc83bf35b8845 +AUX 0017-uclibc.patch 1198 SHA256 9118ad70d8ca1c092f996d05ef4bd09fd63517ba2c220b108364a58db47bab40 SHA512 2a84eaa1db79a53a9c1fe06b4796bea83338e3c48dbdc610132794d8d1dc3346e1a60a8568ce6dc5bd907a538d08180f90e7d50a0b9ddf5191bead306e3d752e WHIRLPOOL d287c96009fb9e8292766c873246f28caa1a3e8b8d86c814feb93131de3d53a0600ccd6ce8c8be85cf0696daefa002e79d0c72bc847050a9a38e1ed37cc31b97 +AUX 0018-strlcpy-exists-on-musl.patch 785 SHA256 3419fb007a2359e380c45377dc3de3a6635591d2eaec88ed7bd3fa5a3f62c53f SHA512 5610e7125ffef8695caa8ed31f5a50526726dca71ccc0d4b0851798df3ea582608b3918b04483b1abd6180f12cc482b01dfc454a3b66fcc6a99367b57736b897 WHIRLPOOL 07ad1c12445190884292a06b03e94e722317a7276e4ebd9cc46911cef08a8e423c61bc663a754bc6654e6574099b29889bddfac757b712a2b5dccdeb6f7c9a17 +DIST kBuild-0.1.9998-pre20131130-src.tar.xz 1707632 SHA256 def0a44cc0a91b6aa8a80f73ace0cfc315f298ba3e0d3d81fe52834091b68586 SHA512 66f418c0e052389d2b5cfc4d46bc8598ceaeded369151047e455e921bef494ec42099cdc368d24b572eacd809bb7c124d07e0fab54788af01664b72f571fb047 WHIRLPOOL 95caf78eaa6ead0d9a009879a2ba9a01b138760345eb38a6786ceaf0262520e1827b5e4401884cd6d3849bfa5528f45a9a5cdac5ae61e6cbd1753dec0ba0da2f +EBUILD kbuild-0.1.9998_pre20131130-r1.ebuild 1965 SHA256 13b25e9b5076bc45ad543e3ca97185071e0f8d4c11836b3eafc206cf586f881c SHA512 792d86c0607d5ff0d5a23e8bc3d642fb5a89604110e75fc3fbe849e4156f14faff156aec55f64d47e0b2dd725d7565c813d999a0c627e13dd6b022b6db1c1104 WHIRLPOOL b9b5c7c23cc7880c16183ee618ed2497044f5c1440363169c55d0b76bd80de77289c37068ff1c73579b30858792d02e7a3c83fb2c91b8cb327e6295330e2240d diff --git a/dev-util/kbuild/files/0001-unknown-configure-opt.patch b/dev-util/kbuild/files/0001-unknown-configure-opt.patch new file mode 100644 index 0000000..5edee0c --- /dev/null +++ b/dev-util/kbuild/files/0001-unknown-configure-opt.patch @@ -0,0 +1,25 @@ +From d098f5a3564a98584656f4db9cf8ab432cea4143 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:50:14 +0000 +Subject: [PATCH 01/17] unknown-configure-opt + +--- + bootstrap.gmk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bootstrap.gmk b/bootstrap.gmk +index 8cbb233..7a49857 100644 +--- a/bootstrap.gmk ++++ b/bootstrap.gmk +@@ -182,7 +182,7 @@ $(OUTDIR)/sed/ts-autoreconf: + echo done > $@ + + $(OUTDIR)/sed/ts-configured: $(OUTDIR)/sed/ts-autoreconf +- cd $(OUTDIR)/sed && $(SRCDIR)/src/sed/configure --without-libintl --disable-nls ++ cd $(OUTDIR)/sed && $(SRCDIR)/src/sed/configure --disable-nls + echo done > $@ + + $(OUTDIR)/sed/config.h: $(OUTDIR)/sed/ts-configured +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0002-glibc-2.10.patch b/dev-util/kbuild/files/0002-glibc-2.10.patch new file mode 100644 index 0000000..d8493cc --- /dev/null +++ b/dev-util/kbuild/files/0002-glibc-2.10.patch @@ -0,0 +1,48 @@ +From 0106c534bf1414284fc35157186bc943e012c268 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:50:38 +0000 +Subject: [PATCH 02/17] glibc 2.10 + +--- + src/ash/output.c | 2 ++ + src/ash/output.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/src/ash/output.c b/src/ash/output.c +index e667812..05a562d 100644 +--- a/src/ash/output.c ++++ b/src/ash/output.c +@@ -230,6 +230,7 @@ out1fmt(const char *fmt, ...) + va_end(ap); + } + ++#if 0 + void + dprintf(const char *fmt, ...) + { +@@ -240,6 +241,7 @@ dprintf(const char *fmt, ...) + va_end(ap); + flushout(out2); + } ++#endif + + void + fmtstr(char *outbuf, size_t length, const char *fmt, ...) +diff --git a/src/ash/output.h b/src/ash/output.h +index 8f03e8d..83f7bd8 100644 +--- a/src/ash/output.h ++++ b/src/ash/output.h +@@ -65,8 +65,10 @@ void outfmt(struct output *, const char *, ...) + __attribute__((__format__(__printf__,2,3))); + void out1fmt(const char *, ...) + __attribute__((__format__(__printf__,1,2))); ++#if 0 + void dprintf(const char *, ...) + __attribute__((__format__(__printf__,1,2))); ++#endif + void fmtstr(char *, size_t, const char *, ...) + __attribute__((__format__(__printf__,3,4))); + void doformat(struct output *, const char *, va_list); +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0003-gentoo-docdir.patch b/dev-util/kbuild/files/0003-gentoo-docdir.patch new file mode 100644 index 0000000..b6de002 --- /dev/null +++ b/dev-util/kbuild/files/0003-gentoo-docdir.patch @@ -0,0 +1,25 @@ +From ae9c301b39e38512262d1ecc0eabb85fc80ae66d Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:50:56 +0000 +Subject: [PATCH 03/17] gentoo docdir + +--- + Config.kmk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Config.kmk b/Config.kmk +index 23b75cc..6974569 100644 +--- a/Config.kmk ++++ b/Config.kmk +@@ -157,7 +157,7 @@ ifdef NIX_INSTALL_DIR + MY_INST_DATA := $(MY_INST_ROOT)share/kBuild/ + endif + ifndef MY_INST_DOC +- MY_INST_DOC := $(MY_INST_ROOT)share/doc/kBuild-$(KBUILD_VERSION)/ ++ MY_INST_DOC := $(MY_INST_ROOT)share/doc/$(PF)/ + endif + if !defined(MY_INST_BIN_MODE) && defined(MY_INST_MODE) + MY_INST_BIN_MODE := $(MY_INST_MODE),a+x +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0004-have-unistd.h.patch b/dev-util/kbuild/files/0004-have-unistd.h.patch new file mode 100644 index 0000000..0f8e7ad --- /dev/null +++ b/dev-util/kbuild/files/0004-have-unistd.h.patch @@ -0,0 +1,27 @@ +From c88fc1b12e6740002d2270345f954011bbd25f31 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:51:17 +0000 +Subject: [PATCH 04/17] have unistd.h + +--- + src/sed/lib/utils.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/sed/lib/utils.c b/src/sed/lib/utils.c +index 647fd6d..a3cb95f 100644 +--- a/src/sed/lib/utils.c ++++ b/src/sed/lib/utils.c +@@ -35,6 +35,10 @@ + # include + #endif /* HAVE_STDLIB_H */ + ++#ifdef HAVE_UNISTD_H ++# include ++#endif /* HAVE_UNISTD_H */ ++ + #include "utils.h" + + const char *myname; +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0005-kash-link-pthread.patch b/dev-util/kbuild/files/0005-kash-link-pthread.patch new file mode 100644 index 0000000..8e66cc3 --- /dev/null +++ b/dev-util/kbuild/files/0005-kash-link-pthread.patch @@ -0,0 +1,24 @@ +From e4965a153efd6589865e62477ac410867396cc3a Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:53:06 +0000 +Subject: [PATCH 05/17] kash link pthread + +--- + src/kash/Makefile.kmk | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/kash/Makefile.kmk b/src/kash/Makefile.kmk +index f378c8e..c81a142 100644 +--- a/src/kash/Makefile.kmk ++++ b/src/kash/Makefile.kmk +@@ -61,6 +61,7 @@ kash_ASFLAGS.win.amd64 = -f win64 + if "$(USER)" == "bird" && "$(KBUILD_TARGET)" != "win" + kash_CFLAGS += -std=gnu99 + endif ++kash_LIBS += pthread + kash_CFLAGS.win.amd64 = -GS- + kash_LDFLAGS.win = -DYNAMICBASE:NO + kash_SOURCES = \ +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0006-another-pthread.patch b/dev-util/kbuild/files/0006-another-pthread.patch new file mode 100644 index 0000000..bf7772c --- /dev/null +++ b/dev-util/kbuild/files/0006-another-pthread.patch @@ -0,0 +1,25 @@ +From dbcf53d85cb509bfc6e706d13da6623b3d65ef9c Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:53:59 +0000 +Subject: [PATCH 06/17] another pthread + +--- + src/kmk/Makefile.kmk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/kmk/Makefile.kmk b/src/kmk/Makefile.kmk +index 84c6e9f..e9483c1 100644 +--- a/src/kmk/Makefile.kmk ++++ b/src/kmk/Makefile.kmk +@@ -60,7 +60,7 @@ TEMPLATE_BIN-KMK_INCS.freebsd = glob + TEMPLATE_BIN-KMK_INCS.haiku = glob + TEMPLATE_BIN-KMK_INCS.openbsd = glob + TEMPLATE_BIN-KMK_INCS.solaris = glob +-TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL) ++TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL) pthread + ifdef ELECTRIC_HEAP # for electric heap (see electric.c) - windows only. + ifeq ($(KBUILD_TARGET),win) + TEMPLATE_BIN-KMK_CFLAGS = $(TEMPLATE_BIN-THREADED_CFLAGS) /FI$(kmk_DEFPATH)/electric.h -DELECTRIC_HEAP=1 +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0007-gcc-4.7.patch b/dev-util/kbuild/files/0007-gcc-4.7.patch new file mode 100644 index 0000000..ffe7c4a --- /dev/null +++ b/dev-util/kbuild/files/0007-gcc-4.7.patch @@ -0,0 +1,25 @@ +From 70f56dd8310e4312a51d2dd410edec0982ad4a35 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:54:23 +0000 +Subject: [PATCH 07/17] gcc 4.7 + +--- + src/sed/lib/regex_internal.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/sed/lib/regex_internal.c b/src/sed/lib/regex_internal.c +index a0b3fa7..536bf39 100644 +--- a/src/sed/lib/regex_internal.c ++++ b/src/sed/lib/regex_internal.c +@@ -781,7 +781,7 @@ re_string_peek_byte_case (const re_string_t *pstr, int idx) + } + + static unsigned char +-internal_function __attribute ((pure)) ++internal_function + re_string_fetch_byte_case (re_string_t *pstr) + { + if (BE (!pstr->mbs_allocated, 1)) +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0008-allperms.patch b/dev-util/kbuild/files/0008-allperms.patch new file mode 100644 index 0000000..3be86e7 --- /dev/null +++ b/dev-util/kbuild/files/0008-allperms.patch @@ -0,0 +1,43 @@ +From ebf670d261916c9a789894442b95662972866e7d Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:54:36 +0000 +Subject: [PATCH 08/17] allperms + +--- + src/kmk/kmkbuiltin/chmod.c | 4 ++++ + src/kmk/kmkbuiltin/install.c | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c +index e6db989..b6a9e23 100644 +--- a/src/kmk/kmkbuiltin/chmod.c ++++ b/src/kmk/kmkbuiltin/chmod.c +@@ -66,6 +66,10 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94"; + #include "getopt.h" + #include "kmkbuiltin.h" + ++#ifndef ALLPERMS ++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ ++#endif ++ + extern void * bsd_setmode(const char *p); + extern mode_t bsd_getmode(const void *bbox, mode_t omode); + extern void bsd_strmode(mode_t mode, char *p); +diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c +index 13bec72..08d8ffe 100644 +--- a/src/kmk/kmkbuiltin/install.c ++++ b/src/kmk/kmkbuiltin/install.c +@@ -127,6 +127,10 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode); + # define IS_SLASH(ch) ((ch) == '/') + #endif + ++#ifndef ALLPERMS ++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ ++#endif ++ + static gid_t gid; + static uid_t uid; + static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose, mode_given; +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0009-getloadavg.patch b/dev-util/kbuild/files/0009-getloadavg.patch new file mode 100644 index 0000000..272bced --- /dev/null +++ b/dev-util/kbuild/files/0009-getloadavg.patch @@ -0,0 +1,44 @@ +From c40b97b6e44a85c811176161f42b456ad7b5399e Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:54:46 +0000 +Subject: [PATCH 09/17] getloadavg + +--- + src/kmk/job.c | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +diff --git a/src/kmk/job.c b/src/kmk/job.c +index 46c5939..0b8e4e4 100644 +--- a/src/kmk/job.c ++++ b/src/kmk/job.c +@@ -256,6 +256,27 @@ unsigned long job_counter = 0; + + unsigned int jobserver_tokens = 0; + ++#ifdef __UCLIBC__ ++int getloadavg(double list[], int nelem) ++{ ++ FILE *LOADAVG; ++ double avg[3] = { 0.0, 0.0, 0.0 }; ++ int i, res = -1; ++ ++ if ((LOADAVG = fopen("/proc/loadavg", "r"))) { ++ fscanf(LOADAVG, "%lf %lf %lf", &avg[0], &avg[1], &avg[2]); ++ res = 0; ++ fclose(LOADAVG); ++ } ++ ++ for (i = 0; (i < nelem) && (i < 3); i++) { ++ list[i] = avg[i]; ++ } ++ ++ return res; ++} ++#endif ++ + #ifdef WINDOWS32 + /* + * The macro which references this function is defined in make.h. +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0010-glob.patch b/dev-util/kbuild/files/0010-glob.patch new file mode 100644 index 0000000..1111da9 --- /dev/null +++ b/dev-util/kbuild/files/0010-glob.patch @@ -0,0 +1,33 @@ +From b4971320fd07bfa9e5a76cda2ec885c6ed31c35c Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:55:52 +0000 +Subject: [PATCH 10/17] glob + +--- + src/kmk/Makefile.kmk | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/kmk/Makefile.kmk b/src/kmk/Makefile.kmk +index e9483c1..4e5820d 100644 +--- a/src/kmk/Makefile.kmk ++++ b/src/kmk/Makefile.kmk +@@ -60,6 +60,7 @@ TEMPLATE_BIN-KMK_INCS.freebsd = glob + TEMPLATE_BIN-KMK_INCS.haiku = glob + TEMPLATE_BIN-KMK_INCS.openbsd = glob + TEMPLATE_BIN-KMK_INCS.solaris = glob ++TEMPLATE_BIN-KMK_INCS.linux = glob + TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL) pthread + ifdef ELECTRIC_HEAP # for electric heap (see electric.c) - windows only. + ifeq ($(KBUILD_TARGET),win) +@@ -108,7 +109,7 @@ kmkmissing_SOURCES.haiku = \ + glob/fnmatch.c + + kmkmissing_SOURCES.linux += \ +- kmkbuiltin/strlcpy.c ++ glob/glob.c getloadavg.c + + kmkmissing_SOURCES.openbsd = \ + kmkbuiltin/openbsd.c \ +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0011-kobjcache.patch b/dev-util/kbuild/files/0011-kobjcache.patch new file mode 100644 index 0000000..f755419 --- /dev/null +++ b/dev-util/kbuild/files/0011-kobjcache.patch @@ -0,0 +1,24 @@ +From 9f8aba0ba89a72873e97d53cf49ac025f4bd31e9 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:56:36 +0000 +Subject: [PATCH 11/17] kobjcache + +--- + src/kObjCache/kObjCache.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/kObjCache/kObjCache.c b/src/kObjCache/kObjCache.c +index d6badb7..34f6744 100644 +--- a/src/kObjCache/kObjCache.c ++++ b/src/kObjCache/kObjCache.c +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0012-lchmod.patch b/dev-util/kbuild/files/0012-lchmod.patch new file mode 100644 index 0000000..74d2e16 --- /dev/null +++ b/dev-util/kbuild/files/0012-lchmod.patch @@ -0,0 +1,42 @@ +From da1731fcd56e67c6343be54ee99cee421d4616ca Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:56:46 +0000 +Subject: [PATCH 12/17] lchmod + +--- + src/kmk/kmkbuiltin/chmod.c | 4 ++-- + src/kmk/kmkbuiltin/cp_utils.c | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c +index b6a9e23..8edce38 100644 +--- a/src/kmk/kmkbuiltin/chmod.c ++++ b/src/kmk/kmkbuiltin/chmod.c +@@ -184,9 +184,9 @@ done: argv += optind; + } else + fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL; + +- if (hflag) ++/* if (hflag) + change_mode = lchmod; +- else ++ else */ + change_mode = chmod; + + mode = *argv; +diff --git a/src/kmk/kmkbuiltin/cp_utils.c b/src/kmk/kmkbuiltin/cp_utils.c +index 5410f6f..d444eb2 100644 +--- a/src/kmk/kmkbuiltin/cp_utils.c ++++ b/src/kmk/kmkbuiltin/cp_utils.c +@@ -364,7 +364,7 @@ setfile(struct stat *fs, int fd) + + if (!gotstat || fs->st_mode != ts.st_mode) + if (fdval ? fchmod(fd, fs->st_mode) : +- (islink ? lchmod(to.p_path, fs->st_mode) : ++ (islink ? chmod(to.p_path, fs->st_mode) : + chmod(to.p_path, fs->st_mode))) { + warn("chmod: %s", to.p_path); + rval = 1; +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0013-obstack.patch b/dev-util/kbuild/files/0013-obstack.patch new file mode 100644 index 0000000..9ec33d2 --- /dev/null +++ b/dev-util/kbuild/files/0013-obstack.patch @@ -0,0 +1,56 @@ +From f745965314368d4f470205f2b3f4de2d8985233f Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:56:57 +0000 +Subject: [PATCH 13/17] obstack + +--- + src/sed/Makefile.kmk | 12 +++--------- + 1 file changed, 3 insertions(+), 9 deletions(-) + +diff --git a/src/sed/Makefile.kmk b/src/sed/Makefile.kmk +index 290a64e..5b22ea7 100644 +--- a/src/sed/Makefile.kmk ++++ b/src/sed/Makefile.kmk +@@ -56,36 +56,30 @@ kmk_sed_SOURCES = \ + sed/mbcs.c \ + lib/getopt1.c \ + lib/getopt.c \ ++ lib/obstack.c \ + lib/utils.c + kmk_sed_SOURCES.darwin = \ + lib/strverscmp.c \ +- lib/obstack.c \ + lib/getline.c + kmk_sed_SOURCES.dragonfly = \ + lib/strverscmp.c \ +- lib/obstack.c \ + lib/getline.c + kmk_sed_SOURCES.freebsd = \ + lib/strverscmp.c \ +- lib/obstack.c \ + lib/getline.c + kmk_sed_SOURCES.haiku = \ +- lib/strverscmp.c \ +- lib/obstack.c ++ lib/strverscmp.c + kmk_sed_SOURCES.openbsd = \ + lib/strverscmp.c \ +- lib/obstack.c \ + lib/getline.c + kmk_sed_SOURCES.solaris = \ +- lib/strverscmp.c \ +- lib/obstack.c ++ lib/strverscmp.c + ifdef KBUILD_SOLARIS_10 + kmk_sed_SOURCES.solaris += \ + lib/getline.c + endif + kmk_sed_SOURCES.win = \ + lib/strverscmp.c \ +- lib/obstack.c \ + lib/mkstemp.c \ + lib/getline.c \ + ../lib/startuphacks-win.c +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0014-strlcpy.patch b/dev-util/kbuild/files/0014-strlcpy.patch new file mode 100644 index 0000000..4cd2abd --- /dev/null +++ b/dev-util/kbuild/files/0014-strlcpy.patch @@ -0,0 +1,25 @@ +From 0b5fdedc380d4a97f7a9a4af58548ac722b25696 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:57:08 +0000 +Subject: [PATCH 14/17] strlcpy + +--- + src/kmk/kmkbuiltin/cp.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/kmk/kmkbuiltin/cp.c b/src/kmk/kmkbuiltin/cp.c +index 9622cd1..eedcb34 100644 +--- a/src/kmk/kmkbuiltin/cp.c ++++ b/src/kmk/kmkbuiltin/cp.c +@@ -81,7 +81,7 @@ __FBSDID("$FreeBSD: src/bin/cp/cp.c,v 1.50 2004/04/06 20:06:44 markm Exp $"); + #include "kmkbuiltin.h" + #include "kbuild_protection.h" + +-#if defined(_MSC_VER) || defined(__gnu_linux__) || defined(__linux__) ++#if defined(_MSC_VER) || defined(__gnu_linux__) && !defined(__UCLIBC__) + extern char *strlcpy(char *, const char *, size_t); + #endif + +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0015-sys-types.h.patch b/dev-util/kbuild/files/0015-sys-types.h.patch new file mode 100644 index 0000000..502876d --- /dev/null +++ b/dev-util/kbuild/files/0015-sys-types.h.patch @@ -0,0 +1,26 @@ +From 4740467d9f71d8cbd582d84fe4c9c811f8fe7f00 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:57:20 +0000 +Subject: [PATCH 15/17] sys/types.h + +--- + src/kmk/kmkbuiltin/ftsfake.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/kmk/kmkbuiltin/ftsfake.h b/src/kmk/kmkbuiltin/ftsfake.h +index 2518d30..5410256 100644 +--- a/src/kmk/kmkbuiltin/ftsfake.h ++++ b/src/kmk/kmkbuiltin/ftsfake.h +@@ -38,6 +38,9 @@ + # include "kmkbuiltin/mscfakes.h" + #endif + ++/* for u_int */ ++#include ++ + typedef struct { + struct _ftsent *fts_cur; /* current node */ + struct _ftsent *fts_child; /* linked list of children */ +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0016-sys_siglist.patch b/dev-util/kbuild/files/0016-sys_siglist.patch new file mode 100644 index 0000000..98c95ea --- /dev/null +++ b/dev-util/kbuild/files/0016-sys_siglist.patch @@ -0,0 +1,43 @@ +From d292fbc42a33db3e5386c2e9c89f59d01fecb83a Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:57:36 +0000 +Subject: [PATCH 16/17] sys_siglist + +--- + src/ash/jobs.c | 4 ++-- + src/kash/jobs.c | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/ash/jobs.c b/src/ash/jobs.c +index 146326a..cbf0c3e 100644 +--- a/src/ash/jobs.c ++++ b/src/ash/jobs.c +@@ -463,8 +463,8 @@ showjob(struct output *out, struct job *jp, int mode) + #endif + st = WTERMSIG(ps->status); + st &= 0x7f; +- if (st < NSIG && sys_siglist[st]) +- scopyn(sys_siglist[st], s + col, 32); ++ if (st < NSIG && strsignal(st)) ++ scopyn(strsignal(st), s + col, 32); + else + fmtstr(s + col, 16, "Signal %d", st); + if (WCOREDUMP(ps->status)) { +diff --git a/src/kash/jobs.c b/src/kash/jobs.c +index 13a758d..b2b4a6a 100644 +--- a/src/kash/jobs.c ++++ b/src/kash/jobs.c +@@ -396,8 +396,8 @@ showjob(shinstance *psh, struct output *out, struct job *jp, int mode) + #endif + st = WTERMSIG(ps->status); + st &= 0x7f; +- if (st < NSIG && sys_siglist[st]) +- scopyn(sys_siglist[st], s + col, 32); ++ if (st < NSIG && strsignal(st)) ++ scopyn(strsignal(st), s + col, 32); + else + fmtstr(s + col, 16, "Signal %d", st); + if (WCOREDUMP(ps->status)) { +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0017-uclibc.patch b/dev-util/kbuild/files/0017-uclibc.patch new file mode 100644 index 0000000..393b862 --- /dev/null +++ b/dev-util/kbuild/files/0017-uclibc.patch @@ -0,0 +1,39 @@ +From 3c1a105751a4844d7c18d191b16f33b45e6ac276 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 00:57:49 +0000 +Subject: [PATCH 17/17] uclibc + +--- + src/kmk/kmkbuiltin/fts.c | 2 +- + src/lib/k/kDefs.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/kmk/kmkbuiltin/fts.c b/src/kmk/kmkbuiltin/fts.c +index 9860f67..32dfc7c 100644 +--- a/src/kmk/kmkbuiltin/fts.c ++++ b/src/kmk/kmkbuiltin/fts.c +@@ -75,7 +75,7 @@ __RCSID("$NetBSD: __fts13.c,v 1.44 2005/01/19 00:59:48 mycroft Exp $"); + #endif + + #if ! HAVE_NBTOOL_CONFIG_H +-# if !defined(__sun__) && !defined(__gnu_linux__) && !defined(__HAIKU__) ++# if !defined(__sun__) && !defined(__linux__) && !defined(__HAIKU__) + # define HAVE_STRUCT_DIRENT_D_NAMLEN 1 + # endif + #endif +diff --git a/src/lib/k/kDefs.h b/src/lib/k/kDefs.h +index b67886f..87fb0b5 100644 +--- a/src/lib/k/kDefs.h ++++ b/src/lib/k/kDefs.h +@@ -82,7 +82,7 @@ + # define K_OS K_OS_FREEBSD + # elif defined(__HAIKU__) + # define K_OS K_OS_HAIKU +-# elif defined(__gnu_linux__) ++# elif defined(__linux__) + # define K_OS K_OS_LINUX + # elif defined(__NetBSD__) /*??*/ + # define K_OS K_OS_NETBSD +-- +2.8.4 + diff --git a/dev-util/kbuild/files/0018-strlcpy-exists-on-musl.patch b/dev-util/kbuild/files/0018-strlcpy-exists-on-musl.patch new file mode 100644 index 0000000..45a6c5f --- /dev/null +++ b/dev-util/kbuild/files/0018-strlcpy-exists-on-musl.patch @@ -0,0 +1,28 @@ +From 0a7d2e46abdd9fe96fad9ade99624e9428323df7 Mon Sep 17 00:00:00 2001 +From: "S. Gilles" +Date: Wed, 15 Jun 2016 01:13:13 +0000 +Subject: [PATCH 18/18] strlcpy exists on musl + +--- + src/kmk/kmkbuiltin/cp.c | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/src/kmk/kmkbuiltin/cp.c b/src/kmk/kmkbuiltin/cp.c +index eedcb34..8f14495 100644 +--- a/src/kmk/kmkbuiltin/cp.c ++++ b/src/kmk/kmkbuiltin/cp.c +@@ -81,11 +81,6 @@ __FBSDID("$FreeBSD: src/bin/cp/cp.c,v 1.50 2004/04/06 20:06:44 markm Exp $"); + #include "kmkbuiltin.h" + #include "kbuild_protection.h" + +-#if defined(_MSC_VER) || defined(__gnu_linux__) && !defined(__UCLIBC__) +-extern char *strlcpy(char *, const char *, size_t); +-#endif +- +- + #ifndef S_IFWHT + #define S_IFWHT 0 + #define S_ISWHT(s) 0 +-- +2.8.4 + diff --git a/dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild b/dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild new file mode 100644 index 0000000..d7db455 --- /dev/null +++ b/dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils autotools toolchain-funcs + +MY_P=kBuild-${PV/_/-}-src +DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks" +HOMEPAGE="http://svn.netlabs.org/kbuild/wiki" +#SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz" +SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="sys-devel/flex + sys-devel/gettext + virtual/yacc" +RDEPEND="" + +S=${WORKDIR}/${MY_P/-src} + +src_prepare() { + rm -rf "${S}/kBuild/bin" + + epatch \ + "${FILESDIR}/0001-unknown-configure-opt.patch" \ + "${FILESDIR}/0002-glibc-2.10.patch" \ + "${FILESDIR}/0003-gentoo-docdir.patch" \ + "${FILESDIR}/0004-have-unistd.h.patch" \ + "${FILESDIR}/0005-kash-link-pthread.patch" \ + "${FILESDIR}/0006-another-pthread.patch" \ + "${FILESDIR}/0007-gcc-4.7.patch" \ + "${FILESDIR}/0008-allperms.patch" \ + "${FILESDIR}/0009-getloadavg.patch" \ + "${FILESDIR}/0010-glob.patch" \ + "${FILESDIR}/0011-kobjcache.patch" \ + "${FILESDIR}/0012-lchmod.patch" \ + "${FILESDIR}/0013-obstack.patch" \ + "${FILESDIR}/0014-strlcpy.patch" \ + "${FILESDIR}/0015-sys-types.h.patch" \ + "${FILESDIR}/0016-sys_siglist.patch" \ + "${FILESDIR}/0017-uclibc.patch" \ + "${FILESDIR}/0018-strlcpy-exists-on-musl.patch" + + cd "${S}/src/kmk" || die + eautoreconf + cd "${S}/src/sed" || die + # AM_CONFIG_HEADER is obsolete since automake-1.13 (bug #467104) + sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die + eautoreconf + + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \ + -i "${S}"/Config.kmk || die #332225 + tc-export CC RANLIB #AR does not work here +} + +src_compile() { + kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true AR="$(tc-getAR)" \ + || die "bootstrap failed" +} + +src_install() { + kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \ + || die "install failed" +} -- 2.11.4.GIT