Date: Mon, 09 Sep 2019 20:36:26 +0000 From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 240043] audio/linux-c7-alsa: how to make it work? Message-ID: <bug-240043-4077-sJ0AHPC7bN@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-240043-4077@https.bugs.freebsd.org/bugzilla/> References: <bug-240043-4077@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240043 --- Comment #45 from commit-hook@freebsd.org --- A commit references this bug: Author: tijl Date: Mon Sep 9 20:36:11 UTC 2019 New revision: 511702 URL: https://svnweb.freebsd.org/changeset/ports/511702 Log: - Make the port safe to build as root. [1] Given an absolute /path Linux programs first try to access /compat/linux/path before trying /path. That means mkdir -p ${STAGEDIR} will always create /compat/linux${STAGEDIR} when run as root and echo > /dev/null will create /compat/linux/dev/null as a regular file. Fix this by running configure with FreeBSD /bin/sh and build/install using FreeBSD gmake. PATH is set to /compat/linux/usr/bin and MKDIR_P to /bin/mkdir -p so all commands except mkdir are still Linux programs. - Add USES=libtool:build because libtoolize is needed. [2] - Add USES=pkgconfig. - Remove -DFREEBSD_OSS_BUFSZ_P2 because it breaks some games. [3] - Replace -nostdinc -isystem ... with --sysroot=${LINUXBASE}. [3] - Include bsd.port.options.mk to get ARCH. [3] PR: 240043 Reported by: VVD <vvd@unislabs.com> [1] Reported by: Giacomo Olgeni <olgeni@olgeni.com> [2] Reported by: Alex S <iwtcex@gmail.com> [3] Changes: head/audio/linux-c7-alsa-plugins-oss/Makefile -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240043-4077-sJ0AHPC7bN>
