commit:     2a5e31933be5976e472cddcf73f65ecf4cb4b308
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 11 06:06:20 2024 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Thu Apr 11 06:06:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a5e3193

sci-physics/xfoil: fix bug 771615

Closes: https://bugs.gentoo.org/771615

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 sci-physics/xfoil/files/xfoil-6.99-ldflags.patch | 12 ++++++++++++
 sci-physics/xfoil/xfoil-6.99-r1.ebuild           |  5 ++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch 
b/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch
new file mode 100644
index 000000000000..4667a891d8a7
--- /dev/null
+++ b/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch
@@ -0,0 +1,12 @@
+Fix bug #771615
+
+--- a/bin/Makefile     2024-04-11 08:00:24.832420892 +0200
++++ b/bin/Makefile     2024-04-11 07:59:56.052410291 +0200
+@@ -152,7 +152,7 @@
+       $(INSTALLCMD) pplot $(BINDIR)
+
+ blu: blu.o profil.o
+-      $(FC) -o blu blu.o profil.o
++      $(FC) -o blu blu.o profil.o $(FTNLIB)
+       $(INSTALLCMD) blu $(BINDIR)
+

diff --git a/sci-physics/xfoil/xfoil-6.99-r1.ebuild 
b/sci-physics/xfoil/xfoil-6.99-r1.ebuild
index 23bffe5c71d6..9628062e61ee 100644
--- a/sci-physics/xfoil/xfoil-6.99-r1.ebuild
+++ b/sci-physics/xfoil/xfoil-6.99-r1.ebuild
@@ -20,7 +20,10 @@ IUSE="doc examples"
 RDEPEND="x11-libs/libX11"
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${P}-overflow.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-overflow.patch
+       "${FILESDIR}"/${P}-ldflags.patch
+)
 
 src_prepare() {
        # fix bug #147033

Reply via email to