From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46C2B1581C1 for ; Sat, 13 Jul 2024 07:35:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A6072BC044; Sat, 13 Jul 2024 07:35:06 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2EFD82BC044 for ; Sat, 13 Jul 2024 07:35:06 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 645FA34134D for ; Sat, 13 Jul 2024 07:35:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFA891E1D for ; Sat, 13 Jul 2024 07:35:03 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1720856089.12e0d0b2fc06ce2623e3f88ed7c6e47f62f17c29.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/usermode-utilities/files/, sys-apps/usermode-utilities/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/usermode-utilities/files/usermode-utilities-gcc14-build-fix.patch sys-apps/usermode-utilities/usermode-utilities-20070815-r6.ebuild X-VCS-Directories: sys-apps/usermode-utilities/files/ sys-apps/usermode-utilities/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 12e0d0b2fc06ce2623e3f88ed7c6e47f62f17c29 X-VCS-Branch: master Date: Sat, 13 Jul 2024 07:35:03 +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: 301f33fc-7062-4c06-84b2-102b61288662 X-Archives-Hash: d806cac7a8c3b3f37596adf5e5fc5c24 commit: 12e0d0b2fc06ce2623e3f88ed7c6e47f62f17c29 Author: Brahmajit Das gmail com> AuthorDate: Tue Jun 11 14:41:39 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jul 13 07:34:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e0d0b2 sys-apps/usermode-utilities: Fix passing incompatible pointer types and update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/933391 Signed-off-by: Brahmajit Das gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37057 Signed-off-by: Joonas Niilola gentoo.org> .../files/usermode-utilities-gcc14-build-fix.patch | 13 ++++++ .../usermode-utilities-20070815-r6.ebuild | 48 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/sys-apps/usermode-utilities/files/usermode-utilities-gcc14-build-fix.patch b/sys-apps/usermode-utilities/files/usermode-utilities-gcc14-build-fix.patch new file mode 100644 index 000000000000..f2c06d031f96 --- /dev/null +++ b/sys-apps/usermode-utilities/files/usermode-utilities-gcc14-build-fix.patch @@ -0,0 +1,13 @@ +Bug: https://bugs.gentoo.org/933391 +--- a/umlfs/uml_mount.c ++++ b/umlfs/uml_mount.c +@@ -11,7 +11,8 @@ static int init_fuse(int argc, char **argv) + + if (fuse_parse_cmdline(&args, &mountpoint, NULL, NULL) == -1) + return -EINVAL; +- return fuse_mount(mountpoint, &args); ++ ++ return fuse_mount(mountpoint, (char *)&args); + } + + int main(int argc, char **argv) diff --git a/sys-apps/usermode-utilities/usermode-utilities-20070815-r6.ebuild b/sys-apps/usermode-utilities/usermode-utilities-20070815-r6.ebuild new file mode 100644 index 000000000000..8c825ff1cd61 --- /dev/null +++ b/sys-apps/usermode-utilities/usermode-utilities-20070815-r6.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs + +DESCRIPTION="Tools for use with Usermode Linux virtual machines" +HOMEPAGE="http://user-mode-linux.sourceforge.net/" +SRC_URI="http://user-mode-linux.sourceforge.net/uml_utilities_${PV}.tar.bz2" + +S="${WORKDIR}"/tools-${PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="fuse" + +RDEPEND=" + fuse? ( sys-fs/fuse:0= ) + sys-libs/readline:0= +" +DEPEND="${RDEPEND}" + +PATCHES=( + # Merge previous patches with fix for bug #331099 + "${FILESDIR}"/${P}-rollup.patch + # Fix owner of humfsify; bug #364531 + "${FILESDIR}"/${P}-humfsify-owner.patch + "${FILESDIR}"/${P}-headers.patch #580816 + # Fix build /w clang-16, bug #898550 + "${FILESDIR}"/${PN}-fix-memset.patch + "${FILESDIR}"/${PN}-gcc14-build-fix.patch +) + +src_prepare() { + default + sed -i -e 's:-o \$(BIN):$(LDFLAGS) -o $(BIN):' "${S}"/*/Makefile || die "LDFLAGS sed failed" + sed -i -e 's:-o \$@:$(LDFLAGS) -o $@:' "${S}"/moo/Makefile || die "LDFLAGS sed (moo) failed" + if ! use fuse; then + einfo "Skipping build of umlmount to avoid sys-fs/fuse dependency." + sed -i -e 's/\//' Makefile || die "sed to remove sys-fs/fuse dependency failed" + fi +} + +src_compile() { + tc-export AR CC + emake CFLAGS="${CFLAGS} ${CPPFLAGS} -DTUNTAP -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -Wall" all +}