https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240043

--- Comment #45 from [email protected] ---
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 <[email protected]> [1]
  Reported by:  Giacomo Olgeni <[email protected]> [2]
  Reported by:  Alex S <[email protected]> [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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[email protected]"

Reply via email to