public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/bss/, net-wireless/bss/files/
Date: Tue,  4 May 2021 22:17:58 +0000 (UTC)	[thread overview]
Message-ID: <1620166632.0e447f8ce622c2aa8af0edc96f3a9fec85746fa0.sam@gentoo> (raw)

commit:     0e447f8ce622c2aa8af0edc96f3a9fec85746fa0
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Thu Apr 29 23:04:55 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May  4 22:17:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e447f8c

net-wireless/bss: Respect CFLAGS

Closes: https://bugs.gentoo.org/725228
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../bss/{bss-0.8-r1.ebuild => bss-0.8-r2.ebuild}   | 18 +++++-------
 net-wireless/bss/files/bss-0.8-Makefile.patch      | 34 ++++++++++++++++++++++
 2 files changed, 41 insertions(+), 11 deletions(-)

diff --git a/net-wireless/bss/bss-0.8-r1.ebuild b/net-wireless/bss/bss-0.8-r2.ebuild
similarity index 69%
rename from net-wireless/bss/bss-0.8-r1.ebuild
rename to net-wireless/bss/bss-0.8-r2.ebuild
index 8747d82157c..c60a277a7b0 100644
--- a/net-wireless/bss/bss-0.8-r1.ebuild
+++ b/net-wireless/bss/bss-0.8-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -12,20 +12,16 @@ SRC_URI="http://securitech.homeunix.org/blue/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
 
 DEPEND="net-wireless/bluez"
+RDEPEND="${DEPEND}"
 
-src_prepare() {
-	default
-	sed -i -e 's:/local::' Makefile || die
-}
+PATCHES=(
+	"${FILESDIR}"/${P}-Makefile.patch
+)
 
-src_compile() {
-	emake \
-		CC="$(tc-getCC)" \
-		CFLAGS="${CFLAGS}" \
-		BSS_FLAGS="${LDFLAGS}"
+src_configure() {
+	tc-export CC
 }
 
 src_install() {

diff --git a/net-wireless/bss/files/bss-0.8-Makefile.patch b/net-wireless/bss/files/bss-0.8-Makefile.patch
new file mode 100644
index 00000000000..6238ea6ae91
--- /dev/null
+++ b/net-wireless/bss/files/bss-0.8-Makefile.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/725228
+--- a/Makefile
++++ b/Makefile
+@@ -2,12 +2,10 @@
+ # Pierre BETOUIN <pierre.betouin@security-labs.org>
+ # Modification Ollie Whitehouse <ol at uncon dot org>
+ 
+-CC=gcc
+-MAKE=make
+-CFLAGS=-Wall
++CFLAGS += -Wall
+ 
+-BINDIR=/usr/local/bin
+-ETCDIR=/usr/local/etc
++BINDIR=/usr/bin
++ETCDIR=/usr/etc
+ 
+ BSS_OBJ=bss
+ BSS_SRC=bss.c
+@@ -22,10 +20,10 @@ BSS_LIBS=-lbluetooth
+ all: $(BSS_OBJ)
+ 
+ $(BSS_OBJ): $(BSS_SRC) $(BSS_INC)
+-	$(CC) -c $(BSS_SRC) 
+-	$(CC) -c $(L2P_SRC)
+-	$(CC) -c $(REP_SRC)
+-	$(CC) $(BSS_TMP) $(L2P_TMP) $(REP_TMP) -o $(BSS_OBJ) $(CFLAGS) $(BSS_FLAGS) $(BSS_LIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(BSS_SRC) 
++	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(L2P_SRC)
++	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(REP_SRC)
++	$(CC) $(LDFLAGS) $(BSS_TMP) $(L2P_TMP) $(REP_TMP) -o $(BSS_OBJ) $(CFLAGS) $(BSS_LIBS)
+ 
+ install:
+ 	strip $(BSS_OBJ)


                 reply	other threads:[~2021-05-04 22:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1620166632.0e447f8ce622c2aa8af0edc96f3a9fec85746fa0.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox