From efe1b3b1e21e2784d4854989cdfccf8936c387f8 Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Wed, 31 Jul 2024 09:48:54 +0800 Subject: [PATCH] Do not fail on existing symlink (cherry picked from commit 86665862f09850cbdccbce3f8a82bc51f4be14c0) --- argon2.spec | 6 ++++- backport-Don-t-fail-on-existing-symlink.patch | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 backport-Don-t-fail-on-existing-symlink.patch diff --git a/argon2.spec b/argon2.spec index b60e3a2..84cf280 100644 --- a/argon2.spec +++ b/argon2.spec @@ -1,12 +1,13 @@ Name: argon2 Version: 20190702 -Release: 3 +Release: 4 Summary: A password-hashing tool License: Public Domain or ASL 2.0 URL: https://github.com/P-H-C/phc-winner-argon2 Source0: https://github.com/P-H-C/phc-winner-argon2/archive/62358ba2123abd17fccf2a108a301d4b52c01a7c/phc-winner-argon2-20190702-62358ba.tar.gz Patch1: backport-fix-3-spelling-mistakes.patch +Patch2: backport-Don-t-fail-on-existing-symlink.patch BuildRequires: gcc Requires: libargon2%{?_isa} = %{version}-%{release} @@ -115,6 +116,9 @@ make test %{_mandir}/man1/* %changelog +* Wed Jul 31 2024 yixiangzhike - 20190702-4 +- backport upstream patch to fix failure on existing symlink + * Tue Oct 18 2022 yixiangzhike - 20190702-3 - fix spelling mistakes diff --git a/backport-Don-t-fail-on-existing-symlink.patch b/backport-Don-t-fail-on-existing-symlink.patch new file mode 100644 index 0000000..6e5faed --- /dev/null +++ b/backport-Don-t-fail-on-existing-symlink.patch @@ -0,0 +1,25 @@ +From b997b9e7d4744020409223afddc7299a771eb52d Mon Sep 17 00:00:00 2001 +From: Pascal de Bruijn +Date: Thu, 7 Nov 2019 09:55:32 +0100 +Subject: [PATCH] Don't fail on existing symlink + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 837e7f7..7c116c9 100644 +--- a/Makefile ++++ b/Makefile +@@ -238,7 +238,7 @@ install: $(RUN) libs + $(INSTALL) -d $(INST_LIBRARY) + $(INSTALL) -m 0644 $(LIBRARIES) $(INST_LIBRARY) + ifdef LINKED_LIB_SH +- cd $(INST_LIBRARY) && ln -s $(notdir $(LIB_SH) $(LINKED_LIB_SH)) ++ cd $(INST_LIBRARY) && ln -sf $(notdir $(LIB_SH) $(LINKED_LIB_SH)) + endif + $(INSTALL) -d $(INST_BINARY) + $(INSTALL) $(RUN) $(INST_BINARY) +-- +2.33.0 + -- Gitee