Skip to content

Commit

Permalink
app-admin/authbind: fix build, *FLAGS patch
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/777834
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Mar 27, 2021
1 parent e739834 commit febb66d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app-admin/authbind/authbind-2.1.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ inherit flag-o-matic toolchain-funcs
DESCRIPTION="Bind sockets to privileged ports without root"
HOMEPAGE="https://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git/"
SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="GPL-2+"
SLOT="0"
Expand All @@ -16,7 +17,7 @@ KEYWORDS="~amd64"
BDEPEND="virtual/awk"

PATCHES=(
"${FILESDIR}/${PN}-2.1.1-respect-flags.patch"
"${FILESDIR}/${PN}-2.1.2-respect-flags.patch"
)

src_configure() {
Expand Down
26 changes: 26 additions & 0 deletions app-admin/authbind/files/authbind-2.1.2-respect-flags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/Makefile b/Makefile
index 37a8673..89f83f4 100644
--- a/Makefile
+++ b/Makefile
@@ -34,10 +34,9 @@ INSTALL_PROGRAM ?= install -o root -g root -m 755 -s
INSTALL_DIR ?= install -o root -g root -m 755 -d
STRIP ?= strip

-OPTIMISE= -O2
-LDFLAGS= -g
LIBS= -ldl -lc
-CFLAGS= -g $(OPTIMISE) \
+SHARED_LDFLAGS=
+CFLAGSS+= \
-Wall -Wwrite-strings -Wpointer-arith -Wimplicit \
-Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
CPPFLAGS= -DMAJOR_VER='"$(MAJOR)"' -DMINOR_VER='"$(MINOR)"' \
@@ -82,7 +81,7 @@ helper: helper.o
helper.o authbind.o: authbind.h

$(LIBTARGET): libauthbind.o
- $(LD) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
+ $(LD) $(SHARED_LDFLAGS) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)

clean distclean:
rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core

0 comments on commit febb66d

Please sign in to comment.