Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Dec 2023 16:27:20 GMT
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 95435685e1e3 - main - graphics/libsvgtiny: Fix race condition in Makefile
Message-ID:  <202312301627.3BUGRKSs019953@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=95435685e1e314291acbcb909abc34059ee51b39

commit 95435685e1e314291acbcb909abc34059ee51b39
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-12-30 16:27:03 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-12-30 16:27:03 +0000

    graphics/libsvgtiny: Fix race condition in Makefile
    
    Fix race condition in Makefile. Remove MAKE_JOBS_UNSAFE.
    
    Reported by:    danfe (via mail)
---
 graphics/libsvgtiny/Makefile                 |  2 --
 graphics/libsvgtiny/files/patch-src_Makefile | 11 +++++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/graphics/libsvgtiny/Makefile b/graphics/libsvgtiny/Makefile
index 8ead0a859f8c..0ac4ccafe0a0 100644
--- a/graphics/libsvgtiny/Makefile
+++ b/graphics/libsvgtiny/Makefile
@@ -24,6 +24,4 @@ PLIST_FILES=	include/svgtiny.h \
 		lib/libsvgtiny.a \
 		libdata/pkgconfig/libsvgtiny.pc
 
-MAKE_JOBS_UNSAFE=	yes
-
 .include <bsd.port.mk>
diff --git a/graphics/libsvgtiny/files/patch-src_Makefile b/graphics/libsvgtiny/files/patch-src_Makefile
new file mode 100644
index 000000000000..3395fb0b906b
--- /dev/null
+++ b/graphics/libsvgtiny/files/patch-src_Makefile
@@ -0,0 +1,11 @@
+--- src/Makefile.orig	2023-12-27 21:45:54 UTC
++++ src/Makefile
+@@ -3,6 +3,8 @@ SOURCES := $(SOURCES)
+ 
+ SOURCES := $(SOURCES)
+ 
++src/svgtiny.c: $(DIR)autogenerated_colors.c
++
+ $(DIR)autogenerated_colors.c: src/colors.gperf
+ 	$(VQ)$(ECHO) "   GPERF: $<"
+ 	$(Q)gperf --output-file=$@.tmp $<



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312301627.3BUGRKSs019953>