diff options
Diffstat (limited to 'net-misc/radvd')
-rw-r--r-- | net-misc/radvd/Manifest | 2 | ||||
-rw-r--r-- | net-misc/radvd/files/radvd-2.19-clang16.patch | 62 | ||||
-rw-r--r-- | net-misc/radvd/radvd-2.19-r5.ebuild | 74 |
3 files changed, 138 insertions, 0 deletions
diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest index 1bbeb908fe8b..64cd9d8237e2 100644 --- a/net-misc/radvd/Manifest +++ b/net-misc/radvd/Manifest @@ -1,8 +1,10 @@ AUX radvd-2.15.init 1537 BLAKE2B 6ca0db1eeeee77c345e4a5d9ee75d4e4fac188e3e19b153cff748c2b3a6c95960e8c360168b32a0f2b860bf40c21de86bcff1cfb69b2f70e7ce005e46f5d532f SHA512 cd3a6527d7b323266748cf674090419e89dc153daf883601604d040fceb55850d551e44371ba383a2bb98adaf361311969d1eea94a9f3ec1bf8c11aad54aac8e +AUX radvd-2.19-clang16.patch 1928 BLAKE2B 474ecc1ead26d8f48d3fbf3717f344e6dbb2dfbaa0bd4327d9ee2cf0141aacdaf286ed1eba8092bb94e47224bbf3204f208367fa86fcf4fdaa2361cbfa296e1d SHA512 160fda7ce408cf86312f29e525bae899df6059a01e52fb731ea14c499ab286f93a30b56d7beaea6c94a081766eddc6331df4db9890d1a7ae5ea1eff6ce8bade0 AUX radvd-2.19-musl-include.patch 699 BLAKE2B 48ed5443cdad829b22f044ed5783d495ea111d4d573b6a961cf0a2fc44f7bf5a6db7c43e98a4e7f287a54d42114e5ddee9ffbc80f5209a12401a380ed3c196b0 SHA512 2451de4b6ed7979c2c64b30006c5c146612788a990f656c7ed6def6307c7682cb98708c6b780db8778ebe4ae460545bc71c00918d9fcd4bab764a10c1d5bbaf5 AUX radvd.conf 337 BLAKE2B 67d50a761449b35389580ac956758f5c8c9373a14294a9e98e8238cce4ef2847694712e12296197ff196d58a9e5123aa6e27044a2137c36c34c6e2342ee7db63 SHA512 303a79c6e60293571f5cc868ba36f48a98658be8b6a9596c007461cbef2775d7deb67950fdacb3f37765cffdda164bc386e23bbb512cbabebd5173245841e401 AUX radvd.service 603 BLAKE2B fb573b528050d772926f3cb3cf82984b946345f636b661583f3aa5ef720a664cc13b20b8435ad2bcdd5bbdbad6451530384cd869f6d33d4e6f2ccf014ff9871b SHA512 3371d18e71ddb7672e929152d9f93201b49c1ce08c77d59cbcac7654362690a9ab97db08519f5fbe210738595aa52f30f5972cacca988b9274e2218c21bc7dd2 DIST radvd-2.19.tar.xz 168264 BLAKE2B e28705837263d2d377721e4eaee56b2f86d636d77cf052f08a7c74d5d7f3871f6821a2681ba4997f283b4debe9b3df28a88b01f6fc16b87ee7c3f8b6bbf431b4 SHA512 a1eb40af90fc83ebab2517c16a0f7e85c11338ab276bec400b7c33177748d1e36bc5abd7e373b6742f12f7c690dd7ae6b951bc832c7de9bbb56f7e9bc844ed22 EBUILD radvd-2.19-r2.ebuild 1415 BLAKE2B a964bab2f685a74db1f08a15463b52423e70bf362c9b69a1b3988028567712d48ca435e2dc298935e9805b068b3857a5529598488612fca0c3ac90bfba193acb SHA512 434706478702c8320f0989ac17d43ffa293fef27619b61f5e98615a5da1488164c631d0ad33ad7e3e7aaa10030566fc0d9427ef212540d67929574e6df1c0a16 EBUILD radvd-2.19-r4.ebuild 1420 BLAKE2B 5603cce415c09d6238d0b1349ed986661a9cf02755ce7168117ab212d870bb293868a69380d22c7424215bb1f5f1c196162e31fd763c9d4d07b443c8ff21f637 SHA512 8f1e5e347f498b31d2bab8e69853b74938fd1b849874a16d263af6ed5636f08f57f67dce0aa3718ffd86636ce3346e94f10fcfa5373bfdb4233ff243392c75ff +EBUILD radvd-2.19-r5.ebuild 1549 BLAKE2B c544069216ab5202b3a3250b6fc2183686700d039f2ceaaba1054dc50aa7cbe7ced6234b13c070747afc64ec3835bf801322d642ea1d1cb5bd3a2978988cf711 SHA512 48174c86702e6b86e8a1d909f5bf0a129d497679c451effd567ca651e9bc6b9936322c5f7b3137025e43928656a15e37f35ffcf0dc4d4c766502c13d58a662ed MISC metadata.xml 417 BLAKE2B 7f94abef147b6a917da0c6d0070855bc54c121e0a6fbb54161e7e7de2ce0bf709de51fd3a5e834b52b2b19fbd544330266852788a810ee7f60a039a5c7c6fe14 SHA512 1402bb46da7074aa12c0154417b4d1aa3c887a3817281b59f8dcd3aa98708b30b2fa522c23d920afb4ff824753e7be2555ceb085ee72b967ff60249959c10476 diff --git a/net-misc/radvd/files/radvd-2.19-clang16.patch b/net-misc/radvd/files/radvd-2.19-clang16.patch new file mode 100644 index 000000000000..793126dbcc1b --- /dev/null +++ b/net-misc/radvd/files/radvd-2.19-clang16.patch @@ -0,0 +1,62 @@ +https://github.com/radvd-project/radvd/commit/f4baa88bfd77710a6034e3c23b95ef5efb80f83b +https://bugs.gentoo.org/880823 + +From ff7ab0cf445236f30e58531175ba912614fed952 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Thu, 17 Nov 2022 22:03:25 +0000 +Subject: [PATCH 1/2] Makefile.am: drop -Wno-implicit-function-declaration + +1. Clang 16 makes -Wimplicit-function-declaration error by default + (and it's planned that GCC 14 will do the same) so we need to fix + the real problem. This is papering over it. + +2. It's not true that there's nothing we can do about it. Fix in a follow-up + commit. + +Bug: https://bugs.gentoo.org/880823 +Fixes: b5e6b09cf914a960ac3b1676b77d3ea9f91821c7 +Signed-off-by: Sam James <sam@gentoo.org> +--- a/Makefile.am ++++ b/Makefile.am +@@ -66,9 +66,6 @@ radvd_LDADD = \ + scanner.c: gram.h + gram.h: gram.c + +-libradvd_parser_a_CFLAGS = \ +- -Wno-implicit-function-declaration +- + libradvd_parser_a_SOURCES = \ + gram.h \ + gram.y \ + +From e0f5bcd9091a5f7abd423fce9f372c8079849a64 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Thu, 17 Nov 2022 22:03:25 +0000 +Subject: [PATCH 2/2] gram.y: Fix -Wimplicit-function-declaration + +Clang 16 makes -Wimplicit-function-declaration an error by default. + +For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2], +or the (new) c-std-porting mailing list [3]. + +[0] https://lwn.net/Articles/913505/ +[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 +[2] https://wiki.gentoo.org/wiki/Modern_C_porting +[3] hosted at lists.linux.dev. + +Bug: https://bugs.gentoo.org/880823 +Signed-off-by: Sam James <sam@gentoo.org> +--- a/gram.y ++++ b/gram.y +@@ -20,6 +20,10 @@ + + #define YYERROR_VERBOSE 1 + ++int yylex (void); ++void yyset_in (FILE * _in_str); ++int yylex_destroy (void); ++ + #if 0 /* no longer necessary? */ + #ifndef HAVE_IN6_ADDR_S6_ADDR + # ifdef __FreeBSD__ + diff --git a/net-misc/radvd/radvd-2.19-r5.ebuild b/net-misc/radvd/radvd-2.19-r5.ebuild new file mode 100644 index 000000000000..339fa3d60deb --- /dev/null +++ b/net-misc/radvd/radvd-2.19-r5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools readme.gentoo-r1 systemd toolchain-funcs + +DESCRIPTION="Linux IPv6 Router Advertisement Daemon" +HOMEPAGE="https://v6web.litech.org/radvd/" +SRC_URI="https://v6web.litech.org/radvd/dist/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="selinux test" +RESTRICT="!test? ( test )" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + sys-devel/bison + sys-devel/flex + test? ( dev-libs/check ) +" +RDEPEND=" + acct-group/radvd + acct-user/radvd + selinux? ( sec-policy/selinux-radvd ) +" + +DOCS=( CHANGES README TODO radvd.conf.example ) + +PATCHES=( + "${FILESDIR}"/${P}-musl-include.patch + "${FILESDIR}"/${P}-clang16.patch +) + +src_prepare() { + default + + # Drop once clang16 patch is in a release + eautoreconf +} + +src_configure() { + econf --with-pidfile=/run/radvd/radvd.pid \ + --with-systemdsystemunitdir=no \ + $(use_with test check) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + + docinto html + dodoc INTRO.html + + newinitd "${FILESDIR}"/${PN}-2.15.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + systemd_dounit "${FILESDIR}"/${PN}.service + + readme.gentoo_create_doc +} + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS="Please create a configuration file ${ROOT}/etc/radvd.conf. +See ${ROOT}/usr/share/doc/${PF} for an example. + +grsecurity users should allow a specific group to read /proc +and add the radvd user to that group, otherwise radvd may +segfault on startup." |