linux_libusb takes advantage of the FreeBSD's libusb(8) library, which
got prepared to work correctly within the linux(4) emulation layer. It
lets you to take a Linux binary linked with libusb.so and use it on
FreeBSD.
devel/linux_libusb: Fix build and hand over to emulation@
The Linux gcc picks up ld from devel/binutils, which cannot load the
Linux LTO plugin, and linking libusb.so.3 fails. Point gcc at the
linker from the Linux base with -B.
Give maintainership to emulation@.
Sponsored by: Netzkommune GmbH
devel/linux_libusb: Use CSTD of gnu11 for the c7 flavor
This fixes the build on 15.0 where the default CSTD of gnu17 is not
supported by the old version of gcc used for CentOS 7.
PR: 284039
Reviewed by: arrowd
Differential Revision: https://reviews.freebsd.org/D48973
Mk/bsd.port.mk: Add __MAKE_CONF=${NONEXISTENT} to WRK_ENV
And remove it from individual ports. Use WRK_ENV in custom build
commands where necessary.
FreeBSD make(1) includes /usr/share/mk/sys.mk and that includes
/etc/make.conf if it exists. This happens when you run make in a port
directory but it also happens when the upstream build system uses make.
This commit disables make.conf inclusion in the latter case because
users can define variables like CFLAGS in make.conf that override ports
framework variables and this can cause problems that are difficult to
diagnose.
If there are any build customisations made through make.conf that stop
working because of this commit then they should be made available by the
(Only the first 15 lines of the commit message are shown above )
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
Also move conditional flags for non sparc64/arm ARCH to fixed flags.
Reviewed by: brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
*: return Hans Petter Selasky's ports to the pool after he passed away.
portmgr would like to thank Hans Petter for his years of ports maintenance
and his work on FreeBSD in general. May he rest in peace.
An in-memoriam can be read at
https://lists.freebsd.org/archives/freebsd-announce/2023-July/000076.html
With hat: portmgr-secretary
devel/linux_libusb: disable date/time nonreproducible build warning
The base system build infrastructure will add -Wdate-time, to avoid
use of nonreproducible __DATE__ and __TIME__ in the base system.
This port makes use of a GCC that does not support -Wdate-time, so
opt out of the warning.
Reviewed by: hselasky
Approved by: jrm
PR: 267902 [exp-run]
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37506
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
Remove libusb.so symbolic link because it belongs in a -devel package.
Add libusb-1.0.so.0 symbolic link because FreeBSD libusb implements that
API too.
PR: 249516
Reported by: Alex S <iwtcex@gmail.com>
Add a direct build dependency on linux_base instead of relying on devtools
to pull it in. This guarantees that the version constraint set in
Mk/Uses/linux.mk is taken into account.
Compile with --sysroot=${LINUXBASE} such that gcc doesn't pick up headers
from /usr.
Build the 32 bit library on amd64 with -m32 such that it's actually a 32 bit
library. This must have become broken long time ago when 64 bit linux
support was added and the compiler became 64 bit. [1]
PR: 249516
Reported by: Alex S <iwtcex@gmail.com> [1]
- Build 64-bit version on amd64.
- Add run dependency on linux_base.
- Remove -march from CFLAGS because gcc 4.8 does not know recent cpu types.
PR: 249516
Attempt to fix build after removal of Linux c6.
- Replace build dependency on linux-c7-devtools with
USE_LINUX=devtools:build so it takes into account LINUX_DEFAULT.
- Install libusb.so.3 which is the SONAME of the library.
- Disable -Werror.
- Don't build profiling library. It's not installed and -pg and
-fstack-protector are incompatible.
- Don't let the build make parse /etc/make.conf because this may redefine
*FLAGS. The file is already handled by the ports tree.
- Create symbolic links instead of hard links.
Switch to -fstack-protector-strong and enable on more architectures
PR: 237273
Exp-run by: antoine
Approved by: portmgr (antoine)
Differential Revision: https://reviews.freebsd.org/D19907
Add new port devel/linux_libusb:
linux-libusb takes advantage of FreeBSD libusb(8) library, which got
prepared to work correctly within linux(4) emulation layer. It lets
you to take Linux binary linked with libusb.so and use it on
FreeBSD.
Additional information: This port has been prepared under FreeBSD
with kern.osreldate = 1000510. It relies on the fact the libusb(8)
API seems to be stable and no changes have been made to internal API
for a long time. If this assumption isn't true, port won't work.
Please submit bug report to the port maintainter in that case.
WWW: http://lists.freebsd.org/pipermail/freebsd-usb/2014-March/012854.html
PR: ports/146895 (older version)
Submitted by: wkoszek (PR), nox (self, this version)