[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2024-05-24 Thread Florian Schmaus
commit: 60d381a8f2ac3b00179de898a1bd46c4cc75bbd9
Author: Eric Joldasov  landless-city  net>
AuthorDate: Fri May 24 15:15:30 2024 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Fri May 24 19:27:54 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60d381a8

dev-lang/zig-bin: add 0.12.0

* 32-bit PowerPC target archive removed by upstream.
* Remove `doc` USE-flag. Archive no longer includes ~43 MiB folder
  with standard library documentation, there is nothing to omit
  and save space. `zig std` now compiles documentation on-the-fly.
* Add (hopefully helpful) notes for users on how to get this new
  documentation.

Signed-off-by: Eric Joldasov  landless-city.net>
Signed-off-by: Florian Schmaus  gentoo.org>

 dev-lang/zig-bin/Manifest  | 12 +
 dev-lang/zig-bin/zig-bin-0.12.0.ebuild | 90 ++
 2 files changed, 102 insertions(+)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index f350b3403242..8912f192b2e9 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -2,23 +2,35 @@ DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 
39abefb80d540d52333ec76203
 DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B 
f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6
 SHA512 
297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f
 DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B 
fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580
 SHA512 
07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63
 DIST zig-linux-aarch64-0.11.0.tar.xz.minisig 326 BLAKE2B 
2b9d4aac400789019430fc4a2e28a255cf259730c2f3f6b18129cd2b43465ef513931e827c58bd5170dfe519f602840892e201b9a66ba013384d1e4f18d3ea92
 SHA512 
0bb645a52704ecad1b98d91659468a0b8a29c3cc4db8fb2c9bb43cee17ba2cb7227222b0ea81e081cc13772ed2bf1a5253a7f3d7204b2a8166451f4384d7963c
+DIST zig-linux-aarch64-0.12.0.tar.xz 41849060 BLAKE2B 
a12a6c946a365b391b323f51c7b25f855dddaed7a768067da0abfb64ca2440a3ba36b6b5987d5129485e506f45e7f90e98ef29f9242aa71b1dc286426fbc8403
 SHA512 
6fba718ff4cdf58f9a9db9183b9d436eedea3317c7e91dfa495b47f0dc95d2042784d4692cb65907cb9c3c74484b4e15adeeefd0c1ac462064848bdad4d6e4c4
+DIST zig-linux-aarch64-0.12.0.tar.xz.minisig 326 BLAKE2B 
9cf7cdd6a1029e61c695610a4b77aafd915c23108c7a2315b51a2115b1b9f6e944d72fea84dbcc87f0e2e7eab2180ed095434b834a1a87f1c0424a8800db27c8
 SHA512 
7d0468fa56f6fcc8960a1dba43be6695fb7231e1de8b07f8d4c8b3d4ec8917e3c0cb19b7539db8e316b993bf5396197ab2d16e357fa5d541c7f88da2d7429038
 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
 SHA512 
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
 DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 
675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592
 SHA512 
7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc
 DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 
0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50
 SHA512 
f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008
 DIST zig-linux-armv7a-0.11.0.tar.xz.minisig 325 BLAKE2B 
4f8c686969a3f74c91906a1a9b79bef16b8695caf3829b6550d9c3a7b3c92703cad6e5d45e8260fb13b2be1947fe1f0adfc71afcaa6f28b6fd42364a706272dc
 SHA512 
8ae13173ef26d97ff6dfb019f709020d3dd6112dae75ff7e7ba34e53d582f62e37ce2ff16574cfd4a061f0ac16a067eba80639beda1bc319920837321299c9fd
+DIST zig-linux-armv7a-0.12.0.tar.xz 42638808 BLAKE2B 
58e905a5519729ae8e549be354558d2df72c4d07fafb00c2e78a2b92cf562fe4cabe826992cc0b3165fded1d7e7bffac23af13256aa3cba9497f6561b819e531
 SHA512 
9cf8afa94afd47a54131e80fad8dc2852cfd2243e33d06eb2ba607cd7de186f7f1245a84efce8556e180fbee6a3c05448b3ab568d93233a16f398b258526867f
+DIST zig-linux-armv7a-0.12.0.tar.xz.minisig 325 BLAKE2B 
47de3ac2f3abaabae21060a85ffbccb9db1b8df4c67ca02ea9208913c2ec765d6e7b713a8863358cb0a00519397445f269db6c70622fe658bcb7ef34922ba5b0
 SHA512 
c51884ea6d0849cf97d9e4a206af64a33a66bab5feac610f61ed5239c2122c40a33589fbed5e07d7baefa5e8181dc914a946fb4cfba91480f7581cb56ba358eb
 DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
 SHA512 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2024-05-20 Thread Sam James
commit: 7d37295b36e0f6e7c9a55b1bad92917acd58483f
Author: Eric Joldasov  landless-city  net>
AuthorDate: Sat Mar 30 08:14:36 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 20 07:48:25 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d37295b

dev-lang/zig-bin: add verify-sig support

Signed-off-by: Eric Joldasov  landless-city.net>
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/Manifest | 12 
 dev-lang/zig-bin/zig-bin-0.10.1-r3.ebuild | 20 +---
 dev-lang/zig-bin/zig-bin-0.11.0-r1.ebuild | 22 +++---
 3 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index 7ce5d4b9c74c..f350b3403242 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,12 +1,24 @@
 DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 
39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e
 SHA512 
44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6
+DIST zig-linux-aarch64-0.10.1.tar.xz.minisig 326 BLAKE2B 
f20178d19a0a3415af5557787ba5380b6502771b1df858a03812d47f5602c6cf4bb9c1d7f854ea086a45a7c05a4fb0d6df42e05e3c9e383918195bc3843a88a6
 SHA512 
297e3946b0bc5c8da6377360764f37ad9a088672c0ba32327cac60379bc5dcba37265e3e9c92ae17073bb8f26f67466c9ac9fd6151c72e62b76214432d0f
 DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B 
fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580
 SHA512 
07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63
+DIST zig-linux-aarch64-0.11.0.tar.xz.minisig 326 BLAKE2B 
2b9d4aac400789019430fc4a2e28a255cf259730c2f3f6b18129cd2b43465ef513931e827c58bd5170dfe519f602840892e201b9a66ba013384d1e4f18d3ea92
 SHA512 
0bb645a52704ecad1b98d91659468a0b8a29c3cc4db8fb2c9bb43cee17ba2cb7227222b0ea81e081cc13772ed2bf1a5253a7f3d7204b2a8166451f4384d7963c
 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
 SHA512 
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
+DIST zig-linux-armv7a-0.10.1.tar.xz.minisig 325 BLAKE2B 
675416641adfa9a1cdc6797dd310a7cdd83dda20cf73b5d3dafd616d3686ab72f00d735576c3d6839c9b7a92869ce058dd532beec27e5ec0a7b7d4f94008d592
 SHA512 
7f7be843ce7718294816f5c8dc349386cd76d9e7ad0a96d74bfe09d7361e864f275593fbd92b44091c5cdd5fcb0d9e8e07683c96585ac932b5f80e7c7356e6cc
 DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 
0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50
 SHA512 
f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008
+DIST zig-linux-armv7a-0.11.0.tar.xz.minisig 325 BLAKE2B 
4f8c686969a3f74c91906a1a9b79bef16b8695caf3829b6550d9c3a7b3c92703cad6e5d45e8260fb13b2be1947fe1f0adfc71afcaa6f28b6fd42364a706272dc
 SHA512 
8ae13173ef26d97ff6dfb019f709020d3dd6112dae75ff7e7ba34e53d582f62e37ce2ff16574cfd4a061f0ac16a067eba80639beda1bc319920837321299c9fd
 DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
 SHA512 
97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3
+DIST zig-linux-i386-0.10.1.tar.xz.minisig 323 BLAKE2B 
e25778cf26696ae0450186b6173dc69cfc9eb165903d5c4b1bcb9d01b55646f1af5047e129a1241200b7d7bd041bc9aa85841eee3a9366b7e88a2eccce3dae88
 SHA512 
52e66eb9a486e853330f125bad2baf63b87e3544ef1cc12cd59889f3c3a8a7ada5363307eb29d797c54202ebc5a3edb87452d6b09f53f099f51f79c053cf8b7d
 DIST zig-linux-powerpc-0.11.0.tar.xz 44539972 BLAKE2B 
b713c23f537c8f47be7aae7bf0609d056dc6817aac207ba39df0a53d1c391f1c64bc05edbb53fb5584c60cd6963f35fa56448440c5065dc21b5cf978fbb0bbb4
 SHA512 
faabbbae501b56c91fec036c209a6d6aea0c974749a777eb13f273e06fde960c7b2a2b29caf83a43fef740652db313933b3eeb72a9c0445ad412a7f8023da3af
+DIST zig-linux-powerpc-0.11.0.tar.xz.minisig 326 BLAKE2B 
ddf87eece5a2238a72d672af245de57ec3163d6849b84a72375dd08e12b9f4d068fd1584abfe0d9dbf449b802383e522bef1a4e21217788ca5638b885c1030c0
 SHA512 
c762e4a2414aee08fa4a7afd26660cf43c81478fa1a154cd7e7ecdcff15aa3d4ab8263fabe271ce9bd5191a1564b38bb7f96ee7afc2317f71d60c0fd527e32f6
 DIST zig-linux-powerpc64le-0.11.0.tar.xz 44656184 BLAKE2B 
597947c4bee73847abf0941819477bf8a47a4d019a8060e79133e3d01b43325c0acfae7a8d57a4d84e1cd9dfe63b3439fac4e4372d6b538e9992a9364d65ee73
 SHA512 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-08-24 Thread Jakov Smolić
commit: aa7c2042fb656a133727e2b643beed14d7ee958e
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Fri Aug  4 08:49:41 2023 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Fri Aug 25 03:57:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa7c2042

dev-lang/zig-bin: add 0.11.0

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Jakov Smolić  gentoo.org>

 dev-lang/zig-bin/Manifest  |  7 
 dev-lang/zig-bin/zig-bin-0.11.0.ebuild | 67 ++
 2 files changed, 74 insertions(+)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index a7c177c3f4d6..7ce5d4b9c74c 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,5 +1,12 @@
 DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 
39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e
 SHA512 
44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6
+DIST zig-linux-aarch64-0.11.0.tar.xz 41492432 BLAKE2B 
fd4e1f242475bfdc94f418817d2f1b256ebdc7e29b94e7629f54c241b7a1df273a2c776ab29dad645af041b5cfb0e7d1b0a922bb04a82553604076d36e957580
 SHA512 
07a026958cac0f1674496f8a1fd3a3dfcd79274d1a25c87e4123b74a437f332bbea4097320da7f83d67626fb9d6e9fe1d78e917522debb8873f7c40938031e63
 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
 SHA512 
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
+DIST zig-linux-armv7a-0.11.0.tar.xz 42240664 BLAKE2B 
0d301c1a2fa2ddcddccf37333418ceea06b48539548e533a20c098021fba12c1bfe467d0c8dd3d9207c6d129e4de8c47c436a39f7fd6165a0c6ad5a679ca5f50
 SHA512 
f4235418b3251d03727ba85a6002f6561f20b095a9fddf92ff126a20f49d17533d15d7e0f570ea734e40a1a76dd1b8a4bca78ad6ab3846aeb5f90dc812586008
 DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
 SHA512 
97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3
+DIST zig-linux-powerpc-0.11.0.tar.xz 44539972 BLAKE2B 
b713c23f537c8f47be7aae7bf0609d056dc6817aac207ba39df0a53d1c391f1c64bc05edbb53fb5584c60cd6963f35fa56448440c5065dc21b5cf978fbb0bbb4
 SHA512 
faabbbae501b56c91fec036c209a6d6aea0c974749a777eb13f273e06fde960c7b2a2b29caf83a43fef740652db313933b3eeb72a9c0445ad412a7f8023da3af
+DIST zig-linux-powerpc64le-0.11.0.tar.xz 44656184 BLAKE2B 
597947c4bee73847abf0941819477bf8a47a4d019a8060e79133e3d01b43325c0acfae7a8d57a4d84e1cd9dfe63b3439fac4e4372d6b538e9992a9364d65ee73
 SHA512 
fc1dbe9115e2f92f03a6934d32c65d1de4cbe0cf070d6f468632c906966048400a806d8ec8540fde7a1b195a8ae8238fde5ddd94c2d54a0af70d9060d006cf89
 DIST zig-linux-riscv64-0.10.1.tar.xz 42196008 BLAKE2B 
a7ae37b1d1db1281b09bbd7e35ecaf390bbe28774bd1a4fa76b4468255be19b07fb514326d48576946f3c4eb04dcef34d6ab14f550407aa33803754fabbd848c
 SHA512 
1a1da96924fa4a16a53721017eadc3363859a4f53671e27b11588200d0302d9065de9ba517ad40940aad98725e617cf853f2e83f732a4e23c33deacb99487ad0
+DIST zig-linux-riscv64-0.11.0.tar.xz 43532324 BLAKE2B 
f82a7a32b94a084767fa205bf8b66371bfebd4753f647930a5689d727a2211c9cd37f76a855732356a220a64515f8146c5b450207be59854f08132ccf178d23c
 SHA512 
f2ab35c6a7c3452a5dd825d03fa8b5329786a705dbc04260980fefc64e24f4d61cb22c95c10b9952cbc58bdd8741503aa98ad8ed4a8c0a0e856a0e8ba9eb1ca7
+DIST zig-linux-x86-0.11.0.tar.xz 49824456 BLAKE2B 
4a9b4c9551ffe555d1283c9d5aab6649fc5ea5807b9465d18c10cae622beca23df114ab4f503b9d86e14ce26cbf6ac07df8e60521fbc2c3784c9d25eeabf852d
 SHA512 
aaa2adb128ae0cc8e6f43323b78dc60699b80f56b0e1be7524ac7e9ac71513229c4224d2ef7d63fedb74c513c31d5614fe34cbcfb0cc4bb268952427d082594f
 DIST zig-linux-x86_64-0.10.1.tar.xz 44085596 BLAKE2B 
d689a469dbbe790593a561dd4df01c506212754c48be7de03773c7e690cbab197af10d639e80148f3343204ddf9ecfe09a88a62fb6ef63a262bcc2dd79fecd34
 SHA512 
1cf88a492b1a47800e213b8801477f4ffabf269f960d27d1849c5aec805b5db3768c83d4daa4a738532b1b7367e8c6812e3eea47c205ea732d7a6269a47e16dc
+DIST zig-linux-x86_64-0.11.0.tar.xz 44961892 BLAKE2B 
b0780573dbd372c7a9efec32e6860050b15603a80e00e64757a6c09a02757febc14d3df32ff089f418996fb55bf6fb50774393037f86cbecd49f06c250e5bbe3
 SHA512 
992e49a28edc9bed44c124a887c4700e707c2eef6a6f3adb551c568103242c3a5304af00d95994a511670c2099f476aa5068eef538f6065afe9bc149c7b9

diff --git a/dev-lang/zig-bin/zig-bin-0.11.0.ebuild 
b/dev-lang/zig-bin/zig-bin-0.11.0.ebuild
new file mode 100644
index ..2ff67d9e16aa
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.11.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/files/, dev-lang/zig-bin/

2023-07-08 Thread Sam James
commit: 4df05bbbdf80c84c3f373ad75789ec0a6d13cbb4
Author: Violet Purcell  inventati  org>
AuthorDate: Sat Jul  8 18:23:12 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul  9 02:02:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4df05bbb

dev-lang/zig-bin: Backport fix for musl 1.2.4

Signed-off-by: Violet Purcell  inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/31791
Signed-off-by: Sam James  gentoo.org>

 .../files/zig-0.10.1-musl-1.2.4-lfs64.patch| 220 +
 ...n-0.10.1-r2.ebuild => zig-bin-0.10.1-r3.ebuild} |   4 +-
 2 files changed, 223 insertions(+), 1 deletion(-)

