diff options
Diffstat (limited to 'app-text/mandoc')
-rw-r--r-- | app-text/mandoc/Manifest | 3 | ||||
-rw-r--r-- | app-text/mandoc/files/mandoc-1.14.5-gcc10.patch | 54 | ||||
-rw-r--r-- | app-text/mandoc/mandoc-1.14.5-r1.ebuild | 13 |
3 files changed, 66 insertions, 4 deletions
diff --git a/app-text/mandoc/Manifest b/app-text/mandoc/Manifest index 5d413b536796..23eccdee0a75 100644 --- a/app-text/mandoc/Manifest +++ b/app-text/mandoc/Manifest @@ -1,6 +1,7 @@ +AUX mandoc-1.14.5-gcc10.patch 1304 BLAKE2B d7f5c74cc4fc0da250eff19dc54c541bc1fe974f902242a17a3f287a1c83cc5afbfeb9de56269445bb99ce58fbd6b37a20efa7642f465df3726f78d267d2ddbe SHA512 3114fd538a235c9f558ab1b1e94b322b98216fc20f04ccba3999fcee453a1cc30d00d97f5011c10f9c0e8a1299151a654c7d5cfbef4136ebde301a72542cedea AUX mandoc-1.14.5-r1-www-install.patch 637 BLAKE2B 2550351e29db19b43de500f039f0563af8a720ef3bf7efa60ac715ca956d7dd0d13d0e092ae2749e3a76fc456eacf0260ca6fc03d324e08bf287bd8d4ac56dbf SHA512 5ed589e1322a2bbd261eb56aee8376526b80cf72eb5eafbc6e2772018c924913db0fb27eb7a50ec2509640e03e41d11e88401f76293d1d4230e777e39056c9fe AUX mandoc.cron-r0 87 BLAKE2B 2fb4946dd2a9025f5bee78e61c11d77d6c6b9b32f9d17c11ea4f0d890e54b42817981e1cd4c568229927fd04bd0592e53ce18192f8359dded28be8c8690904f6 SHA512 74bdb16bc498d741128f1b6966afec8e21eb6899e26d20cf57cb0408ae6bdc63d75538dd355a21ae55593c359fbe707a56bbcdf6e78d557d4b53570db56fd6b3 DIST mandoc-1.14.5.tar.gz 651846 BLAKE2B 27aaf97e7226e989b33861d2a255304bb64a7cd43ca026568f4b044035241c3315a0d73673b023d9ca5b80575b8c584889832bbd86b80aaa49bb785b37559367 SHA512 848f290847f3095757f25647e6d73eb7044018b145bf6f9dc8b5db164b1421911efdc5b3b9022ec3a2c5af9687a84d5acedee810f2bd2f7caaa9242dadb2cc52 -EBUILD mandoc-1.14.5-r1.ebuild 2792 BLAKE2B ef7c7d491b369dd2071f8dcb0a532d2968182db8f21911c63d45e4a39b39a52cb573770ebee587ea376f171ea2419db110034aaab032f510656db59bff79f38d SHA512 9972596dd9afb8910c6d5bf9ff87f8ee61761cbda119270d1f148a5c0ea126e69e9a500a6aba223638d1949efe1a2e273b66d0bf618b509c65abd85266dae917 +EBUILD mandoc-1.14.5-r1.ebuild 2954 BLAKE2B eb4b9ffbe134ea11c1fac9fce45e8f84d7cad63a0ff803b4d1fdd0cb6287a732c2c29f1114be40eb4b031d90035858edb79fd83e170b6e9de1c34e6fe7a03d96 SHA512 5f1edd81227c09a9eab1f348f1e34bbd8b23e7e5c710af31667a9cbc94943965f5411aea9594ce611b08487b4137f5627452c45ad8668b33b73f2a1d56765b87 EBUILD mandoc-1.14.5.ebuild 1727 BLAKE2B fbdad7247703bcea768dd034b2169f5183cf7ca644dad09335428356d83935d3ab4db2449d18e9c44d23b76c2d5fcfbdda4f6c09ec4bb5b81e8ca2732fdc65f6 SHA512 92be1ad119597580062788095aafb9fc951f8c55d1c368cc412b7afcff32476b01aa103f6f067c326d8a459b97e6071c8c79af8ef51482d5205fa27a743b1f42 MISC metadata.xml 375 BLAKE2B 6b3565c3419b306f33ce9ad867319cee386b20c92743fe1a6565a348aca03d13133906d07f5aa10ec145d84645fa11894ad8abd73a6f65d5d0680ce03ef339d5 SHA512 1814f8bf92ec3500aba2e6a194a8a1b0e7adf53de5ac5408ef22fa42845b9c7270a27eea0061d77b5b53ea7cf77e9bfc75c865dc1d6fb661a5bb8412fb9cda3e diff --git a/app-text/mandoc/files/mandoc-1.14.5-gcc10.patch b/app-text/mandoc/files/mandoc-1.14.5-gcc10.patch new file mode 100644 index 000000000000..6d976683772c --- /dev/null +++ b/app-text/mandoc/files/mandoc-1.14.5-gcc10.patch @@ -0,0 +1,54 @@ +https://cvsweb.bsd.lv/mandoc/compat_reallocarray.c.diff?r1=1.4&r2=1.5 +https://cvsweb.bsd.lv/mandoc/compat_getline.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2 + +https://bugs.gentoo.org/707254 +--- mandoc/compat_reallocarray.c 2014/12/11 09:05:01 1.4 ++++ mandoc/compat_reallocarray.c 2020/06/15 01:37:15 1.5 +@@ -1,8 +1,0 @@ +-#include "config.h" +- +-#if HAVE_REALLOCARRAY +- +-int dummy; +- +-#else +- +@@ -23,6 +15,7 @@ int dummy; + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ ++#include "config.h" + + #include <sys/types.h> + #include <errno.h> +@@ -45,5 +38,3 @@ reallocarray(void *optr, size_t nmemb, size_t size) + } + return realloc(optr, size * nmemb); + } +- +-#endif /*!HAVE_REALLOCARRAY*/ +--- mandoc/compat_getline.c 2015/11/07 20:52:52 1.1 ++++ mandoc/compat_getline.c 2020/06/15 01:37:14 1.2 +@@ -1,8 +1,0 @@ +-#include "config.h" +- +-#if HAVE_GETLINE +- +-int dummy; +- +-#else +- +@@ -22,6 +14,7 @@ int dummy; + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ ++#include "config.h" + + #include <sys/types.h> + #include <errno.h> +@@ -64,5 +57,3 @@ getline(char **buf, size_t *bufsz, FILE *fp) + return pos; + } + } +- +-#endif diff --git a/app-text/mandoc/mandoc-1.14.5-r1.ebuild b/app-text/mandoc/mandoc-1.14.5-r1.ebuild index c6058c164364..e23baa856a58 100644 --- a/app-text/mandoc/mandoc-1.14.5-r1.ebuild +++ b/app-text/mandoc/mandoc-1.14.5-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ SRC_URI="https://mdocml.bsd.lv/snapshots/${P}.tar.gz" LICENSE="ISC" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" IUSE="cgi system-man" RDEPEND="sys-libs/zlib @@ -24,7 +24,10 @@ BDEPEND=" cgi? ( app-text/highlight ) " -PATCHES=( "${FILESDIR}"/${PN}-1.14.5-r1-www-install.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-1.14.5-r1-www-install.patch + "${FILESDIR}"/${PN}-1.14.5-gcc10.patch +) pkg_pretend() { if use system-man ; then @@ -93,6 +96,10 @@ src_prepare() { if [[ -n "${MANDOC_CGI_H}" ]]; then cp "${MANDOC_CGI_H}" cgi.h || die fi + + # ./configure does not propagate all configure.local + # settings to Makefile.local settings. + tc-export AR } src_compile() { |