From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D3F9F158091 for ; Sun, 5 Jun 2022 06:56:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60CC4E0919; Sun, 5 Jun 2022 06:56:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B5C4E0948 for ; Sun, 5 Jun 2022 06:56:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 14A8D342088 for ; Sun, 5 Jun 2022 06:56:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45AE3471 for ; Sun, 5 Jun 2022 06:56:34 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1654411497.18687fccebb05fee5dbbab6308e26a205fcec718.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnftnl/files/, net-libs/libnftnl/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libnftnl/files/libnftnl-1.2.1-missing-export-set_elem.patch net-libs/libnftnl/libnftnl-1.2.1-r1.ebuild net-libs/libnftnl/libnftnl-9999.ebuild X-VCS-Directories: net-libs/libnftnl/ net-libs/libnftnl/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 18687fccebb05fee5dbbab6308e26a205fcec718 X-VCS-Branch: master Date: Sun, 5 Jun 2022 06:56:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 554060da-b564-401e-bb95-aa4ab7377b90 X-Archives-Hash: 8d8ee5951d3ac2e5c23a29e36963c862 commit: 18687fccebb05fee5dbbab6308e26a205fcec718 Author: Sam James gentoo org> AuthorDate: Sun Jun 5 06:44:12 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 5 06:44:57 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18687fcc net-libs/libnftnl: backport symbol export fix Signed-off-by: Sam James gentoo.org> .../libnftnl-1.2.1-missing-export-set_elem.patch | 21 +++++++++++++++++++++ ...ibnftnl-9999.ebuild => libnftnl-1.2.1-r1.ebuild} | 21 ++++++++++++++------- net-libs/libnftnl/libnftnl-9999.ebuild | 21 ++++++++++++++------- 3 files changed, 49 insertions(+), 14 deletions(-) diff --git a/net-libs/libnftnl/files/libnftnl-1.2.1-missing-export-set_elem.patch b/net-libs/libnftnl/files/libnftnl-1.2.1-missing-export-set_elem.patch new file mode 100644 index 000000000000..0ff574ddc48a --- /dev/null +++ b/net-libs/libnftnl/files/libnftnl-1.2.1-missing-export-set_elem.patch @@ -0,0 +1,21 @@ +https://git.netfilter.org/libnftnl/commit/?id=accee9a75e0e6678863d092d6a4f4afbadf0eed9 + +From: Pablo Neira Ayuso +Date: Wed, 18 May 2022 23:54:03 +0200 +Subject: set_elem: missing export symbol + +nftnl_set_elem_nlmsg_build_payload() is already available through .map +file and headers, add missing EXPORT_SYMBOL. + +Signed-off-by: Pablo Neira Ayuso +--- a/src/set_elem.c ++++ b/src/set_elem.c +@@ -300,6 +300,7 @@ err: + return NULL; + } + ++EXPORT_SYMBOL(nftnl_set_elem_nlmsg_build_payload); + void nftnl_set_elem_nlmsg_build_payload(struct nlmsghdr *nlh, + struct nftnl_set_elem *e) + { +cgit v1.2.3 diff --git a/net-libs/libnftnl/libnftnl-9999.ebuild b/net-libs/libnftnl/libnftnl-1.2.1-r1.ebuild similarity index 79% copy from net-libs/libnftnl/libnftnl-9999.ebuild copy to net-libs/libnftnl/libnftnl-1.2.1-r1.ebuild index 215d4c569086..49e48df43765 100644 --- a/net-libs/libnftnl/libnftnl-9999.ebuild +++ b/net-libs/libnftnl/libnftnl-1.2.1-r1.ebuild @@ -3,33 +3,36 @@ EAPI=7 -inherit autotools linux-info usr-ldscript verify-sig +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc +inherit linux-info usr-ldscript verify-sig DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem" HOMEPAGE="https://netfilter.org/projects/nftables/" if [[ ${PV} =~ ^[9]{4,}$ ]]; then - inherit git-r3 + inherit autotools git-r3 EGIT_REPO_URI="https://git.netfilter.org/${PN}" else SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2 verify-sig? ( https://netfilter.org/projects/${PN}/files/${P}.tar.bz2.sig )" - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" - VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + BDEPEND+="verify-sig? ( sec-keys/openpgp-keys-netfilter )" fi LICENSE="GPL-2" SLOT="0/11" # libnftnl.so version IUSE="examples static-libs test" - RESTRICT="!test? ( test )" RDEPEND=">=net-libs/libmnl-1.0.4:=" -BDEPEND+=" - virtual/pkgconfig" +BDEPEND+=" virtual/pkgconfig" DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-missing-export-set_elem.patch +) + pkg_setup() { if kernel_is ge 3 13; then CONFIG_CHECK="~NF_TABLES" @@ -41,6 +44,7 @@ pkg_setup() { src_prepare() { default + [[ ${PV} =~ ^[9]{4,}$ ]] && eautoreconf } @@ -48,12 +52,15 @@ src_configure() { local myeconfargs=( $(use_enable static-libs static) ) + econf "${myeconfargs[@]}" } src_install() { default + gen_usr_ldscript -a nftnl + find "${ED}" -type f -name '*.la' -delete || die if use examples; then diff --git a/net-libs/libnftnl/libnftnl-9999.ebuild b/net-libs/libnftnl/libnftnl-9999.ebuild index 215d4c569086..49e48df43765 100644 --- a/net-libs/libnftnl/libnftnl-9999.ebuild +++ b/net-libs/libnftnl/libnftnl-9999.ebuild @@ -3,33 +3,36 @@ EAPI=7 -inherit autotools linux-info usr-ldscript verify-sig +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc +inherit linux-info usr-ldscript verify-sig DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem" HOMEPAGE="https://netfilter.org/projects/nftables/" if [[ ${PV} =~ ^[9]{4,}$ ]]; then - inherit git-r3 + inherit autotools git-r3 EGIT_REPO_URI="https://git.netfilter.org/${PN}" else SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2 verify-sig? ( https://netfilter.org/projects/${PN}/files/${P}.tar.bz2.sig )" - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" - VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + BDEPEND+="verify-sig? ( sec-keys/openpgp-keys-netfilter )" fi LICENSE="GPL-2" SLOT="0/11" # libnftnl.so version IUSE="examples static-libs test" - RESTRICT="!test? ( test )" RDEPEND=">=net-libs/libmnl-1.0.4:=" -BDEPEND+=" - virtual/pkgconfig" +BDEPEND+=" virtual/pkgconfig" DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-missing-export-set_elem.patch +) + pkg_setup() { if kernel_is ge 3 13; then CONFIG_CHECK="~NF_TABLES" @@ -41,6 +44,7 @@ pkg_setup() { src_prepare() { default + [[ ${PV} =~ ^[9]{4,}$ ]] && eautoreconf } @@ -48,12 +52,15 @@ src_configure() { local myeconfargs=( $(use_enable static-libs static) ) + econf "${myeconfargs[@]}" } src_install() { default + gen_usr_ldscript -a nftnl + find "${ED}" -type f -name '*.la' -delete || die if use examples; then