summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/FlameGraph/FlameGraph-1.0.ebuild2
-rw-r--r--dev-util/FlameGraph/FlameGraph-1.0_p20210830.ebuild2
-rw-r--r--dev-util/FlameGraph/FlameGraph-9999.ebuild2
-rw-r--r--dev-util/FlameGraph/Manifest8
-rw-r--r--dev-util/FlameGraph/metadata.xml3
-rw-r--r--dev-util/Manifest.gzbin68790 -> 68962 bytes
-rw-r--r--dev-util/android-tools/Manifest1
-rw-r--r--dev-util/android-tools/android-tools-33.0.3-r1.ebuild85
-rw-r--r--dev-util/android-udev-rules/Manifest3
-rw-r--r--dev-util/android-udev-rules/android-udev-rules-20220903.ebuild39
-rw-r--r--dev-util/android-udev-rules/metadata.xml15
-rw-r--r--dev-util/global/Manifest3
-rw-r--r--dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch19
-rw-r--r--dev-util/global/global-6.6.4.ebuild3
14 files changed, 176 insertions, 9 deletions
diff --git a/dev-util/FlameGraph/FlameGraph-1.0.ebuild b/dev-util/FlameGraph/FlameGraph-1.0.ebuild
index dbf96c39df4e..63b0925c8c09 100644
--- a/dev-util/FlameGraph/FlameGraph-1.0.ebuild
+++ b/dev-util/FlameGraph/FlameGraph-1.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-DESCRIPTION="Visualization of hierarchical data, especially pofiled stack traces"
+DESCRIPTION="Visualization of hierarchical data, especially profiled stack traces"
HOMEPAGE="https://www.brendangregg.com/flamegraphs.html https://github.com/brendangregg/FlameGraph"
if [[ ${PV} == "9999" ]]; then
diff --git a/dev-util/FlameGraph/FlameGraph-1.0_p20210830.ebuild b/dev-util/FlameGraph/FlameGraph-1.0_p20210830.ebuild
index e4e77ba0b9f3..44f852db5bd4 100644
--- a/dev-util/FlameGraph/FlameGraph-1.0_p20210830.ebuild
+++ b/dev-util/FlameGraph/FlameGraph-1.0_p20210830.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-DESCRIPTION="Visualization of hierarchical data, especially pofiled stack traces"
+DESCRIPTION="Visualization of hierarchical data, especially profiled stack traces"
HOMEPAGE="https://www.brendangregg.com/flamegraphs.html https://github.com/brendangregg/FlameGraph"
if [[ ${PV} == "9999" ]]; then
diff --git a/dev-util/FlameGraph/FlameGraph-9999.ebuild b/dev-util/FlameGraph/FlameGraph-9999.ebuild
index dbf96c39df4e..63b0925c8c09 100644
--- a/dev-util/FlameGraph/FlameGraph-9999.ebuild
+++ b/dev-util/FlameGraph/FlameGraph-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-DESCRIPTION="Visualization of hierarchical data, especially pofiled stack traces"
+DESCRIPTION="Visualization of hierarchical data, especially profiled stack traces"
HOMEPAGE="https://www.brendangregg.com/flamegraphs.html https://github.com/brendangregg/FlameGraph"
if [[ ${PV} == "9999" ]]; then
diff --git a/dev-util/FlameGraph/Manifest b/dev-util/FlameGraph/Manifest
index 187fa6d35093..627622367705 100644
--- a/dev-util/FlameGraph/Manifest
+++ b/dev-util/FlameGraph/Manifest
@@ -1,6 +1,6 @@
DIST FlameGraph-1.0.tar.gz 1049627 BLAKE2B 4ac6669de754d5c17cd783a2f4aca956f48ef5f2d02740ee63c10629b940df70ea4ea66b8ea5ebbe3c1da5ca74987383ffd700409ce469ad43eedcb72d2e8a3c SHA512 0ae27fd14f76f0db7873a50079efb2bc4fd77ee6550700746b51eeee6813fbebb233d35d744e1b397734da9f89b25c4c0de3567f283cf1218ee7baee46e1b8e8
DIST FlameGraph-1.0_p20210830.tar.gz 1057405 BLAKE2B 75669be86ace6e6ccb30bd3883c77aef9a3b6e9c1d5d62e4d22f4090d9934a37fa083fe7783e4514f5439448c7d39d3f1c3b839170ac523e44a3bca71597463b SHA512 16769c1e3e907f0b53fd544a55eb3f580a2f1af55dd22b594d6aac9f4ffa881a2cdc6ddfc3599a6479eb127c1d3aefe0052dff1932553a2bdc377aa6f995f26c
-EBUILD FlameGraph-1.0.ebuild 679 BLAKE2B 503e0bf6daf12f57c73833da0303784eb97c079f7b0a6fa24dd07841bc263bc63e254123f05afd4135663a55dc2df1f623e8275679cba72852b7e116ae96df6c SHA512 67501fcf34e87e498fa160a0c99ca3151ad00a706c104ab14e5550049c3dc133ba99171002609666e37c53f8e398d0df4b420319acc070b3b2b13ff26702bfc0
-EBUILD FlameGraph-1.0_p20210830.ebuild 661 BLAKE2B 8f962d62d3a327765a6b2c617223e41233585315c0e1b7de05a3f5d11e6b7884fbb141e4d36cbfa350b743dbee8db471f4eff650b4244946636c9064a8025802 SHA512 97c53bcdaa1103789b2171a8ac6792fd7e6587591890f9ceaebf73fc7dc716320b2f534f8d0e242f47c9a370eea31a62467e5768cddc342a1e129b61388cb53d
-EBUILD FlameGraph-9999.ebuild 679 BLAKE2B 503e0bf6daf12f57c73833da0303784eb97c079f7b0a6fa24dd07841bc263bc63e254123f05afd4135663a55dc2df1f623e8275679cba72852b7e116ae96df6c SHA512 67501fcf34e87e498fa160a0c99ca3151ad00a706c104ab14e5550049c3dc133ba99171002609666e37c53f8e398d0df4b420319acc070b3b2b13ff26702bfc0
-MISC metadata.xml 247 BLAKE2B f18c471812d5b8c75f2e05c4fb556108fb93554b59ee61a8215803f2654854a7401fcd62964192c228bfebfb52ae4573cfd24b29a944630c8c733d154d2b0d9a SHA512 cea16f7db3110bd4629b9265d5acdec6d70877330664f8e83f726002eb69aec7f822e9cde9c7da900451cdef60f1ceba373dfe73c73f82173bbf1d2f9f7338b7
+EBUILD FlameGraph-1.0.ebuild 680 BLAKE2B e85386a2e7ca303e2216745b209a4b891b02b9a639492e495d1f326144bb722a2e8b61ff1c178156019e100611f25503a77b3f44c9fb7d0c31ab94523e5f26ca SHA512 408b8e67b97b73781783dd40a12ba4c1c2fd5a2414d12112d0b89fb3a6b967ecdf39dd2e53ad9fdb7d24658b98c7803d6a58a351af43d5aba47a2b1a47f64fea
+EBUILD FlameGraph-1.0_p20210830.ebuild 662 BLAKE2B 1ebf0fc1136538fdf29af46e29200ab73103f3b6faa5b38e2731d4b0abe798c3900d049542a2586433d920cab593e375e60382c52eb72c880b8b6fa5ffc27788 SHA512 37c3b1aacee0b354d290cead6d7d671488f6e79a110c5554260a058025651d03ec4ec15b2fdf73459b13c6a2e12256937f5ad38a08977594d9672a4915e522df
+EBUILD FlameGraph-9999.ebuild 680 BLAKE2B e85386a2e7ca303e2216745b209a4b891b02b9a639492e495d1f326144bb722a2e8b61ff1c178156019e100611f25503a77b3f44c9fb7d0c31ab94523e5f26ca SHA512 408b8e67b97b73781783dd40a12ba4c1c2fd5a2414d12112d0b89fb3a6b967ecdf39dd2e53ad9fdb7d24658b98c7803d6a58a351af43d5aba47a2b1a47f64fea
+MISC metadata.xml 335 BLAKE2B 763810bfc87b644b5559da3ebc79826e27b26f58c6be072da6c399e8f799d8a5f97cefa44b4b6d42af33dee63e53ef52660bd924619e90857290fa30071d9a25 SHA512 0acbd73fa02f69ff43015f2ad7b34a9d93e5423235111f2f93348889cb34f81a1a7980a507ab5628a18c6ab14895666391b1d3c555518df013b1eb245a18abe4
diff --git a/dev-util/FlameGraph/metadata.xml b/dev-util/FlameGraph/metadata.xml
index a7fa285c7476..8c039b3de60a 100644
--- a/dev-util/FlameGraph/metadata.xml
+++ b/dev-util/FlameGraph/metadata.xml
@@ -5,4 +5,7 @@
<name>Florian Schmaus</name>
<email>flow@gentoo.org</email>
</maintainer>
+ <upstream>
+ <remote-id type="github">brendangregg/FlameGraph</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz
index 158d3a6bd3fd..1208addbac27 100644
--- a/dev-util/Manifest.gz
+++ b/dev-util/Manifest.gz
Binary files differ
diff --git a/dev-util/android-tools/Manifest b/dev-util/android-tools/Manifest
index 5c64e01aa0e9..5bf4e77e0ca2 100644
--- a/dev-util/android-tools/Manifest
+++ b/dev-util/android-tools/Manifest
@@ -6,5 +6,6 @@ DIST android-tools-31.0.3p2.tar.xz 22458776 BLAKE2B a51f839ac44e6e998092d802eb18
DIST android-tools-33.0.3.tar.xz 25300756 BLAKE2B 4254f0ab8657966cf56e2a7c3e9a3d889dfa9f26e61d8b46480bb74c5a8be33494f450827e3b2db4087006b3160892e6a846ef33719870cbbd032647cfc3ce78 SHA512 78c8141f5f13f1c0e5da474e1d79760a612e911519af4e9f21c0e5005f2ce99f3aeacf16f3fcdfe1250fc795a88190fa243592e1066a2156e1fd8d2b9c3d7f71
EBUILD android-tools-31.0.3.ebuild 2207 BLAKE2B 075ba2bcbf2f30b9c3804be39c3b67397634e69baf1572096f32a3f0d927fd35526246ef2e4590dddf92f71350bc172bf58c1e70107cfbde015588ada9f90509 SHA512 57d1e597562ab7688f5715635b6c4f86e7dd5b8b00fc120793fd7a047924f647f9f4725e86b93afb0648c8c8c086cca5a7eeea56a90a2636d23fcf571daccde7
EBUILD android-tools-31.0.3_p2.ebuild 2157 BLAKE2B 3f7738ccabc27a7b54f30f533613aca897efb4a70cae04a999a586320d42711329cb4521f5da8f19a6b091c72104aace5993fe74b04057f8a00e3f8269ed9436 SHA512 4b6621928d031ee07f0517b882cdd8f37a833aa5f2b398f7a40df6e4ba13b9c030c300f620daef43143f0573aff0ba955d8f59a5ca3d8475395118592add7fbd
+EBUILD android-tools-33.0.3-r1.ebuild 2177 BLAKE2B 6e17ac3a51201acc580cc477283ee74ee7375de3318e2acf79ea2ae09aaa6b4f3b382794bc9e1f4d9bc83101949799bc6e83a5a14f2c92c6efbf1c56db133cdc SHA512 45d4291b3f1450e0ba7969b98e4fe1be6e15985f5dd2a116fdb4fc8d3691e0f265a1aec117b03f6b9b3392d1bf915465d84d7c84e78231359f04a24308f9a3b5
EBUILD android-tools-33.0.3.ebuild 2159 BLAKE2B 8adf5dfb99fd6d2c68d6073cbd8021829212540520226aa8070cbad13aa5d5ce18d1c0cd37b36b4fa835a5988800fc39c453e114cf5c73e031e2647f826edf98 SHA512 d55b55fe5b07e2b758c29d06c25236a3ef2922397ee87bd509b9ad4c5e1f7d5818ff4f2620dfd2fd095e6cf64ad2a87b763b1efa0f13e1d24f1bf0ef5b0e4914
MISC metadata.xml 724 BLAKE2B 7ef6e07d806dff51946236dfee2f5eaf207fd7c9cde6e73cb7f372fea5cd8b2b559e4f1fe81a315c41beed5beba92603cc93a16183d63953fbed4ba0d2941116 SHA512 d47cf87259ad2b2a8d6f8edf6b2c2084d0046773447ed9647cc232437ec8f3e8c452cb26ac7e0a619b220e073518903b77c55ba7c2e9f7663069fea2e7096e75
diff --git a/dev-util/android-tools/android-tools-33.0.3-r1.ebuild b/dev-util/android-tools/android-tools-33.0.3-r1.ebuild
new file mode 100644
index 000000000000..5e81ccbffd54
--- /dev/null
+++ b/dev-util/android-tools/android-tools-33.0.3-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit cmake python-r1
+
+DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
+HOMEPAGE="https://github.com/nmeum/android-tools/ https://developer.android.com/"
+
+MY_PV="${PV//_/}"
+SRC_URI="https://github.com/nmeum/android-tools/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz
+ https://dev.gentoo.org/~zmedico/dist/${PN}-31.0.3-no-gtest.patch
+"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
+LICENSE="Apache-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# dev-libs/libpcre only required for e2fsdroid
+DEPEND="
+ app-arch/brotli:=
+ app-arch/lz4:=
+ app-arch/zstd:=
+ dev-libs/libpcre2:=
+ >=dev-libs/protobuf-3.0.0:=
+ sys-libs/zlib:=
+ virtual/libusb:1=
+"
+RDEPEND="${DEPEND}
+ dev-util/android-udev-rules
+ python? ( ${PYTHON_DEPS} )
+"
+BDEPEND="
+ dev-lang/go
+"
+
+DOCS=()
+
+src_prepare() {
+ eapply "${DISTDIR}/${PN}-31.0.3-no-gtest.patch"
+ cd "${S}/vendor/core" || die
+ eapply "${S}/patches/core/0011-Remove-the-useless-dependency-on-gtest.patch"
+ cd "${S}/vendor/libziparchive" || die
+ eapply "${S}/patches/libziparchive/0004-Remove-the-useless-dependency-on-gtest.patch"
+ cd "${S}"
+ rm -r patches || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # Statically link the bundled boringssl
+ -DBUILD_SHARED_LIBS=OFF
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ export GOCACHE="${T}/go-build"
+ export GOFLAGS="-mod=vendor"
+ cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+ rm "${ED}/usr/bin/mkbootimg" || die
+ rm "${ED}/usr/bin/unpack_bootimg" || die
+ rm "${ED}/usr/bin/repack_bootimg" || die
+ if use python; then
+ python_foreach_impl python_newexe vendor/mkbootimg/mkbootimg.py mkbootimg
+ python_foreach_impl python_newexe vendor/mkbootimg/unpack_bootimg.py unpack_bootimg
+ python_foreach_impl python_newexe vendor/mkbootimg/repack_bootimg.py repack_bootimg
+ fi
+ docinto adb
+ dodoc vendor/adb/*.{txt,TXT}
+ docinto fastboot
+ dodoc vendor/core/fastboot/README.md
+}
diff --git a/dev-util/android-udev-rules/Manifest b/dev-util/android-udev-rules/Manifest
new file mode 100644
index 000000000000..9cda7f7666eb
--- /dev/null
+++ b/dev-util/android-udev-rules/Manifest
@@ -0,0 +1,3 @@
+DIST android-udev-rules-20220903.tar.gz 21009 BLAKE2B 4f0375b574f123e7cbd18658582568f85e3278e9fe2b673e6c9193a16845737afc99d82d0df2f6a8d0daf784132e7d523bdf767761a5d467a66bf89f86cc1046 SHA512 ca09a1b49b6cbc7df2b8c6bea1e6fcf4886938c8567002054222795493bea036e3c5a139939e43cb965d45a8ecf74c0715583ef1aade2b7783751a75ab34d540
+EBUILD android-udev-rules-20220903.ebuild 736 BLAKE2B 9c2f4e76863875be93e915cd1ff982d47f04e626b88a6d302a02c497949a58e7491aef86b3250522ade4935da806a6bbeb85942725aa22dd405bb03da022b87f SHA512 9c86471c826791683dc712b3068c85a8c553aa0e03526780afe7de38602f23d3a7409a319e881150c29d2784ed108c033dcaf02eaa93ed11fc3223377a2ee66a
+MISC metadata.xml 489 BLAKE2B 89af52034e7b4d3588131f94d9c5d2af47442a46550cb694383a19c5ed95de9e6be6b58dd91e32d951ec20d1b167bd550bc2aaf72db2ed866ef7b66367b3e7d9 SHA512 eb468d8fc9103f7b6f62849e130235d8697f770f3b7a4d9f45e591d4f8dc5b7cd1d6d80ab2df441f7f531e74fa0914947c5f65cabbb3e8d059d294b940b47132
diff --git a/dev-util/android-udev-rules/android-udev-rules-20220903.ebuild b/dev-util/android-udev-rules/android-udev-rules-20220903.ebuild
new file mode 100644
index 000000000000..e89254bcee98
--- /dev/null
+++ b/dev-util/android-udev-rules/android-udev-rules-20220903.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit udev
+
+DESCRIPTION="Android udev rules list aimed to be the most comprehensive on the net"
+HOMEPAGE="https://github.com/M0Rf30/android-udev-rules"
+SRC_URI="https://github.com/M0Rf30/android-udev-rules/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+RDEPEND="
+ acct-group/android
+ virtual/udev
+"
+
+src_prepare() {
+ default
+
+ # Use the pre-existing android group
+ sed -i 's/GROUP="adbusers"/GROUP="android"/' 51-android.rules || die
+}
+
+src_install() {
+ udev_dorules 51-android.rules
+ einstalldocs
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}
diff --git a/dev-util/android-udev-rules/metadata.xml b/dev-util/android-udev-rules/metadata.xml
new file mode 100644
index 000000000000..6fe12059e54f
--- /dev/null
+++ b/dev-util/android-udev-rules/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>parona@protonmail.com</email>
+ <name>Alfred Wingate</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">M0Rf30/android-udev-rules</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/global/Manifest b/dev-util/global/Manifest
index fe594d9e431c..5f5b24faf79f 100644
--- a/dev-util/global/Manifest
+++ b/dev-util/global/Manifest
@@ -1,6 +1,7 @@
AUX 50gtags-gentoo.el 183 BLAKE2B 242ceb0370227a6c0f1ee23477aa3798e0e8580e59849a8b47623697b6bfc1f98ac4b3f57ef0fb9a9269215f7f2666191907072064c4e7a4450fce5fc59c9724 SHA512 5a7b4e3eb4ee7ce479766a01dea5f82ab7499e666130b869c8f61ec9dfa69250b4b98357f6eb3d1b14da0348eb2c7d77ec0146d1e85996254a8fd7eaa3f3ff05
AUX global-6.2.9-tinfo.patch 2047 BLAKE2B b88b65679f9b6ed0b96ca236c1918c3238baf99bdff8c7a45f85f982923d82341f23fc961cc4d61ee9269900b48e2d726ab57482e9635b035cf621e27da0f72e SHA512 f5d83716ba2fde29ad5765665d00b4d2a5b4c8d6351cd6ca9d8c375a6c953f795811e156c0cdb28549837c72abbe2c2bef9ad4cb419e7043115c50858b831698
+AUX global-6.6.4-Fix-build-with-Clang-16.patch 765 BLAKE2B f12caf24c4c1ee74ee70b18ff89d44bb45649766514ce3f716b5466026c258be693a0b7483578a319850431cda279148870b0e5b0d763f734eeb52a7206cf4d9 SHA512 625f093f93cda118c9cce22ba8e37a591acc550454fd300718df1b27887294cd52d079b66791d1dce49759b924606a9d9c7d77a50565400f4be7a381a8ba4ba0
AUX global-6.6.4-fno-common.patch 946 BLAKE2B 8063d13db0942c0face6fde1411b96f352d706a85a4cf9f4b5c1eac43f6855e4c914166df2da8d01521a73f2d05b20df65aa25f6a3b965379346d2b523c8ca88 SHA512 f2579cbe22a4c97be0e7ccbf945b9d509bf22cdfa064e6e9fb6182204edf6085e97166ef3f771fe65942505259aa9b42b6c164c644ae95bba8d1e11f1319e0f4
DIST global-6.6.4.tar.gz 2988969 BLAKE2B 784087537094d27c10d1f2bc992e799c35ab6ce3b86e041c31279e6954b203e80676b3158ba95e7957456b75a213d70998aae9047836cd4d388212236f05a081 SHA512 cb4ed451d3aaf47c4c59cdc3f74c97d3171108177d4846b5dac843589710e66d87c9d7bbe080c3770329e8e40105ac52dcafb4609257347593cca4d94711f483
-EBUILD global-6.6.4.ebuild 1697 BLAKE2B 91fddaf844d76a6b68f3372cb78992067b4c5c552c4dd8bdf375384cf0346382becd9da6de7cabf5358271c3c0df1573d27e4bec7d8625ca68df35bb0e01c104 SHA512 39a8ae3a8b7bedcee0bb9ee7a490555d8640cb098da23042e5d3b81967f2711bdee8ce8631c02a2aee3e6f3864022f4046793bf47f9c20ea628adc9e176c67fb
+EBUILD global-6.6.4.ebuild 1754 BLAKE2B 6d8418ee6ff003ed998a6322fc9d279878c41b64b319f51746230520d4a2ca1c7bb447752b78f2c292c3e663d238fe9590ce14e1ae24dfb720b8c05708f772be SHA512 d4f5df9ca59748b7fe5cdbd73611153c5ab41f0dd4c1badaad751cc6e3df74c12297a6dea427a7db20e23653d2d4aff24b85a4198fd2380e5ca3685c210aadf6
MISC metadata.xml 440 BLAKE2B 30e5dcd91d136b7289fb2c27342e7cf137c4ea0051fc9daa2caca7aac73088aeeacd2cff4f808f1bbb299de2d0011ff10b9f861f70efb1b8e1fdc78c6613615e SHA512 5cfed438b49ef4e50cbf21a26b8c8e3dc0c4c3cf4c275eaf20a0165e3c9277b694fb0b0b180287fea75fb7da8e35a446ce22cecae69a277a21099770032800e4
diff --git a/dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch b/dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch
new file mode 100644
index 000000000000..a0398b46295b
--- /dev/null
+++ b/dev-util/global/files/global-6.6.4-Fix-build-with-Clang-16.patch
@@ -0,0 +1,19 @@
+From 13f045457f08e349d6bb3f3e98a3b59c73f32bbc Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 2 Oct 2022 23:34:05 +0100
+Subject: [PATCH] Fix build with Clang 16
+
+Bug: https://lists.gnu.org/archive/html/bug-global/2021-02/msg00012.html
+Bug: https://bugs.gentoo.org/870988
+--- a/configure.ac
++++ b/configure.ac
+@@ -74,7 +74,8 @@ case "$host_os" in
+ AC_MSG_CHECKING(whether POSIX.1-2008 realpath is equipped)
+ AC_CACHE_VAL(ac_cv_posix1_2008_realpath,
+ [AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-main(){ (void)realpath("/./tmp", (void *)0); return 0; }
++#include <stdlib.h>
++int main(){ (void)realpath("/./tmp", (void *)0); return 0; }
+ ]])],[ac_cv_posix1_2008_realpath=yes],
+ [ac_cv_posix1_2008_realpath=no])])
+ AC_MSG_RESULT($ac_cv_posix1_2008_realpath)
diff --git a/dev-util/global/global-6.6.4.ebuild b/dev-util/global/global-6.6.4.ebuild
index 48f5dfdc0a92..1343cfa448b5 100644
--- a/dev-util/global/global-6.6.4.ebuild
+++ b/dev-util/global/global-6.6.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -38,6 +38,7 @@ SITEFILE="50gtags-gentoo.el"
PATCHES=(
"${FILESDIR}/${PN}-6.2.9-tinfo.patch"
"${FILESDIR}/${PN}-6.6.4-fno-common.patch"
+ "${FILESDIR}/${PN}-6.6.4-Fix-build-with-Clang-16.patch"
)
DOCS=( AUTHORS FAQ NEWS README THANKS )