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 +}