* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/lsbcrypt/files/, dev-libs/lsbcrypt/
@ 2023-07-08 2:43 Haelwenn Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Haelwenn Monnier @ 2023-07-08 2:43 UTC (permalink / raw
To: gentoo-commits
commit: 7c74790b3ae12967717d328d67f65c3043b30f17
Author: Okamura Kazuya <gentoo-guru <AT> danceylove <DOT> net>
AuthorDate: Fri Jul 7 06:18:33 2023 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Jul 7 06:18:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7c74790b
dev-libs/lsbcrypt: Remove variables that are defined independently in the makefile
I am attempting to fix the following bugs.
https://bugs.gentoo.org/909726
Signed-off-by: Okamura Kazuya <gentoo-guru <AT> danceylove.net>
.../files/lsbcrypt-fix-flags-directly.patch | 14 ++++++++++
dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild | 30 ++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/dev-libs/lsbcrypt/files/lsbcrypt-fix-flags-directly.patch b/dev-libs/lsbcrypt/files/lsbcrypt-fix-flags-directly.patch
new file mode 100644
index 000000000..75c4a083e
--- /dev/null
+++ b/dev-libs/lsbcrypt/files/lsbcrypt-fix-flags-directly.patch
@@ -0,0 +1,14 @@
+I am attempting to fix the following bugs.
+https://bugs.gentoo.org/909726
+diff --git a/Makefile b/Makefile
+index 03ebfa5..bed7d39 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+-CC = gcc
+-CFLAGS = $(shell grep '^CFLAGS = ' crypt_blowfish/Makefile | cut -d= -f2-)
++#CC = gcc
++#CFLAGS = $(shell grep '^CFLAGS = ' crypt_blowfish/Makefile | cut -d= -f2-)
+ .PHONY: crypt_blowfish
+
+ all: bcrypt.a
diff --git a/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild b/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild
new file mode 100644
index 000000000..36456f88d
--- /dev/null
+++ b/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT="55ff64349dec3012cfbbb1c4f92d4dbd46920213"
+DESCRIPTION="libcrypt wrapper for LiteSpeedTech"
+HOMEPAGE="https://github.com/litespeedtech/libbcrypt/"
+SRC_URI="https://github.com/litespeedtech/libbcrypt/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
+LICENSE="CC0-1.0 public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+
+S="${WORKDIR}/libbcrypt-${COMMIT}"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-fix-tests.patch
+ "${FILESDIR}"/${PV}-fix-flags-directly.patch
+)
+
+src_test() {
+ default
+ ./bcrypt_test || die "Tests failed!"
+}
+
+src_install() {
+ newlib.a bcrypt.a libbcrypt.a
+ newheader bcrypt.h libbcrypt.h
+ einstalldocs
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/lsbcrypt/files/, dev-libs/lsbcrypt/
@ 2025-01-27 9:57 David Roman
0 siblings, 0 replies; 2+ messages in thread
From: David Roman @ 2025-01-27 9:57 UTC (permalink / raw
To: gentoo-commits
commit: f1c9f5f0db6da36438f3e748a44ed4beaba1d5dc
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 12:16:21 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Jan 26 12:16:21 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f1c9f5f0
dev-libs/lsbcrypt: fix build failure
- remove broken patch
- fix hardcoded ar/gcc
Closes: https://bugs.gentoo.org/909547
Closes: https://bugs.gentoo.org/909726
Closes: https://bugs.gentoo.org/910097
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
dev-libs/lsbcrypt/files/1.0.0-fix-flags-directry.patch | 14 --------------
dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild | 18 +++++++++++++++---
2 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/dev-libs/lsbcrypt/files/1.0.0-fix-flags-directry.patch b/dev-libs/lsbcrypt/files/1.0.0-fix-flags-directry.patch
deleted file mode 100644
index 75c4a083e..000000000
--- a/dev-libs/lsbcrypt/files/1.0.0-fix-flags-directry.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-I am attempting to fix the following bugs.
-https://bugs.gentoo.org/909726
-diff --git a/Makefile b/Makefile
-index 03ebfa5..bed7d39 100644
---- a/Makefile
-+++ b/Makefile
-@@ -1,5 +1,5 @@
--CC = gcc
--CFLAGS = $(shell grep '^CFLAGS = ' crypt_blowfish/Makefile | cut -d= -f2-)
-+#CC = gcc
-+#CFLAGS = $(shell grep '^CFLAGS = ' crypt_blowfish/Makefile | cut -d= -f2-)
- .PHONY: crypt_blowfish
-
- all: bcrypt.a
diff --git a/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild b/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild
index 605f740e3..a692e8494 100644
--- a/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild
+++ b/dev-libs/lsbcrypt/lsbcrypt-1.0.0-r2.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit toolchain-funcs
+
COMMIT="55ff64349dec3012cfbbb1c4f92d4dbd46920213"
DESCRIPTION="libcrypt wrapper for LiteSpeedTech"
@@ -17,11 +19,21 @@ KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}"/${PV}-fix-tests.patch
- "${FILESDIR}"/${PV}-fix-flags-directly.patch
)
-src_test() {
+src_prepare() {
default
+
+ # fix hardcoded ar
+ sed -i "s/ar/$(tc-getAR)/" Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_test() {
+ emake test CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
./bcrypt_test || die "Tests failed!"
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-27 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 9:57 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/lsbcrypt/files/, dev-libs/lsbcrypt/ David Roman
-- strict thread matches above, loose matches on Subject: below --
2023-07-08 2:43 Haelwenn Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox