From 368372ea48a66d8db76bc3998f45963e37583848 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 25 Dec 2024 01:08:31 +0300 Subject: FreeBSD port: overwrite BINMODE, fixing `make package` without root Turns out that the FreeBSD ports Makefiles install programs and scripts with 0555 by default, i.e. without write permissions. This broke the install-exec-hook unless building as root. Unfortunately, this also broke the Poudriere builds at the FreeBSD build servers. See https://pkg-status.freebsd.org/package19/data/141amd64-default-build-as-user/aa1f9b124e36/logs/errors/sciteco-curses-2.2.0.log --- freebsd/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freebsd/Makefile b/freebsd/Makefile index 23d62f1..d8b7924 100644 --- a/freebsd/Makefile +++ b/freebsd/Makefile @@ -33,6 +33,10 @@ CONFIGURE_OUTSOURCE= yes MAKEFILE= GNUmakefile TEST_TARGET= check +# SciTECO uses an install-exec-hook to fix up hash-bang lines. +# This is broken by the default 0555 mode. +BINMODE= 755 + # NOTE: Unlike on Debian, we cannot build a sciteco-common package. # FreeBSD does not yet support subpackages. # Therefore both flavors will install totally independant -- cgit v1.2.3