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: dev-lang/duktape/, dev-lang/duktape/files/
Date: Wed, 14 Sep 2022 22:33:09 +0000 (UTC)	[thread overview]
Message-ID: <1663194763.5f377980c1cdf66c35bee011b0caae95e8c93220.sam@gentoo> (raw)

commit:     5f377980c1cdf66c35bee011b0caae95e8c93220
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 14 22:32:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 14 22:32:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f377980

dev-lang/duktape: fix libm underlinking

Closes: https://bugs.gentoo.org/870163
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...ape-2.7.0-r1.ebuild => duktape-2.7.0-r2.ebuild} |  1 +
 .../files/duktape-2.7.0-underlinked-libm.patch     | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/dev-lang/duktape/duktape-2.7.0-r1.ebuild b/dev-lang/duktape/duktape-2.7.0-r2.ebuild
similarity index 94%
rename from dev-lang/duktape/duktape-2.7.0-r1.ebuild
rename to dev-lang/duktape/duktape-2.7.0-r2.ebuild
index 72e9787eeba0..4dc7046bdd37 100644
--- a/dev-lang/duktape/duktape-2.7.0-r1.ebuild
+++ b/dev-lang/duktape/duktape-2.7.0-r2.ebuild
@@ -17,6 +17,7 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-2.7.0-respect-tc-env.patch
+	"${FILESDIR}"/${P}-underlinked-libm.patch
 )
 
 src_prepare() {

diff --git a/dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch b/dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch
new file mode 100644
index 000000000000..6b0962ed7617
--- /dev/null
+++ b/dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch
@@ -0,0 +1,25 @@
+https://github.com/svaarala/duktape/commit/d898ad3920cb08d6918d11d9678bae28393a82d1
+https://bugs.gentoo.org/870163
+
+From d898ad3920cb08d6918d11d9678bae28393a82d1 Mon Sep 17 00:00:00 2001 (rebased)
+From: tinywrkb <tinywrkb@gmail.com>
+Date: Thu, 17 Mar 2022 03:55:51 +0200
+Subject: [PATCH] Makefile.sharedlibrary: link against libm
+
+Closes #2464.
+--- a/Makefile.sharedlibrary
++++ b/Makefile.sharedlibrary
+@@ -71,11 +71,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) duktape.
+ 
+ libduktape.$(SO_REALNAME_SUFFIX):
+ 	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
+-		-o $@ $(DUKTAPE_SRCDIR)/duktape.c
++		-o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm
+ 
+ libduktaped.$(SO_REALNAME_SUFFIX):
+ 	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \
+-		-o $@ $(DUKTAPE_SRCDIR)/duktape.c
++		-o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm
+ 
+ duktape.pc:
+ 	sed -e "s|@PREFIX@|$(INSTALL_PREFIX)|" \


             reply	other threads:[~2022-09-14 22:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14 22:33 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-17 16:46 [gentoo-commits] repo/gentoo:master commit in: dev-lang/duktape/, dev-lang/duktape/files/ Sam James
2022-02-19  2:54 Sam James
2020-11-24 21:39 Sam James
2017-05-24 20:33 Ian Whyman

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=1663194763.5f377980c1cdf66c35bee011b0caae95e8c93220.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