[packages/cc65] Rel 5

arekm arekm at pld-linux.org
Wed May 20 18:44:37 CEST 2026


commit fcac9d1ce287d97b7eba8d1d1b64c8998bf5b814
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 20 18:44:14 2026 +0200

    Rel 5

 cc65-parallel-build.patch | 29 +++++++++++++++++++++++++++++
 cc65.spec                 |  4 +++-
 2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/cc65.spec b/cc65.spec
index 129e459..cc2e975 100644
--- a/cc65.spec
+++ b/cc65.spec
@@ -2,13 +2,14 @@ Summary:	Crosscompiler/crossassembler for 6502 systems
 Summary(pl.UTF-8):	Kompilator/asembler skrośny dla systemów 6502
 Name:		cc65
 Version:	2.19
-Release:	4
+Release:	5
 License:	Zlib
 Group:		Development/Languages
 #Source0Download: https://github.com/cc65/cc65/releases
 Source0:	https://github.com/cc65/cc65/archive/V%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	faff7b71a0212bb71faad1a271a83916
 Patch0:		%{name}-verbose.patch
+Patch1:		%{name}-parallel-build.patch
 URL:		https://cc65.github.io/
 BuildRequires:	linuxdoc-tools
 BuildRequires:	perl-base
@@ -404,6 +405,7 @@ programistycznego CC65.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__make} \
diff --git a/cc65-parallel-build.patch b/cc65-parallel-build.patch
new file mode 100644
index 0000000..0fa2824
--- /dev/null
+++ b/cc65-parallel-build.patch
@@ -0,0 +1,29 @@
+Serialize geos-apple after apple2enh.
+
+geos-apple's libsrc/geos-apple/targetutil/Makefile.inc declares
+
+    ../lib/apple2enh.lib:
+            @$(MAKE) --no-print-directory apple2enh
+
+so when geos-apple is built in parallel with the top-level apple2enh
+target, two ar65 processes race writing the same ../lib/apple2enh.lib,
+producing:
+
+    ar65: Error: Problem deleting temporary library file: No such file or directory
+
+Force geos-apple to wait for apple2enh.
+
+--- cc65-2.19/libsrc/Makefile.orig	2020-05-30 21:03:15.000000000 +0200
++++ cc65-2.19/libsrc/Makefile	2026-05-20 18:22:36.876222423 +0200
+@@ -114,6 +114,11 @@
+ zip:
+ 	$(foreach dir,$(OUTPUTDIRS),$(ZIP_recipe))
+
++# geos-apple's targetutil recursively builds apple2enh.lib via $(MAKE);
++# without this order, top-level apple2enh runs in parallel and both ar65
++# invocations race over ../lib/apple2enh.lib.
++geos-apple: apple2enh
++
+ $(TARGETS):
+ 	@$(MAKE) --no-print-directory $@
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cc65.git/commitdiff/fcac9d1ce287d97b7eba8d1d1b64c8998bf5b814



More information about the pld-cvs-commit mailing list