Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2024 19:42:20 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 926f7d2dfe75 - main - audio/cdparanoia: make the port more robust against exotic machines
Message-ID:  <202407281942.46SJgKt8081504@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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