Commit graph

24 commits

Author SHA1 Message Date
Dima Panov
0de24f92a1
emulators/qemu-user-static-devel: mark as PIE_UNSAFE (+)
Reported by:	bulk -t

Approved by:	portmgr (blanket)

Sponsored by:	Future Crew, LLC
2024-12-13 11:22:22 +03:00
Jan Beich
8bd17eb4fc emulators/qemu-user-static: unbreak with kern.elf64.allow_wx=0
$ qemu-aarch64-static /dev/null
qemu_mprotect__osdep: mprotect failed: Permission denied
mprotect of jit buffer: Permission denied
2023-09-11 23:15:38 +02:00
Mina Galić
4ea9b2e782 emulators/qemu-user-static-devel: Remove MIPS* from rc script
mips is removed from the binaries, so remove it from RC, too.

PR:		271744
2023-06-03 16:08:47 +02:00
Muhammad Moinur Rahman
ec290b80e0 emulators/qemu*: Fix WWW
PR:		267686
Reported by:	grahamperrin
2022-11-10 08:30:33 -06:00
Stefan Eßer
fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 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)
2022-09-07 23:58:51 +02:00
Stefan Eßer
b7f05445c0 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.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Warner Losh
96f234ff60 emulators/qemu-user-static-devel: Fix build on 12 and 13
The last update broke the build on FreeBSD 12 and 13. This fixes that
with the upstreamed fix. It also moves to a slightly newer upstream
version and resolves a number of accumulated conflicts.
2022-02-04 12:28:58 -07:00
Warner Losh
dcf1262d5b emulators/qemu-user-static-devel: Update with upstreaming updates
Fold in changes suggesteed by upstreaming process. Update to the latest
snapshot. It now is back to 6.0 level of functionality (so it's still
not ready to replace rebase-3.1-based qemu bsd-user), but it worth
testing.

Sponsored by:		Netflix
2022-01-28 15:04:00 -07:00
Warner Losh
9596b1060c emulator/qemu-user-static-devel: catch up to swapoff MFC to 13
Also, catch up to mips being removed for packaging.

Sponsored by:		Netflix
2022-01-07 15:46:46 -07:00
Warner Losh
d99d19efb6 emulators/qemu-user-static-devel: Update to latest devel version
Update to the latest pst 6.2 qemu development version for bsd-user.
This removes mips support and includes new system calls like swapoff
with two args. It's also the result of continuing efforts to upstream
changes. It's a devel version, and more dicy than most devel versions,
so caution is advised: it builds but there may be important cases that
are broken.

