1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-05-05 07:57:38 -04:00

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
This commit is contained in:
Alexey Dokuchaev 2024-07-28 19:39:32 +00:00
parent 70a7072faa
commit 926f7d2dfe

View file

@ -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>