public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/riseup-vpn/files/, net-vpn/riseup-vpn/
Date: Thu, 23 Sep 2021 10:00:11 +0000 (UTC)	[thread overview]
Message-ID: <1632391207.dcc8efa65dcc8dc4c8f142403d554dda3d970869.andrewammerlaan@gentoo> (raw)

commit:     dcc8efa65dcc8dc4c8f142403d554dda3d970869
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 23 09:59:27 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Sep 23 10:00:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcc8efa6

net-vpn/riseup-vpn: respect user setting for AR

Closes: https://bugs.gentoo.org/814017
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../riseup-vpn/files/riseup-vpn-respect-AR.patch   | 38 ++++++++++++++++++++++
 net-vpn/riseup-vpn/riseup-vpn-0.21.6-r1.ebuild     |  8 +++--
 2 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/net-vpn/riseup-vpn/files/riseup-vpn-respect-AR.patch b/net-vpn/riseup-vpn/files/riseup-vpn-respect-AR.patch
new file mode 100644
index 00000000000..431ab1376c6
--- /dev/null
+++ b/net-vpn/riseup-vpn/files/riseup-vpn-respect-AR.patch
@@ -0,0 +1,38 @@
+diff --git a/gui/build.sh b/gui/build.sh
+index 56e3d66..9e519a6 100755
+--- a/gui/build.sh
++++ b/gui/build.sh
+@@ -63,13 +63,13 @@ function buildGoLib {
+     if [ "$XBUILD" == "no" ]
+     then
+         echo "[+] Building Go library with standard Go compiler"
+-        CGO_ENABLED=1 GOOS=$GOOS CC=$CC CGO_CFLAGS=$CGO_CFLAGS CGO_LDFLAGS=$CGO_LDFLAGS go build -buildmode=c-archive -o $TARGET_GOLIB $SOURCE_GOLIB
++        CGO_ENABLED=1 GOOS=$GOOS CC=$CC CGO_CFLAGS=$CGO_CFLAGS CGO_LDFLAGS=$CGO_LDFLAGS go build -buildmode=c-archive -ldflags="-extar=$AR -extld=$LD -extldflags=$LDFLAGS" -o $TARGET_GOLIB $SOURCE_GOLIB
+     fi
+     if [ "$XBUILD" == "$WIN64" ]
+     then
+         echo "[+] Building Go library with mxe"
+         echo "[+] Using cc:" $CC
+-        CC=$CC CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -buildmode=c-archive -o $TARGET_GOLIB $SOURCE_GOLIB
++        CC=$CC CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -buildmode=c-archive -ldflags="-extar=$AR -extld=$LD -extldflags=$LDFLAGS" -o $TARGET_GOLIB $SOURCE_GOLIB
+     fi
+ }
+ 
+@@ -77,7 +77,7 @@ function buildQmake {
+     echo "[+] Now building Qml app with Qt qmake"
+     echo "[+] Using qmake in:" $QMAKE
+     mkdir -p $QTBUILD
+-    $QMAKE -o "$QTBUILD/Makefile" CONFIG+=release VENDOR_PATH=${VENDOR_PATH} $PROJECT
++    $QMAKE -early QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX -o "$QTBUILD/Makefile" CONFIG+=release VENDOR_PATH=${VENDOR_PATH} $PROJECT
+     #CONFIG=+force_debug_info CONFIG+=debug CONFIG+=debug_and_release
+ }
+ 
+@@ -115,7 +115,7 @@ function buildDefault {
+     buildQmake
+ 
+     make -C $QTBUILD clean
+-    make -C $QTBUILD -j4 all
++    make -C $QTBUILD $MAKEFLAGS all
+ 
+     renameOutput
+     echo "[+] Done."

diff --git a/net-vpn/riseup-vpn/riseup-vpn-0.21.6-r1.ebuild b/net-vpn/riseup-vpn/riseup-vpn-0.21.6-r1.ebuild
index 41c0814e1dc..91db3c97816 100644
--- a/net-vpn/riseup-vpn/riseup-vpn-0.21.6-r1.ebuild
+++ b/net-vpn/riseup-vpn/riseup-vpn-0.21.6-r1.ebuild
@@ -9,7 +9,7 @@ DOCS_DEPEND="dev-python/alabaster"
 
 PYTHON_COMPAT=( python3_{8..10} )
 
-inherit desktop python-single-r1 docs go-module virtualx xdg
+inherit desktop python-single-r1 docs go-module virtualx toolchain-funcs xdg
 
 EGO_SUM=(
 	"0xacab.org/leap/shapeshifter v0.0.0-20191029173606-85d3e8ac43e2"
@@ -91,7 +91,10 @@ RDEPEND="${DEPEND}
 "
 
 # ip command is in bin instead of sbin on Gentoo
-PATCHES=( "${FILESDIR}/${PN}-ip-location.patch" )
+PATCHES=(
+	"${FILESDIR}/${PN}-ip-location.patch"
+	"${FILESDIR}/${PN}-respect-AR.patch"
+)
 
 S="${WORKDIR}/bitmask-vpn-${PV}"
 
@@ -108,6 +111,7 @@ src_prepare() {
 
 src_compile() {
 	# does not build with j>1
+	tc-export AR LD CC CXX
 	emake -j1 build
 	docs_compile
 }


             reply	other threads:[~2021-09-23 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 10:00 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-06  9:50 [gentoo-commits] repo/gentoo:master commit in: net-vpn/riseup-vpn/files/, net-vpn/riseup-vpn/ Andrew Ammerlaan
2021-05-22 14:59 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=1632391207.dcc8efa65dcc8dc4c8f142403d554dda3d970869.andrewammerlaan@gentoo \
    --to=andrewammerlaan@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