Sponsored by:		Netflix
2022-01-07 11:01:59 -07:00
Stefan Eßer
5933ac0b09 */*: Remove redundant '-[0-9]*' from CONFLICTS_INSTALL
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Approved by: portmgr (blanket)
2021-11-23 23:11:40 +01:00
Bernhard Froehlich
93c7e9927a
emulators/qemu-user-static-devel: Add CPE information
Approved by:	portmgr (blanket)
2021-08-29 19:29:28 +00:00
Gleb Popov
b0f48fa9e9 emulators/qemu-user-static-devel: Update to the newest snapshot.
This updates the port to the tip of `blitz-next` branch and enables `make test`.

Approved by: mat
Differential Revision: https://reviews.freebsd.org/D31255
2021-08-04 20:25:43 +03:00
Kyle Evans
f2b487a6e9 emulators/qemu-user-static{,-devel}: fix build on recent FreeBSD
This updates both to 6ffee39fe2e4, which pulls in some patches to fix
the build after a recent commit to main that was MFC'd to stable/13.

While we're here, update qemu-user-static-devel to point to the current
upstream. qemu-user-static-devel will likely be updated in the near
future to point to imp's 6.0 rebase branch for Q/A.

MFH:	2021Q2
2021-05-11 19:44:58 -05:00
Mathieu Arnold
cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00
Mathieu Arnold
135fdeebb9
all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Kyle Evans
0f2a95fa2e emulators/qemu-user-static: fix the build after base r368005
r368005 removed CRIOGET, breaking the qemu-user-static build. We didn't
actually implement it anyways, so this update simply ripped it out rather
than trying to maintain it for old branches.

While here, bring qemu-user-static-devel up to parity with qemu-user-static.
We should be soon approaching the point where we can rebase the former
forward to a newer qemu.

Reported by:	gjb
2020-12-04 02:35:41 +00:00
Kyle Evans
fc9c903e08 emulator/qemu-user-static: fix major regression from signal refactor
Excellent diagnosis by Andrew Gierth revealed the exact nature of the
regression from previous signal handling fixes; gobject-introspection now
builds, and we should be able to once again build a pretty large chunk of
the ports tree.

The configure script patch has been incorporated into our tree, so the patch
may be removed.

As mentioned previously, qemu-user-static and qemu-user-static-devel will
not always be updated in lockstep; future changes will land to
qemu-user-static-devel first followed by qemu-user-static.
2020-09-14 18:39:53 +00:00
Diane Bruce
488a0f974e Fix emulators/qemu-sbruno build with lld 10.0.0
As reported in bug 244251, with clang and lld 10.0.0 the emulators/qemu-sbruno port fails in the configure stage:

===>  Configuring for qemu-user-static-2.11.50.g20191211_3

ERROR: We need to link the QEMU user mode binaries at a
       specific text address. Unfortunately your linker
       doesn't support either the -Ttext-segment option or
       printing the default linker script with --verbose.
       If you don't want the user mode binaries, pass the
       --disable-user option to configure.

===>  Script "configure" failed unexpectedly.
Please report the problem to emulation@FreeBSD.org [maintainer] and attach
the
"/wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-d587db6/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

This is because lld 10.0.0 no longer supports the -Ttext-segment option, and uses --image-base for similar functionality.

I am proposing a patch that makes the configure script check for the --image-base option first, then the -Ttext-segment option.

PR:		ports/244772
Submitted by:	dim@FreeBSD.org
Approved by:	Maintainer
2020-03-20 00:47:58 +00:00
Kyle Evans
e2a7f531f5 qemu-user-static: revert SSP_CFLAGS workaround (ports r501032)
This was later diagnosed to be a bug in libc, which has since been addressed
in all supported releases and branches. PORTREVISION is bumped as SSP_CFLAGS
will change the output, and for consumers of these two ports it is
imperative that it be rebuilt against the updated libc to avoid high failure
rates. In testing qemu-user-static-devel failed roughly 60% of the time,
rendering it unusable as each fork/exec was yet one more chance to fail.

The bug was fixed in the following patch levels (FreeBSD-EN-20:01.ssp):
- 12.1-p2
- 12.0-p13
- 11.3-p6

PR:		243735
Approved by:	koobs (ports)
MFH:		2020Q1
2020-02-05 16:09:19 +00:00
Piotr Kubaj
1a8c09d088 emulators/qemu-user-static-devel: add 64-bit targets for powerpc64
Similar to previous commit for qemu-sbruno.
2020-01-15 22:04:04 +00:00
Kyle Evans
7be1e414dc emulators/qemu-user-static{,-devel}: unbreak after base r355641
r355641 added sigorset to base, which collides with sigorset in
qemu-user-static. This is effectively a patch (applied in the qemu-bsd-user
repo) that makes the qemu version private and uses that for now, until
sigorset in FreeBSD stabilizes across older branches.

Approved by:	0mp (ports)
2019-12-12 18:47:31 +00:00
Kyle Evans
2f03a12d35 NEW PORT: emulators/qemu-user-static-devel: QEMU user-mode emulation
This port represents the to-be-released version of qemu-user-static for
testing prior to unleashing it upon the community at large and the package
building infrastructure. Currently, it is based on the bsd-user-rebase-3.1
branch that moves the base qemu version of this work forward.

The main highlight of the update to 3.1 is initial riscv64 bsd-user support,
submitted by Embecosm.

This version of the port is also notably no longer based on the master port,
qemu-sbruno, but repocopied from it due to reusing a good portion of it. As
such, it's been severely reduced to eliminate all of the bits not relevant
to building bsd-user/ (including the various port options), so much of the
diff is eliminating the option-enabled checks and combining them all into a
single CONFIGURE_ARGS/MAKE_ARGS, along with some additional --disable-flags
for things that we certainly don't need.

The python2.7 version restriction has been dropped as qemu's actually
supported py3+ since at least the 2.x version we have over in qemu-sbruno, A
follow-up commit will also drop the version restrictions in the other qemu
ports that still have it to be proactive about this stuff as Python2 reaches
EOL.

Q/A:
 * portlint: looks fine
 * testport: 11.3, -CURRENT; amd64

PR:		242253
Reviewed by:	koobs (ports)
Approved by:	koobs (ports)
2019-12-02 03:40:49 +00:00