From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 075D415808A for ; Sat, 26 Jul 2025 05:06:21 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id A22BD340E49 for ; Sat, 26 Jul 2025 05:06:20 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 3A0151102A2; Sat, 26 Jul 2025 05:06:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 2B5AE1102A2 for ; Sat, 26 Jul 2025 05:06:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B005340DD1 for ; Sat, 26 Jul 2025 05:06:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E37C8326A for ; Sat, 26 Jul 2025 05:06:16 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1753506310.294502452ef39cedc3ba773697fbcf1c54d22ef5.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/bb/, app-misc/bb/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/bb/bb-1.3.0_rc1-r7.ebuild app-misc/bb/files/bb-1.3.0_rc1-libmikmod-pkgconfig.patch X-VCS-Directories: app-misc/bb/files/ app-misc/bb/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 294502452ef39cedc3ba773697fbcf1c54d22ef5 X-VCS-Branch: master Date: Sat, 26 Jul 2025 05:06:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 24c89f57-84b4-43bd-b619-70a04a34eae5 X-Archives-Hash: 87f5884b0025c6bfd100203317be22d0 commit: 294502452ef39cedc3ba773697fbcf1c54d22ef5 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Sat Jul 19 22:28:11 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jul 26 05:05:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29450245 app-misc/bb: use pkg-config for libmikmod Avoids the complexity of m4/libmikmod.m4 which had a missing , which also silently disables libmikmod and so require a revbump anyway. Sadly aalib does not provides a pkg-config file. Closes: https://bugs.gentoo.org/955778 Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> Part-of: https://github.com/gentoo/gentoo/pull/43076 Signed-off-by: Sam James gentoo.org> app-misc/bb/bb-1.3.0_rc1-r7.ebuild | 76 ++++++++++++++++++++++ .../files/bb-1.3.0_rc1-libmikmod-pkgconfig.patch | 26 ++++++++ 2 files changed, 102 insertions(+) diff --git a/app-misc/bb/bb-1.3.0_rc1-r7.ebuild b/app-misc/bb/bb-1.3.0_rc1-r7.ebuild new file mode 100644 index 000000000000..66a1437dbbed --- /dev/null +++ b/app-misc/bb/bb-1.3.0_rc1-r7.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_P="${PN}-$(ver_cut 1-2)$(ver_cut 4-5)" + +DESCRIPTION="Lightweight ASCII art demo using media-libs/aalib" +HOMEPAGE="https://aa-project.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/aa-project/${MY_P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +IUSE="mikmod" + +DEPEND="media-libs/aalib:= + dev-libs/lzo:= + mikmod? ( media-libs/libmikmod:=[openal] ) +" +# media-libs/libmikmod[openal] is due to bug #516964 +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${PN}-$(ver_cut 1-3)" + +PATCHES=( + "${FILESDIR}"/${P}-noattr.patch + "${FILESDIR}"/${P}-fix-protos.patch + "${FILESDIR}"/${P}-messager-overlap.patch + "${FILESDIR}"/${P}-zbuff-fault.patch + "${FILESDIR}"/${P}-printf-cleanup.patch + "${FILESDIR}"/${P}-libmikmod-pkgconfig.patch + "${FILESDIR}"/${P}-protos.patch + "${FILESDIR}"/${P}-disable-pulse.patch + "${FILESDIR}"/${P}-fix-build-for-clang16.patch + "${FILESDIR}"/${P}-fix-lto-type-mismatch.patch + "${FILESDIR}"/${P}-fix-return-type-and-QA.patch +) + +src_prepare() { + default + + # unbundle lzo, #515286 + rm -v README.LZO minilzo.{c,h} mylzo.h || die + sed -e 's/minilzo.c//' \ + -e 's/minilzo.h//' \ + -e 's/README.LZO//' \ + -i Makefile.am || die + echo 'bb_LDADD = -llzo2' >> Makefile.am || die + # update code + sed -e 's,#include "minilzo.h",#include ,' \ + -e 's,int size = image,lzo_uint size = image,' \ + -i image.c || die + + # rename binary and manpage bb -> bb-aalib + + mv bb.1 bb-aalib.1 || die + sed -e 's/bb/bb-aalib/' \ + -i bb-aalib.1 + sed -e 's/bin_PROGRAMS = bb/bin_PROGRAMS = bb-aalib/' \ + -e 's/man_MANS = bb.1/man_MANS = bb-aalib.1/' \ + -e 's/bb_SOURCES/bb_aalib_SOURCES/' \ + -e 's/bb_LDADD/bb_aalib_LDADD/' \ + -i Makefile.am || die + + mv -v configure.{in,ac} || die + # m4/ dir is added with 'm4-stuff.patch' patch + AT_M4DIR="m4" eautoreconf +} + +pkg_postinst() { + elog "bb binary has been renamed to bb-aalib to avoid a naming conflict with sys-apps/busybox." +} diff --git a/app-misc/bb/files/bb-1.3.0_rc1-libmikmod-pkgconfig.patch b/app-misc/bb/files/bb-1.3.0_rc1-libmikmod-pkgconfig.patch new file mode 100644 index 000000000000..40c2a585ba9d --- /dev/null +++ b/app-misc/bb/files/bb-1.3.0_rc1-libmikmod-pkgconfig.patch @@ -0,0 +1,26 @@ +--- a/configure.in ++++ b/configure.in +@@ -34,14 +34,15 @@ CFLAGS="$CFLAGS $AALIB_CFLAGS" + LIBS="$LIBS $AALIB_LIBS" + + SOUNDFILES="" +-AM_PATH_LIBMIKMOD(3.0.0, +-CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS" +-LIBS="$LIBS $LIBMIKMOD_LIBS" +-LDADD="$LDADD $LIBMIKMOD_LDADD" +-AC_DEFINE(HAVE_LIBMIKMOD) +-SOUNDFILES="bb.s3m bb2.s3m bb3.s3m" +-dnl AC_DEFINE_UNQUOTED(SOUNDDIR,"$datadir/bb") +-, ++PKG_CHECK_MODULES([LIBMIKMOD], ++[libmikmod >= 3.0.0], ++[ ++ CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS" ++ LIBS="$LIBS $LIBMIKMOD_LIBS" ++ AC_DEFINE(HAVE_LIBMIKMOD) ++ SOUNDFILES="bb.s3m bb2.s3m bb3.s3m" ++ dnl AC_DEFINE_UNQUOTED(SOUNDDIR,"$datadir/bb") ++], + AC_MSG_RESULT([Libmikmod is missing - sound support will be disabled]) + ) +