Tuesday, February 04, 2025

lang/pcc: do not include OSREV in host architecture

ok?

Yes, I verified that it works and checked the ktrace just to be sure.

-----------------------------------------------
commit 2911b0fc81ec27087a5d942b6fd2d405dedff21a (mystuff)
from: Christian Weisgerber <naddy@mips.inka.de>
date: Tue Feb 4 15:55:38 2025 UTC

lang/pcc: do not include OSREV in host architecture

This eliminates the need for PLIST changes whenever OSREV is incremented.

diff 0739000bbb2d709169e74873409bff463130a71f 2911b0fc81ec27087a5d942b6fd2d405dedff21a
commit - 0739000bbb2d709169e74873409bff463130a71f
commit + 2911b0fc81ec27087a5d942b6fd2d405dedff21a
blob - 85fb57e8a12a0893d64a37a82d8a03f2fee716a5
blob + 6c1b6c896b2541fee7b88658d04cd0516d52313c
--- lang/pcc/Makefile.inc
+++ lang/pcc/Makefile.inc
@@ -19,6 +19,10 @@ HOMEPAGE ?= http://pcc.ludd.ltu.se/
# BSD
PERMIT_PACKAGE = Yes

+# do not include OSREV
+CONFIG ?= ${MACHINE_ARCH:S/amd64/x86_64/}-unknown-openbsd
+
CONFIGURE_STYLE ?= gnu
+CONFIGURE_ARGS ?= --build=${CONFIG}

NO_TEST ?= Yes
blob - 7330b547a9918196c5b02ff9f4ddec47c5a30951
blob + 56974383b8f508e30150468645ae1aa3c415923d
--- lang/pcc/pcc/Makefile
+++ lang/pcc/pcc/Makefile
@@ -2,6 +2,7 @@ COMMENT = portable C compiler

DISTNAME = pcc-${DISTVER}
PKGNAME = pcc-${PKGVER}
+REVISION = 0

WANTLIB += c

blob - 5464b1cc313485578bfe8c67f22d2369928c9bd3
blob + ce5b87d8c36e9717b6bda2d7c0c0154e91de882d
--- lang/pcc/pcc-libs/Makefile
+++ lang/pcc/pcc-libs/Makefile
@@ -2,12 +2,11 @@ COMMENT = libraries for the portable C compiler

DISTNAME = pcc-libs-${DISTVER}
PKGNAME = pcc-libs-${PKGVER}
-REVISION = 1
+REVISION = 2

SITES = http://pcc.ludd.ltu.se/ftp/pub/pcc-libs/ \
ftp://pcc.ludd.ltu.se/pub/pcc-libs/

-CONFIG = ${MACHINE_ARCH:S/amd64/x86_64/}-unknown-openbsd${OSREV}
SUBST_VARS = CONFIG PCCVER

.include <bsd.port.mk>

--
Christian "naddy" Weisgerber naddy@mips.inka.de

No comments:

Post a Comment