git: 926f7d2dfe75 - main - audio/cdparanoia: make the port more robust against exotic machines
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jul 2024 19:42:20 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=926f7d2dfe7551981d056941baf0319a1f5ef713 commit 926f7d2dfe7551981d056941baf0319a1f5ef713 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2024-07-28 19:39:32 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2024-07-28 19:39:32 +0000 audio/cdparanoia: make the port more robust against exotic machines The port comes with rather old pregenerated GNU autoconf bits which are unaware of the modern machine architectures, e.g. aarch64 et al. Previous (even older) version would emit a warning but continue the configure process; now this is hard error. Additionally, configure script copies its own config.{guess,sub} files over the ones coming from our templates. This is easy to untangle, but if done properly, would require to rebootstrap the whole thing (USES+=autoreconf). Instead, simply extend the existing *-unknown fallback to treat any unmatched *-portbld system type similarly (i.e., gracefully accept) as, prima facie, the build logs remain functionally identical. While here, whack default optimizations since CFLAGS are respected. Reported by: fluffy, pkg-fallout --- audio/cdparanoia/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/audio/cdparanoia/Makefile b/audio/cdparanoia/Makefile index f839e511f9a6..8f9ca798f1e0 100644 --- a/audio/cdparanoia/Makefile +++ b/audio/cdparanoia/Makefile @@ -16,4 +16,8 @@ USES= gmake GNU_CONFIGURE= yes USE_LDCONFIG= yes +post-patch: + @${REINPLACE_CMD} -e '/OPT=/s,".*","",' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's,unknown),portbld | *-&,' ${WRKSRC}/configure.sub + .include <bsd.port.mk>