public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: media-libs/libbpg/, media-libs/libbpg/files/
Date: Mon, 18 Sep 2023 12:37:15 +0000 (UTC)	[thread overview]
Message-ID: <1694990360.772108d69dcde0ad8cf8590fb1f3e359fe349574.flow@gentoo> (raw)

commit:     772108d69dcde0ad8cf8590fb1f3e359fe349574
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Sep 17 21:50:46 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Sep 17 22:39:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=772108d6

media-libs/libbpg: Honor AR, CC and CXX from the user environment

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 .../libbpg/files/libbpg-0.9.8-add-chost.patch      | 13 ------------
 .../libbpg-0.9.8-respect-compiler-driver.patch     | 23 ++++++++++++++++++++++
 media-libs/libbpg/libbpg-0.9.8-r1.ebuild           |  7 +++----
 3 files changed, 26 insertions(+), 17 deletions(-)

diff --git a/media-libs/libbpg/files/libbpg-0.9.8-add-chost.patch b/media-libs/libbpg/files/libbpg-0.9.8-add-chost.patch
deleted file mode 100644
index 9b5054de1a..0000000000
--- a/media-libs/libbpg/files/libbpg-0.9.8-add-chost.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 8364e93..d3fc48f 100644
---- a/Makefile
-+++ b/Makefile
-@@ -27,7 +27,7 @@ CROSS_PREFIX:=x86_64-w64-mingw32-
- #CROSS_PREFIX=i686-w64-mingw32-
- EXE:=.exe
- else
--CROSS_PREFIX:=
-+CROSS_PREFIX:=${CHOST}-
- EXE:=
- endif
- 

diff --git a/media-libs/libbpg/files/libbpg-0.9.8-respect-compiler-driver.patch b/media-libs/libbpg/files/libbpg-0.9.8-respect-compiler-driver.patch
new file mode 100644
index 0000000000..c253dadd5f
--- /dev/null
+++ b/media-libs/libbpg/files/libbpg-0.9.8-respect-compiler-driver.patch
@@ -0,0 +1,23 @@
+Honor AR, CC and CXX from the user enviroment instead of relying on
+${CHOST}-driver though it may be correct most of the time.
+Author: Lucio Sauer <watermanpaint@posteo.net>
+--- a/Makefile
++++ b/Makefile
+@@ -27,13 +27,13 @@ CROSS_PREFIX:=x86_64-w64-mingw32-
+ #CROSS_PREFIX=i686-w64-mingw32-
+ EXE:=.exe
+ else
+-CROSS_PREFIX:=
++CROSS_PREFIX:=${CHOST}-
+ EXE:=
+ endif
+ 
+-CC=$(CROSS_PREFIX)gcc
+-CXX=$(CROSS_PREFIX)g++
+-AR=$(CROSS_PREFIX)ar
++CC ?= $(CROSS_PREFIX)gcc
++CXX ?= $(CROSS_PREFIX)g++
++AR ?= $(CROSS_PREFIX)ar
+ EMCC=emcc
+ 
+ PWD:=$(shell pwd)

diff --git a/media-libs/libbpg/libbpg-0.9.8-r1.ebuild b/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
index 484760e6fe..83f70801da 100644
--- a/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
+++ b/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
@@ -34,12 +34,12 @@ KEYWORDS="~amd64 ~x86"
 IUSE="bpgview jctvc"
 
 PATCHES=(
-	"${FILESDIR}"/${P}-add-chost.patch
 	"${FILESDIR}"/${P}-add-fpic.patch
 	"${FILESDIR}"/${P}-backport-GNU-stack-note-fix.patch
 	"${FILESDIR}"/${P}-dont-strip-bins.patch
 	"${FILESDIR}"/${P}-remove-forced-options.patch
 	"${FILESDIR}"/${P}-remove-unused-cmake-var.patch
+	"${FILESDIR}"/${P}-respect-compiler-driver.patch
 	"${FILESDIR}"/${P}-respect-user-flags.patch
 )
 
@@ -81,12 +81,11 @@ EOF
 }
 
 src_compile() {
+	tc-export AR CC CXX
 	emake \
 		USE_X265=y \
 		$(usex bpgview USE_BPGVIEW=y '') \
-		$(usex jctvc USE_JCTVC=y '') \
-		CXX="$(tc-getCXX)" \
-		CC="$(tc-getCC)"
+		$(usex jctvc USE_JCTVC=y '')
 }
 
 src_install() {


             reply	other threads:[~2023-09-18 12:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-18 12:37 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-18 12:37 [gentoo-commits] repo/proj/guru:master commit in: media-libs/libbpg/, media-libs/libbpg/files/ Florian Schmaus
2021-03-16 10:49 Andrew Ammerlaan

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=1694990360.772108d69dcde0ad8cf8590fb1f3e359fe349574.flow@gentoo \
    --to=flow@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