diff --git a/dev-lang/zig-bin/files/zig-0.10.1-musl-1.2.4-lfs64.patch 
b/dev-lang/zig-bin/files/zig-0.10.1-musl-1.2.4-lfs64.patch
new file mode 100644
index ..05a550a7920e
--- /dev/null
+++ b/dev-lang/zig-bin/files/zig-0.10.1-musl-1.2.4-lfs64.patch
@@ -0,0 +1,220 @@
+From 
https://github.com/ziglang/zig/commit/b20ccff515364cdb8f3e733cc950e53ab77656db 
Mon Sep 17 00:00:00 2001
+From: Andrew Kelley 
+Date: Mon, 19 Jun 2023 15:17:01 -0700
+Subject: [PATCH] std.os: update logic for 64-bit symbol choice
+
+musl v1.2.4 dropped the "64"-suffixed aliases for legacy "LFS64" ("large
+file support") interfaces, so this commit changes the corresponding Zig
+logic to call the correct names.
+--- a/lib/std/os.zig
 b/lib/std/os.zig
+@@ -890,10 +890,7 @@ pub fn pread(fd: fd_t, buf: []u8, offset: u64) 
PReadError!usize {
+ };
+ const adjusted_len = @min(max_count, buf.len);
+ 
+-const pread_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pread64
+-else
+-system.pread;
++const pread_sym = if (lfs64_abi) system.pread64 else system.pread;
+ 
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -966,10 +963,7 @@ pub fn ftruncate(fd: fd_t, length: u64) 
TruncateError!void {
+ }
+ 
+ while (true) {
+-const ftruncate_sym = if (builtin.os.tag == .linux and 
builtin.link_libc)
+-system.ftruncate64
+-else
+-system.ftruncate;
++const ftruncate_sym = if (lfs64_abi) system.ftruncate64 else 
system.ftruncate;
+ 
+ const ilen = @bitCast(i64, length); // the OS treats this as unsigned
+ switch (errno(ftruncate_sym(fd, ilen))) {
+@@ -1034,10 +1028,7 @@ pub fn preadv(fd: fd_t, iov: []const iovec, offset: 
u64) PReadError!usize {
+ 
+ const iov_count = math.cast(u31, iov.len) orelse math.maxInt(u31);
+ 
+-const preadv_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.preadv64
+-else
+-system.preadv;
++const preadv_sym = if (lfs64_abi) system.preadv64 else system.preadv;
+ 
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -1311,10 +1302,7 @@ pub fn pwrite(fd: fd_t, bytes: []const u8, offset: u64) 
PWriteError!usize {
+ };
+ const adjusted_len = @min(max_count, bytes.len);
+ 
+-const pwrite_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pwrite64
+-else
+-system.pwrite;
++const pwrite_sym = if (lfs64_abi) system.pwrite64 else system.pwrite;
+ 
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+ while (true) {
+@@ -1400,10 +1388,7 @@ pub fn pwritev(fd: fd_t, iov: []const iovec_const, 
offset: u64) PWriteError!usiz
+ }
+ }
+ 
+-const pwritev_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.pwritev64
+-else
+-system.pwritev;
++const pwritev_sym = if (lfs64_abi) system.pwritev64 else system.pwritev;
+ 
+ const iov_count = if (iov.len > IOV_MAX) IOV_MAX else @intCast(u31, 
iov.len);
+ const ioffset = @bitCast(i64, offset); // the OS treats this as unsigned
+@@ -1514,10 +1499,7 @@ pub fn openZ(file_path: [*:0]const u8, flags: u32, 
perm: mode_t) OpenError!fd_t
+ return open(mem.sliceTo(file_path, 0), flags, perm);
+ }
+ 
+-const open_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.open64
+-else
+-system.open;
++const open_sym = if (lfs64_abi) system.open64 else system.open;
+ 
+ while (true) {
+ const rc = open_sym(file_path, flags, perm);
+@@ -1730,10 +1712,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8, 
flags: u32, mode: mode_t)
+ return openat(dir_fd, mem.sliceTo(file_path, 0), flags, mode);
+ }
+ 
+-const openat_sym = if (builtin.os.tag == .linux and builtin.link_libc)
+-system.openat64
+-else
+-system.openat;
++const openat_sym = if (lfs64_abi) system.openat64 else system.openat;
+ 
+ while (true) {
+ const rc = openat_sym(dir_fd, file_path, flags, mode);
+@@ -4117,10 +4096,7 @@ pub fn fstat(fd: fd_t) FStatError!Stat {
+ @compileError("fstat is not yet implemented on Windows");
+ }
+ 
+-const 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-05-12 Thread Sam James
commit: 5f5728acd68617bfe062aad2a0358447befac578
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Sun Apr 16 07:03:08 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 13 03:28:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f5728ac

dev-lang/zig-bin: update LICENSE

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
index 745201699674..4674b943f38f 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
@@ -12,7 +12,18 @@ SRC_URI="
riscv? ( 
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
 
-LICENSE="MIT"
+# project itself: MIT
+# There are bunch of projects under "lib/" folder that are needed for 
cross-compilation.
+# Files that are unnecessary for cross-compilation are removed by upstream
+# and therefore their licenses (if any special) are not included.
+# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )
+# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) 
public-domain
+# lib/libc/musl: MIT BSD-2
+# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND
+# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
+LICENSE="MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || ( 
Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain BSD-2 ZPL 
ISC HPND BSD inner-net LGPL-2.1+"
 SLOT="$(ver_cut 1-2)"
 KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
 IUSE="doc"



[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-03-17 Thread Florian Schmaus
commit: e34c100d237fa204248e7a514651ab81cb9cd32c
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Thu Mar 16 15:03:26 2023 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Fri Mar 17 09:44:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34c100d

dev-lang/zig-bin: drop 0.10.0, 0.10.1

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/30150
Signed-off-by: Florian Schmaus  gentoo.org>

 dev-lang/zig-bin/Manifest  |  5 
 dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 52 --
 dev-lang/zig-bin/zig-bin-0.10.1.ebuild | 52 --
 3 files changed, 109 deletions(-)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index 041d376db094..a7c177c3f4d6 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,10 +1,5 @@
-DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B 
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
 SHA512 
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
 DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 
39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e
 SHA512 
44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6
-DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B 
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
 SHA512 
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
 DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
 SHA512 
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
-DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B 
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
 SHA512 
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
 DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
 SHA512 
97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3
-DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B 
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
 SHA512 
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
 DIST zig-linux-riscv64-0.10.1.tar.xz 42196008 BLAKE2B 
a7ae37b1d1db1281b09bbd7e35ecaf390bbe28774bd1a4fa76b4468255be19b07fb514326d48576946f3c4eb04dcef34d6ab14f550407aa33803754fabbd848c
 SHA512 
1a1da96924fa4a16a53721017eadc3363859a4f53671e27b11588200d0302d9065de9ba517ad40940aad98725e617cf853f2e83f732a4e23c33deacb99487ad0
-DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B 
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
 SHA512 
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
 DIST zig-linux-x86_64-0.10.1.tar.xz 44085596 BLAKE2B 
d689a469dbbe790593a561dd4df01c506212754c48be7de03773c7e690cbab197af10d639e80148f3343204ddf9ecfe09a88a62fb6ef63a262bcc2dd79fecd34
 SHA512 
1cf88a492b1a47800e213b8801477f4ffabf269f960d27d1849c5aec805b5db3768c83d4daa4a738532b1b7367e8c6812e3eea47c205ea732d7a6269a47e16dc

diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
deleted file mode 100644
index 41c7ad1570e5..
--- a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="A robust, optimal, and maintainable programming language"
-HOMEPAGE="https://ziglang.org/;
-SRC_URI="
-   amd64? ( 
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
-   arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz 
)
-   arm64? ( 
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
-   riscv? ( 
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
-   x86? ( 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/, dev-lang/zig/

2023-03-09 Thread Florian Schmaus
commit: 7b5492a0d2e76edefce33a23b0f5c9e72a020f36
Author: Florian Schmaus  gentoo  org>
AuthorDate: Thu Mar  9 17:50:33 2023 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Thu Mar  9 17:51:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b5492a0

dev-lang/zig(-bin): eselect-zig is an IDEPEND

Signed-off-by: Florian Schmaus  gentoo.org>

 .../zig-bin/{zig-bin-0.10.1-r1.ebuild => zig-bin-0.10.1-r2.ebuild} | 2 +-
 dev-lang/zig/{zig-0.10.1-r1.ebuild => zig-0.10.1-r2.ebuild}| 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
similarity index 98%
rename from dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
rename to dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
index 30514b6b713a..745201699674 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r2.ebuild
@@ -17,7 +17,7 @@ SLOT="$(ver_cut 1-2)"
 KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
 IUSE="doc"
 
-RDEPEND="app-eselect/eselect-zig"
+IDEPEND="app-eselect/eselect-zig"
 # Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
 # and all other Zig libraries are meant to be consumed in source form,
 # because they can use compile-time mechanics (and it is easier for 
distributions to patch them)

diff --git a/dev-lang/zig/zig-0.10.1-r1.ebuild 
b/dev-lang/zig/zig-0.10.1-r2.ebuild
similarity index 99%
rename from dev-lang/zig/zig-0.10.1-r1.ebuild
rename to dev-lang/zig/zig-0.10.1-r2.ebuild
index d92a0e709dda..7c16e1d9761c 100644
--- a/dev-lang/zig/zig-0.10.1-r1.ebuild
+++ b/dev-lang/zig/zig-0.10.1-r2.ebuild
@@ -34,9 +34,10 @@ DEPEND="
 
 RDEPEND="
${DEPEND}
-   app-eselect/eselect-zig
 "
 
+IDEPEND="app-eselect/eselect-zig"
+
 # see https://github.com/ziglang/zig/issues/3382
 # For now, Zig Build System doesn't support enviromental CFLAGS/LDFLAGS/etc.
 QA_FLAGS_IGNORED="usr/bin/zig"



[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-03-09 Thread Florian Schmaus
commit: e2bc05c42635e53cc3f98b344b81cf50b0cc6e88
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Wed Jan 25 04:52:56 2023 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Thu Mar  9 10:53:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2bc05c4

dev-lang/zig-bin: slotting

  * Slot Zig and handle /usr/bin/zig via eselect-zig
  * Add "doc" USE flag for installing language reference and stdlib 
documentation

Followup to previous commit 6ea1afff4a2aa9c753eb154e51decb2b5996b029.
Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Florian Schmaus  gentoo.org>

 dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild | 56 +++
 1 file changed, 56 insertions(+)

diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
new file mode 100644
index ..81c98e238a76
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/;
+SRC_URI="
+   amd64? ( 
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+   arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz 
)
+   arm64? ( 
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+   riscv? ( 
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
+   x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="doc"
+
+RDEPEND="app-eselect/eselect-zig"
+# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
+# and all other Zig libraries are meant to be consumed in source form,
+# because they can use compile-time mechanics (and it is easier for 
distributions to patch them)
+# Here we use this feature for fixing programs that use standard library
+# Note: Zig build system is also part of standard library, so we can fix it too
+#PATCHES=( )
+
+QA_PREBUILT="opt/${P}/zig"
+
+src_unpack() {
+   unpack ${A}
+
+   mv "${WORKDIR}/"* "${S}" || die
+}
+
+src_install() {
+   insinto /opt/
+
+   use doc && local HTML_DOCS=( "doc/langref.html" "doc/std/" )
+   einstalldocs
+   rm -r ./doc/ || die
+
+   doins -r "${S}"
+   fperms 0755 "/opt/${P}/zig"
+   dosym -r "/opt/${P}/zig" "/usr/bin/zig-bin-${PV}"
+}
+
+pkg_postinst() {
+   elog "0.10.1 release uses self-hosted compiler by default and fixes 
some bugs from 0.10.0"
+   elog "But your code still can be un-compilable since some features 
still not implemented or bugs not fixed"
+   elog "Upstream recommends:"
+   elog " * Using old compiler if experiencing such breakage (flag 
'-fstage1')"
+   elog " * Waiting for release 0.11.0 with old compiler removed (these 
changes are already merged in )"
+   elog "Also see: 
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler;
+   elog "and 
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade;
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-03-09 Thread Florian Schmaus
commit: c84c3e24f35da1e43bedf798dc3f5ea7e6215d93
Author: Florian Schmaus  gentoo  org>
AuthorDate: Thu Mar  9 10:48:44 2023 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Thu Mar  9 10:53:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84c3e24

dev-lang/zig-bin: ensure 'zig' symlink is valid if possible

Signed-off-by: Florian Schmaus  gentoo.org>

 dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
index 81c98e238a76..30514b6b713a 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1-r1.ebuild
@@ -46,6 +46,8 @@ src_install() {
 }
 
 pkg_postinst() {
+   eselect zig update ifunset
+
elog "0.10.1 release uses self-hosted compiler by default and fixes 
some bugs from 0.10.0"
elog "But your code still can be un-compilable since some features 
still not implemented or bugs not fixed"
elog "Upstream recommends:"
@@ -54,3 +56,7 @@ pkg_postinst() {
elog "Also see: 
https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler;
elog "and 
https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade;
 }
+
+pkg_postrm() {
+   eselect zig update ifunset
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-01-19 Thread Sam James
commit: 934f9bb0ec0eeb02aad6e0b0986f24b5a2f92d69
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Fri Jan 20 03:40:36 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 20 03:54:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=934f9bb0

dev-lang/zig-bin: add missing "die"

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 4 ++--
 dev-lang/zig-bin/zig-bin-0.10.1.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
index 45c577eadde5..41c7ad1570e5 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -29,7 +29,7 @@ QA_PREBUILT="opt/${P}/zig"
 src_unpack() {
unpack ${A}
 
-   mv "${WORKDIR}/"* "${S}"
+   mv "${WORKDIR}/"* "${S}" || die
 }
 
 src_install() {

diff --git a/dev-lang/zig-bin/zig-bin-0.10.1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
index 4a42bdced649..7c9d05764a48 100644
--- a/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
@@ -29,7 +29,7 @@ QA_PREBUILT="opt/${P}/zig"
 src_unpack() {
unpack ${A}
 
-   mv "${WORKDIR}/"* "${S}"
+   mv "${WORKDIR}/"* "${S}" || die
 }
 
 src_install() {



[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2023-01-19 Thread Sam James
commit: 320abc12152c02258b6f22b67a3b75b90b8d3c08
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Thu Jan 19 15:24:41 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 20 01:15:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320abc12

dev-lang/zig-bin: add 0.10.1

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/Manifest  |  5 
 dev-lang/zig-bin/zig-bin-0.10.1.ebuild | 52 ++
 2 files changed, 57 insertions(+)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index 66658fc5412e..041d376db094 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,5 +1,10 @@
 DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B 
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
 SHA512 
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
+DIST zig-linux-aarch64-0.10.1.tar.xz 40321280 BLAKE2B 
39abefb80d540d52333ec76203893630ac5df2a784684397033e9ac766f67c4512be71513ebb80faac6c5ebaa2a737859b7bc27b82797232cf97d87d91e8492e
 SHA512 
44dd15b1b2d7bc85a4f8e8171ae5c51122be352249273091b499de5a392c72e262585f981908afd1718a41fa7e67b36f1b65c6cacbf8e9f226a687bd85b7edc6
 DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B 
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
 SHA512 
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
+DIST zig-linux-armv7a-0.10.1.tar.xz 50718132 BLAKE2B 
76ef431ef8957272b992f6b861913a961d348120106a7f4b77d1f6b2a042dd8904a1ac744ab6b02b78681eef68af4143372e5315cd113d40711bd26fc78e6632
 SHA512 
4ec3ccd7ac980bfd9fc7a2f6b2301051d3df43b00143914d869389fc44b48916820d996e27cb922dac152228c4b04a0cce51f7b125317de85440a5479fe8ff7d
 DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B 
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
 SHA512 
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
+DIST zig-linux-i386-0.10.1.tar.xz 48367388 BLAKE2B 
482ec9e42d9036177f41c459faf82c79ba525f35ed14150d97af9110efab3e9894b8c64f92f9257b224893179134e43306c985ad6a04ae6a7d427d14ef4e7a3f
 SHA512 
97345a8f7f15a83e51635ec667e869833a597511a1b004fa4ab19d78ad234e05e8344823e0c623510c7c5dbeef447d13636223e8d339f6d53f2eca053852a8d3
 DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B 
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
 SHA512 
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
+DIST zig-linux-riscv64-0.10.1.tar.xz 42196008 BLAKE2B 
a7ae37b1d1db1281b09bbd7e35ecaf390bbe28774bd1a4fa76b4468255be19b07fb514326d48576946f3c4eb04dcef34d6ab14f550407aa33803754fabbd848c
 SHA512 
1a1da96924fa4a16a53721017eadc3363859a4f53671e27b11588200d0302d9065de9ba517ad40940aad98725e617cf853f2e83f732a4e23c33deacb99487ad0
 DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B 
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
 SHA512 
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
+DIST zig-linux-x86_64-0.10.1.tar.xz 44085596 BLAKE2B 
d689a469dbbe790593a561dd4df01c506212754c48be7de03773c7e690cbab197af10d639e80148f3343204ddf9ecfe09a88a62fb6ef63a262bcc2dd79fecd34
 SHA512 
1cf88a492b1a47800e213b8801477f4ffabf269f960d27d1849c5aec805b5db3768c83d4daa4a738532b1b7367e8c6812e3eea47c205ea732d7a6269a47e16dc

diff --git a/dev-lang/zig-bin/zig-bin-0.10.1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
new file mode 100644
index ..4a42bdced649
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.10.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/;
+SRC_URI="
+   amd64? ( 
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+   arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz 
)
+   arm64? ( 
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+   riscv? ( 
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
+   x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="!dev-lang/zig"
+# Zig provides its standard 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/files/, dev-lang/zig-bin/

2022-12-01 Thread Michał Górny
commit: ff3fac4781eca7b1250547c9627f021cebbdf2a7
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Thu Dec  1 12:43:10 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Dec  1 13:57:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff3fac47

dev-lang/zig-bin: drop 0.9.1-r1

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Michał Górny  gentoo.org>

 dev-lang/zig-bin/Manifest  |  5 ---
 .../zig-bin-0.9.1-fix-bad-hostname-segfault.patch  | 26 
 dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild   | 47 --
 3 files changed, 78 deletions(-)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index f3a4958e521b..66658fc5412e 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,10 +1,5 @@
-DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B 
fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93
 SHA512 
259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
 DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B 
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
 SHA512 
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
-DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B 
3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d
 SHA512 
ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639
 DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B 
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
 SHA512 
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
-DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B 
5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b
 SHA512 
239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2e5137aabb5b6648148c351e29c171de9e333
 DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B 
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
 SHA512 
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
-DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B 
7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5
 SHA512 
5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d
 DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B 
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
 SHA512 
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
 DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B 
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
 SHA512 
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
-DIST zig-linux-x86_64-0.9.1.tar.xz 41011464 BLAKE2B 
053fc1c3d30e5798b7d30c9a4f9b5609b9b080e9f237dab52ae661b183663fca6582dcc37458e8a51dd7eb4fbd1d3a9946f7c67cb756b69460f0e23b03cc96eb
 SHA512 
0e5f5971dc9e586911f98122a410c98d8aaef2795d2d68488a1e9468ea45135479dac7f92708c973db4f8efce78cb0c6b3759cf239fba6237052434a2120d4d3

diff --git 
a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch 
b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch
deleted file mode 100644
index 2e87ecc6d6ee..
--- a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-https://github.com/ziglang/zig/commit/601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8
-Bug https://bugs.gentoo.org/829959
-
-From 601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 Mon Sep 17 00:00:00 2001
-From: Veikka Touminen 
-Date: Sun, 10 Jul 2022 04:27:23 -0600
-Subject: [PATCH] std.net.getAddressList: fix segfault on bad hostname
-
-Fixes #12065

- lib/std/net.zig | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/std/net.zig b/lib/std/net.zig
-index 235ad8496a1..c381df9bce7 100644
 a/lib/std/net.zig
-+++ b/lib/std/net.zig
-@@ -731,7 +731,7 @@ pub fn getAddressList(allocator: 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2022-11-06 Thread Sam James
commit: 5c000bbe19f88a5534a3c3d2a74f07045bdf5995
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Tue Nov  1 03:56:56 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Nov  7 06:52:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c000bbe

dev-lang/zig-bin: add 0.10.0

Bug: https://bugs.gentoo.org/876181
Signed-off-by: Eric Joldasov  getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28061
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/Manifest  |  5 
 dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 52 ++
 2 files changed, 57 insertions(+)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index c85903697075..f3a4958e521b 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,5 +1,10 @@
 DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B 
fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93
 SHA512 
259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
+DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B 
47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607
 SHA512 
5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
 DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B 
3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d
 SHA512 
ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639
+DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B 
57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096
 SHA512 
31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
 DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B 
5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b
 SHA512 
239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2e5137aabb5b6648148c351e29c171de9e333
+DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B 
e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da
 SHA512 
6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
 DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B 
7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5
 SHA512 
5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d
+DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B 
95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255
 SHA512 
ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
+DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B 
7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7
 SHA512 
87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
 DIST zig-linux-x86_64-0.9.1.tar.xz 41011464 BLAKE2B 
053fc1c3d30e5798b7d30c9a4f9b5609b9b080e9f237dab52ae661b183663fca6582dcc37458e8a51dd7eb4fbd1d3a9946f7c67cb756b69460f0e23b03cc96eb
 SHA512 
0e5f5971dc9e586911f98122a410c98d8aaef2795d2d68488a1e9468ea45135479dac7f92708c973db4f8efce78cb0c6b3759cf239fba6237052434a2120d4d3

diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild 
b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
new file mode 100644
index ..45c577eadde5
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/;
+SRC_URI="
+   amd64? ( 
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+   arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz 
)
+   arm64? ( 
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+   riscv? ( 
https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
+   x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm 

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/

2022-09-11 Thread Sam James
commit: 6b9fe8c78153a1122285cc9213f9a80cd751bc89
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Thu Aug 25 04:20:54 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 11 18:13:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b9fe8c7

dev-lang/zig-bin: add notes regarding standard library and patches

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/26999
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild | 5 +
 1 file changed, 5 insertions(+)

diff --git a/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild
index 9ed2987939d1..b731f0d2c5d7 100644
--- a/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild
@@ -19,6 +19,11 @@ RDEPEND="!dev-lang/zig"
 
 SRC_URI+=" 
https://codeberg.org/BratishkaErik/distfiles/media/branch/master/zig-0.9.1-fix-detecting-abi.patch;
 
+# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
+# and all other Zig libraries are meant to be consumed in source form,
+# because they can use compile-time mechanics (and it is easier for 
distributions to patch them)
+# Here we use this feature for fixing programs that use standard library
+# Note: Zig build system is also part of standard library, so we can fix it too
 PATCHES=(
"${FILESDIR}/${P}-fix-bad-hostname-segfault.patch"
"${DISTDIR}/zig-0.9.1-fix-detecting-abi.patch"



[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/, dev-lang/zig-bin/files/

2022-09-11 Thread Sam James
commit: 8ca3ca21d4b52133714be53407b18b04305f6358
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Thu Aug 25 03:39:22 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 11 18:13:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ca3ca21

dev-lang/zig-bin: add patches for 0.9.1

Closes: https://bugs.gentoo.org/780612
Closes: https://bugs.gentoo.org/829959
Closes: https://bugs.gentoo.org/866374
Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Sam James  gentoo.org>

 dev-lang/zig-bin/Manifest  |  1 +
 .../zig-bin-0.9.1-fix-bad-hostname-segfault.patch  | 26 ++
 .../files/zig-bin-0.9.1-fix-detecting-abi.patch| 19 
 ...ig-bin-0.9.1.ebuild => zig-bin-0.9.1-r1.ebuild} |  7 +-
 4 files changed, 33 insertions(+), 20 deletions(-)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
index 65078bba09fa..c85903697075 100644
--- a/dev-lang/zig-bin/Manifest
+++ b/dev-lang/zig-bin/Manifest
@@ -1,3 +1,4 @@
+DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B 
fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93
 SHA512 
259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
 DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B 
3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d
 SHA512 
ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639
 DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B 
5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b
 SHA512 
239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2e5137aabb5b6648148c351e29c171de9e333
 DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B 
7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5
 SHA512 
5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d

diff --git 
a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch 
b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch
new file mode 100644
index ..2e87ecc6d6ee
--- /dev/null
+++ b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-bad-hostname-segfault.patch
@@ -0,0 +1,26 @@
+https://github.com/ziglang/zig/commit/601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8
+Bug https://bugs.gentoo.org/829959
+
+From 601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 Mon Sep 17 00:00:00 2001
+From: Veikka Touminen 
+Date: Sun, 10 Jul 2022 04:27:23 -0600
+Subject: [PATCH] std.net.getAddressList: fix segfault on bad hostname
+
+Fixes #12065
+---
+ lib/std/net.zig | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/std/net.zig b/lib/std/net.zig
+index 235ad8496a1..c381df9bce7 100644
+--- a/lib/std/net.zig
 b/lib/std/net.zig
+@@ -731,7 +731,7 @@ pub fn getAddressList(allocator: mem.Allocator, name: 
[]const u8, port: u16) !*A
+ break :blk result;
+ };
+ const arena = result.arena.allocator();
+-errdefer result.arena.deinit();
++errdefer result.deinit();
+ 
+ if (builtin.target.os.tag == .windows or builtin.link_libc) {
+ const name_c = try std.cstr.addNullByte(allocator, name);

diff --git a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-detecting-abi.patch 
b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-detecting-abi.patch
deleted file mode 100644
index 6aa2f49b379a..
--- a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-detecting-abi.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-From: Eric Joldasov 
-
-Upstream parses /usr/bin/env ELF file for detecting C ABI and the dynamic 
linker.
-However, if sys-apps/coreutils was merged with "multicall" USE flag, it would 
be a script and not a ELF file.
-This will raise error.UnexpectedEndOfFile, and Zig will fallback to default 
dynamic linker (i.e. musl),
-which breaks building programs with Zig on glibc systems. This patch changes 
file from
-/usr/bin/env to /bin/bash, because it is more reliable on Gentoo systems.
-
 a/lib/std/zig/system/NativeTargetInfo.zig
-+++ b/lib/std/zig/system/NativeTargetInfo.zig
-@@ -355,7 +355,7 @@ fn detectAbiAndDynamicLinker(
- return result;
- }
- 
--const env_file = std.fs.openFileAbsoluteZ("/usr/bin/env", .{}) catch 
|err| switch (err) {
-+const env_file = std.fs.openFileAbsoluteZ("/bin/bash", .{}) catch |err| 
switch (err) {
- error.NoSpaceLeft => unreachable,
- error.NameTooLong => unreachable,
- error.PathAlreadyExists => unreachable,

diff --git a/dev-lang/zig-bin/zig-bin-0.9.1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild

[gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/files/, dev-lang/zig-bin/

2022-08-22 Thread Jakov Smolić
commit: 1f53d35103da2331afeaad49718cb0703dd5f88d
Author: Eric Joldasov  getgoogleoff  me>
AuthorDate: Tue Jul 26 21:19:14 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Mon Aug 22 08:16:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f53d351

dev-lang/zig-bin: new package, add 0.9.1

Signed-off-by: Eric Joldasov  getgoogleoff.me>
Signed-off-by: Jakov Smolić  gentoo.org>

 dev-lang/zig-bin/Manifest  |  4 +++
 .../files/zig-bin-0.9.1-fix-detecting-abi.patch| 19 +++
 dev-lang/zig-bin/metadata.xml  | 16 ++
 dev-lang/zig-bin/zig-bin-0.9.1.ebuild  | 37 ++
 4 files changed, 76 insertions(+)

diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
new file mode 100644
index ..65078bba09fa
--- /dev/null
+++ b/dev-lang/zig-bin/Manifest
@@ -0,0 +1,4 @@
+DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B 
3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d
 SHA512 
ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639
+DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B 
5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b
 SHA512 
239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2e5137aabb5b6648148c351e29c171de9e333
+DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B 
7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5
 SHA512 
5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d
+DIST zig-linux-x86_64-0.9.1.tar.xz 41011464 BLAKE2B 
053fc1c3d30e5798b7d30c9a4f9b5609b9b080e9f237dab52ae661b183663fca6582dcc37458e8a51dd7eb4fbd1d3a9946f7c67cb756b69460f0e23b03cc96eb
 SHA512 
0e5f5971dc9e586911f98122a410c98d8aaef2795d2d68488a1e9468ea45135479dac7f92708c973db4f8efce78cb0c6b3759cf239fba6237052434a2120d4d3

diff --git a/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-detecting-abi.patch 
b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-detecting-abi.patch
new file mode 100644
index ..6aa2f49b379a
--- /dev/null
+++ b/dev-lang/zig-bin/files/zig-bin-0.9.1-fix-detecting-abi.patch
@@ -0,0 +1,19 @@
+From: Eric Joldasov 
+
+Upstream parses /usr/bin/env ELF file for detecting C ABI and the dynamic 
linker.
+However, if sys-apps/coreutils was merged with "multicall" USE flag, it would 
be a script and not a ELF file.
+This will raise error.UnexpectedEndOfFile, and Zig will fallback to default 
dynamic linker (i.e. musl),
+which breaks building programs with Zig on glibc systems. This patch changes 
file from
+/usr/bin/env to /bin/bash, because it is more reliable on Gentoo systems.
+
+--- a/lib/std/zig/system/NativeTargetInfo.zig
 b/lib/std/zig/system/NativeTargetInfo.zig
+@@ -355,7 +355,7 @@ fn detectAbiAndDynamicLinker(
+ return result;
+ }
+ 
+-const env_file = std.fs.openFileAbsoluteZ("/usr/bin/env", .{}) catch 
|err| switch (err) {
++const env_file = std.fs.openFileAbsoluteZ("/bin/bash", .{}) catch |err| 
switch (err) {
+ error.NoSpaceLeft => unreachable,
+ error.NameTooLong => unreachable,
+ error.PathAlreadyExists => unreachable,

diff --git a/dev-lang/zig-bin/metadata.xml b/dev-lang/zig-bin/metadata.xml
new file mode 100644
index ..a5a5818faae7
--- /dev/null
+++ b/dev-lang/zig-bin/metadata.xml
@@ -0,0 +1,16 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   bratishkae...@getgoogleoff.me
+   Eric Joldasov
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   
+   
+   ziglang/zig
+   https://github.com/ziglang/zig/issues
+   
+

diff --git a/dev-lang/zig-bin/zig-bin-0.9.1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.9.1.ebuild
new file mode 100644
index ..7aa14d86a3ea
--- /dev/null
+++ b/dev-lang/zig-bin/zig-bin-0.9.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/;
+SRC_URI="
+   amd64? ( 
https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
+   arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz 
)
+   arm64? ( 
https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
+   x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
+
+RDEPEND="!dev-lang/zig"
+
+PATCHES=( "${FILESDIR}/${P}-fix-detecting-abi.patch" )
+