Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2015 00:26:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204615] bsd.port.mk: USE_LINUX as build-only dependency
Message-ID:  <bug-204615-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204615

            Bug ID: 204615
           Summary: bsd.port.mk: USE_LINUX as build-only dependency
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: freebsd-ports-bugs@FreeBSD.org

USE_LINUX assumes anything built by a linux toolchain targets linuxulator. In
some cases a port may want to build either for native (e.g. using proprietary
toolchain) or for unsupported ABI (e.g. FreeBSD<->device bridge).

To fix maybe extend the syntax to allow arguments (similar to USES) e.g.,

  USE_LINUX= yes:build
  USE_LINUX= c6_64:build

to avoid hacks like in devel/fb-adb:

  BUILD_DEPENDS=  ${LINUX_BASE_PORT}

  USE_LINUX=      yes

  .include <bsd.port.mk>

  .if defined(.PARSEDIR)
  RUN_DEPENDS:=   ${RUN_DEPENDS:N${LINUX_BASE_PORT}}
  .else
  RUN_DEPENDS:=   ${RUN_DEPENDS:N*linux_base*}
  .endif

-- 
You are receiving this mail because:
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-204615-13>