Skip to content

Commit

Permalink
net-misc/passt: add 2024.03.20 and bug fixes
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/920795
Closes: https://bugs.gentoo.org/924494
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
  • Loading branch information
rahilarious committed Mar 21, 2024
1 parent 41f8984 commit e6c72bf
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
1 change: 1 addition & 0 deletions net-misc/passt/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST passt-2023.12.04.tar.xz 188136 BLAKE2B f1d72fbb4bbb25f6a11e9ff87a91cf9bac06e047b8cb9a8b40402ced1422c23b105fa7e64646698d38ad747efa449c34cfdaecf492a3e4984114cbcf60656cdc SHA512 febd9fa22363438b52b2688481183d81c22966e1775139fc559dbfa50437c9b00ba09800db867738d25fcea8ac05d4589b75dcd2d0c88eeffefc0598d4236001
DIST passt-2023.12.30.tar.xz 188596 BLAKE2B 75712a7cb7a00fea20427979153090d938b8c7b0e3da61c83cabb3751786034df35ebbe8afbd991d582a680f55b12792547b68efa931a5576dc181040b31e5fd SHA512 4b19d191e2526bacc61bb8ab2964f5da4e0535656b094a7592f91d6b437c855a586fc772e2abd89138ff4f89aae12ade494c6e0fe7bee1502fe319215200d8f0
DIST passt-2024.03.20.tar.xz 195332 BLAKE2B 1bed740ddd235f300a4233fb2024f155758809589f1fdd2174ab99a8a93dd16044ab41814b215d12eb1e557966a73a3754bbff2b9acd752b45b385edd88ba3c7 SHA512 3701820e539545771d0f867fe0b8977cb5967e7501413f717fed08d2d2c141f17d86ed7238177b4fb4cf4cfc01c6c9d07e3c218c34b48e0a5a1f2b2ce8a5b903
13 changes: 13 additions & 0 deletions net-misc/passt/files/Makefile-2024.03.20.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Addressing following bugs:
https://bugs.gentoo.org/924494
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@

FLAGS := -Wall -Wextra -Wno-format-zero-length
FLAGS += -pedantic -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
-FLAGS += -D_FORTIFY_SOURCE=2 -O2 -pie -fPIE
+FLAGS += -O2 -pie -fPIE
FLAGS += -DPAGE_SIZE=$(shell getconf PAGE_SIZE)
FLAGS += -DNETNS_RUN_DIR=\"/run/netns\"
FLAGS += -DPASST_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH)
40 changes: 40 additions & 0 deletions net-misc/passt/passt-2024.03.20.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="User-mode networking daemons for VMs and namespaces, replacement for Slirp"
HOMEPAGE="https://passt.top/"

RELEASE_COMMIT="71dd405"

if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="git://passt.top/passt"
else
SRC_URI="https://passt.top/passt/snapshot/passt-${RELEASE_COMMIT}.tar.xz -> ${P}.tar.xz"
S="${WORKDIR}/${PN}-${RELEASE_COMMIT}"
KEYWORDS="~amd64"
fi

LICENSE="BSD GPL-2+"
SLOT="0"
IUSE="static"

PATCHES=(
"${FILESDIR}"/Makefile-2024.03.20.patch
)

src_prepare() {
default
tc-export CC
}

src_compile() {
[[ ${PV} != 9999* ]] && export VERSION="${PV}"
export prefix="${EPREFIX}/usr" docdir="${EPREFIX}/usr/share/doc/${P}"

emake $(usev static)
}
15 changes: 13 additions & 2 deletions net-misc/passt/passt-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="User-mode networking daemons for VMs and namespaces, replacement for Slirp"
HOMEPAGE="https://passt.top/"

RELEASE_COMMIT="b86afe3"
RELEASE_COMMIT="71dd405"

if [[ ${PV} == 9999* ]]; then
inherit git-r3
Expand All @@ -21,6 +23,15 @@ LICENSE="BSD GPL-2+"
SLOT="0"
IUSE="static"

PATCHES=(
"${FILESDIR}"/Makefile-2024.03.20.patch
)

src_prepare() {
default
tc-export CC
}

src_compile() {
[[ ${PV} != 9999* ]] && export VERSION="${PV}"
export prefix="${EPREFIX}/usr" docdir="${EPREFIX}/usr/share/doc/${P}"
Expand Down

0 comments on commit e6c72bf

Please sign in to comment.