Re: git: 688bd028652d - main - emulators/qemu-user-static: Fix build on recent FreeBSD

From: Colin Percival <cperciva_at_freebsd.org>
Date: Fri, 07 Jan 2022 19:36:51 UTC
Ah, I forgot that the swapoff API change was MFCed...

Warner, it looks like
	#if __FreeBSD_version >= 1400044
needs to be
	#if __FreeBSD_version >= 1400044 || \
	    (__FreeBSD_version >= 1300523 && __FreeBSD_version < 1400000)

If you can make that change upstream I can bump the port again (or you can,
whatever works for you).

Colin Percival

On 1/7/22 11:24, Larry Rosenman wrote:
> this fails on my 13.0-STABLE Jail (LATEST):
> https://home.lerctr.org:8888/data/p130-S-amd64-host-ports/2022-01-07_12h58m11s/logs/errors/qemu-user-static-3.1.0_13.log 
> 
> 
> 
> 
> On 01/06/2022 10:32 pm, Colin Percival wrote:
>> The branch main has been updated by cperciva:
>>
>> URL:
>> https://cgit.FreeBSD.org/ports/commit/?id=688bd028652dc3c6bfe606fd690359060bbd949d 
>>
>>
>> commit 688bd028652dc3c6bfe606fd690359060bbd949d
>> Author:     Colin Percival <cperciva@FreeBSD.org>
>> AuthorDate: 2022-01-07 04:27:11 +0000
>> Commit:     Colin Percival <cperciva@FreeBSD.org>
>> CommitDate: 2022-01-07 04:32:45 +0000
>>
>>     emulators/qemu-user-static: Fix build on recent FreeBSD
>>
>>     The swapoff(2) syscall recently changed from taking a single
>>     argument to taking two (adding a field used for a "force" flag);
>>     this broke qemu-user, since it translates system calls from
>>     guest to host architecture.
>>
>>     Thanks to:      imp
>>     With hat:       re@
>>     Sponsored by:   https://www.patreon.com/cperciva
> 

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid