Re: Wine 5.9 bugfix

2020-05-24 Thread Gerald Pfeifer
On Sat, 23 May 2020, Damjan Jovanovic wrote:
> Wine 5.9 is out, and all 3 of the bugs in 5.7 - 5.8 that were affecting
> FreeBSD should be fixed upstream now.

Thank you for debugging and even fixing those, Damjan - and even doing 
so upstream!

> However I accidentally introduced another bug recently, where we don't
> check the return value from an mmap() call, resulting in assertion failures
> and possibly memory corruption... I debugged it and a patch to fix it is
> available (https://source.winehq.org/patches/data/185684). Please build
> ports with that patch applied to 5.9. Sorry.

I just started test builds of emulators/wine-devel with that patch.

So far I have kept files/patch-tools-winegcc which reverts the upstream
change (1ccd638b1aa85fb3c43b49d69d279cd509ebdc21) that kicked of this
avalanche of events.  I was thinking to keep that as part of our port
until the next snapshot (Wine 5.10) - do you have any strong feelings
or recommendations either way?

Thanks,
Gerald
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


[package - head-amd64-default][emulators/qemu-sbruno] Failed for qemu-sbruno-2.11.50.g20191211_4 in configure

2020-05-24 Thread pkg-fallout
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer: emulat...@freebsd.org
Last committer: kev...@freebsd.org
Ident:  $FreeBSD: head/emulators/qemu-sbruno/Makefile 533403 2020-04-29 
23:46:05Z kevans $
Log URL:
http://beefy18.nyi.freebsd.org/data/head-amd64-default/p536258_s361404/logs/qemu-sbruno-2.11.50.g20191211_4.log
Build URL:  
http://beefy18.nyi.freebsd.org/build.html?mastername=head-amd64-default&build=p536258_s361404
Log:

=>> Building emulators/qemu-sbruno
build started at Sun May 24 08:14:01 UTC 2020
port directory: /usr/ports/emulators/qemu-sbruno
package name: qemu-sbruno-2.11.50.g20191211_4
building for: FreeBSD head-amd64-default-job-09 13.0-CURRENT FreeBSD 
13.0-CURRENT 1300095 amd64
maintained by: emulat...@freebsd.org
Makefile ident:  $FreeBSD: head/emulators/qemu-sbruno/Makefile 533403 
2020-04-29 23:46:05Z kevans $
Poudriere version: 3.2.8-5-gc81843e5
Host OSVERSION: 1300089
Jail OSVERSION: 1300095
Job Id: 09




!!! Jail is newer than host. (Jail: 1300095, Host: 1300089) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/csh
OSVERSION=1300095
UNAME_v=FreeBSD 13.0-CURRENT 1300095
UNAME_r=13.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-5-gc81843e5
MASTERMNT=/usr/local/poudriere/data/.m/head-amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=head-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for 
qemu-sbruno-2.11.50.g20191211_4:
 BSD_USER=off: Also build bsd-user targets (for testing)
 CDROM_DMA=on: IDE CDROM DMA
 CURL=on: Data transfer support via cURL
 DOCS=on: Build and/or install documentation
 GNUTLS=on: gnutls dependency (vnc encryption)
 GTK2=on: GTK+ 2 GUI toolkit support
 JPEG=on: jpeg dependency (vnc lossy compression)
 OPENGL=on: 2D/3D rendering support via OpenGL
 PCAP=on: pcap dependency (networking with bpf)
 PNG=on: png dependency (vnc compression)
 SAMBA=off: samba dependency (for -smb)
 SASL=on: cyrus-sasl dependency (vnc encryption)
 STATIC_LINK=off: Statically link the executables
 USBREDIR=off: usb device network redirection (experimental!)
 X11=on: X11 (graphics) support
 X86_TARGETS=off: Don't build non-x86 system targets
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
emulat...@freebsd.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--localstatedir=/var --extra-ldflags=-L/usr/local/lib 
--extra-cflags=-I/usr/local/include --disable-libssh2 --disable-bsd-user 
--prefix=/usr/local --cc=cc --enable-docs  --disable-linux-user 
--disable-linux-aio  --disable-kvm --disable-xen  --smbd=/usr/local/sbin/smbd  
--enable-debug  --enable-debug-info  
--extra-cflags=-I/wrkdirs/usr/ports/emulators/qemu-sbruno/work/qemu-bsd-user-d587db6\
 -I/usr/local/include\ -DPREFIX=\\\"\"/usr/local\\\"\" --enable-sdl 
--enable-gnutls --disable-usb-redir --enable-pcap 
--python=/usr/local/bin/python2.7
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl 
ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1 
PKG_CONFIG=pkgconf PYTHON="/usr/local/bin/python2.7" 
SDL_CONFIG=/usr/local/bin/sdl-config 
XDG_DATA_HOME=/wrkdirs/usr/ports/emulators/qemu-sbruno/work  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/emulators/qemu-sbruno/work  
HOME=/wrkdirs/usr/ports/emulators/qemu-sbruno/work TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/emulators/qemu-sbruno/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 SHELL=/bin/sh CONFIG_SHELL=/bin/sh LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
--End CONFIGURE_ENV--

--MAKE_ENV--
BSD_MAKE="/usr/bin/make" V=1 PERL_USE_UNSAFE_INC=1 
SDL_CONFIG=/usr/local/bin/sdl-config 
XDG_DATA_HOME=/wrkdirs/usr/ports/emulators/qemu-sbruno/work  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/emulators/qemu-sbruno/work  
HOME=/wrkdirs/usr/ports/emulators/qemu-sbruno/work TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/emulators/qemu-sbruno/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_

Re: Wine 5.9 bugfix

2020-05-24 Thread Damjan Jovanovic
On Sun, May 24, 2020 at 3:40 PM Gerald Pfeifer  wrote:

> On Sat, 23 May 2020, Damjan Jovanovic wrote:
> > For Wine. I'll submit it upstream when the rtld-elf patch goes into
> > stable/12.
>
> What will happen to users on FreeBSD 11 (or 12 before the rtld-elf
> patch) when that additional patch goes into upstream Wine?
>
> Gerald
>

This is the patch I would send, it effectively changes 2 lines to check an
extra condition (__FreeBSD_version < 1202000):


commit c81fc2e8dc75c5dcab300da4fa6cc6ccfb0c3d15 (freebsd-mmap)
Author: Damjan Jovanovic 
Date:   Sat May 23 13:49:31 2020 +0200

ntdll: only use the link_map.l_addr workaround on FreeBSD < 12.2

FreeBSD 12.2 will change the meaning of link_map.l_addr to be
the offset from file addresses to RAM addresses, like it is in
Linux/NetBSD/Illumos
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246561)

Signed-off-by: Damjan Jovanovic 

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 6e41b37ad8..bdd7794683 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1317,7 +1317,7 @@ static void call_tls_callbacks( HMODULE module, UINT
reason )
 }
 }

-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)
 /* The PT_LOAD segments are sorted in increasing order, and the first
  * starts at the beginning of the ELF file. By parsing the file, we can
  * find that first PT_LOAD segment, from which we can find the base
@@ -1370,7 +1370,7 @@ static void call_constructors( WINE_MODREF *wm )
 {
 caddr_t relocbase = (caddr_t)map->l_addr;

-#ifdef __FreeBSD__  /* FreeBSD doesn't relocate l_addr */
+#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)  /* FreeBSD
doesn't relocate l_addr */
 if (!get_relocbase(map->l_addr, &relocbase)) return;
 #endif
 switch (dyn->d_tag)
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Wine 5.9 bugfix

2020-05-24 Thread Konstantin Belousov
On Sun, May 24, 2020 at 03:45:47PM +0200, Damjan Jovanovic wrote:
> On Sun, May 24, 2020 at 3:40 PM Gerald Pfeifer  wrote:
> 
> > On Sat, 23 May 2020, Damjan Jovanovic wrote:
> > > For Wine. I'll submit it upstream when the rtld-elf patch goes into
> > > stable/12.
> >
> > What will happen to users on FreeBSD 11 (or 12 before the rtld-elf
> > patch) when that additional patch goes into upstream Wine?
> >
> > Gerald
> >
> 
> This is the patch I would send, it effectively changes 2 lines to check an
> extra condition (__FreeBSD_version < 1202000):
> 
> 
> commit c81fc2e8dc75c5dcab300da4fa6cc6ccfb0c3d15 (freebsd-mmap)
> Author: Damjan Jovanovic 
> Date:   Sat May 23 13:49:31 2020 +0200
> 
> ntdll: only use the link_map.l_addr workaround on FreeBSD < 12.2
> 
> FreeBSD 12.2 will change the meaning of link_map.l_addr to be
> the offset from file addresses to RAM addresses, like it is in
> Linux/NetBSD/Illumos
> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246561)
> 
> Signed-off-by: Damjan Jovanovic 
> 
> diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
> index 6e41b37ad8..bdd7794683 100644
> --- a/dlls/ntdll/loader.c
> +++ b/dlls/ntdll/loader.c
> @@ -1317,7 +1317,7 @@ static void call_tls_callbacks( HMODULE module, UINT
> reason )
>  }
>  }
> 
> -#ifdef __FreeBSD__
> +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)
>  /* The PT_LOAD segments are sorted in increasing order, and the first
>   * starts at the beginning of the ELF file. By parsing the file, we can
>   * find that first PT_LOAD segment, from which we can find the base
> @@ -1370,7 +1370,7 @@ static void call_constructors( WINE_MODREF *wm )
>  {
>  caddr_t relocbase = (caddr_t)map->l_addr;
> 
> -#ifdef __FreeBSD__  /* FreeBSD doesn't relocate l_addr */
> +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)  /* FreeBSD
> doesn't relocate l_addr */
>  if (!get_relocbase(map->l_addr, &relocbase)) return;
>  #endif
>  switch (dyn->d_tag)
Can you check for presence of link_map.l_base instead of looking for
the version ?  Configure scripts should easily handle this.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Wine 5.9 bugfix

2020-05-24 Thread Damjan Jovanovic
On Sun, May 24, 2020 at 4:49 PM Konstantin Belousov 
wrote:

> On Sun, May 24, 2020 at 03:45:47PM +0200, Damjan Jovanovic wrote:
> > On Sun, May 24, 2020 at 3:40 PM Gerald Pfeifer 
> wrote:
> >
> > > On Sat, 23 May 2020, Damjan Jovanovic wrote:
> > > > For Wine. I'll submit it upstream when the rtld-elf patch goes into
> > > > stable/12.
> > >
> > > What will happen to users on FreeBSD 11 (or 12 before the rtld-elf
> > > patch) when that additional patch goes into upstream Wine?
> > >
> > > Gerald
> > >
> >
> > This is the patch I would send, it effectively changes 2 lines to check
> an
> > extra condition (__FreeBSD_version < 1202000):
> >
> >
> > commit c81fc2e8dc75c5dcab300da4fa6cc6ccfb0c3d15 (freebsd-mmap)
> > Author: Damjan Jovanovic 
> > Date:   Sat May 23 13:49:31 2020 +0200
> >
> > ntdll: only use the link_map.l_addr workaround on FreeBSD < 12.2
> >
> > FreeBSD 12.2 will change the meaning of link_map.l_addr to be
> > the offset from file addresses to RAM addresses, like it is in
> > Linux/NetBSD/Illumos
> > (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246561)
> >
> > Signed-off-by: Damjan Jovanovic 
> >
> > diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
> > index 6e41b37ad8..bdd7794683 100644
> > --- a/dlls/ntdll/loader.c
> > +++ b/dlls/ntdll/loader.c
> > @@ -1317,7 +1317,7 @@ static void call_tls_callbacks( HMODULE module,
> UINT
> > reason )
> >  }
> >  }
> >
> > -#ifdef __FreeBSD__
> > +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)
> >  /* The PT_LOAD segments are sorted in increasing order, and the first
> >   * starts at the beginning of the ELF file. By parsing the file, we can
> >   * find that first PT_LOAD segment, from which we can find the base
> > @@ -1370,7 +1370,7 @@ static void call_constructors( WINE_MODREF *wm )
> >  {
> >  caddr_t relocbase = (caddr_t)map->l_addr;
> >
> > -#ifdef __FreeBSD__  /* FreeBSD doesn't relocate l_addr */
> > +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)  /* FreeBSD
> > doesn't relocate l_addr */
> >  if (!get_relocbase(map->l_addr, &relocbase)) return;
> >  #endif
> >  switch (dyn->d_tag)
> Can you check for presence of link_map.l_base instead of looking for
> the version ?  Configure scripts should easily handle this.
>

There is no link_map.l_base in your commit:
https://svnweb.freebsd.org/base/head/sys/sys/link_elf.h?r1=326256&r2=361303&pathrev=361303
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


[Bug 233301] emulators/virtualbox-ose - multimedia issues on 13-current

2020-05-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233301

Mario Lobo  changed:

   What|Removed |Added

 CC||l...@bsd.com.br

--- Comment #20 from Mario Lobo  ---

I confirm that this patch works!

13.0-CURRENT FreeBSD 13.0-CURRENT #1 r360882
virtualbox-ose-5.2.42

Using OSS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Wine 5.9 bugfix

2020-05-24 Thread Gerald Pfeifer
On Sun, 24 May 2020, Damjan Jovanovic wrote:
>> I just started test builds of emulators/wine-devel with that patch.
>>
>> So far I have kept files/patch-tools-winegcc which reverts the upstream
>> change (1ccd638b1aa85fb3c43b49d69d279cd509ebdc21) that kicked of this
>> avalanche of events.  I was thinking to keep that as part of our port
>> until the next snapshot (Wine 5.10) - do you have any strong feelings
>> or recommendations either way?
> While I don't completely understand the many changes there, I would 
> advise against files/patch-tools-winegcc as Linux doesn't use it, and 
> the only issue on FreeBSD was that rtld-elf problem which Wine worked 
> around in 5.9.

Okay, then I'll take that one out while adding one for the straightforward 
bug fix.

That commit should land in the next hours, and then we've got nearly two
weeks to gain experience and feedback before Wine 5.10 is expected.

Thanks,
Gerald
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Wine 5.9 bugfix

2020-05-24 Thread Gerald Pfeifer
On Sun, 24 May 2020, Damjan Jovanovic wrote:
> This is the patch I would send, it effectively changes 2 lines to check an
> extra condition (__FreeBSD_version < 1202000):
> 
> 
> commit c81fc2e8dc75c5dcab300da4fa6cc6ccfb0c3d15 (freebsd-mmap)
> Author: Damjan Jovanovic 
> Date:   Sat May 23 13:49:31 2020 +0200
> 
> ntdll: only use the link_map.l_addr workaround on FreeBSD < 12.2
> 
> FreeBSD 12.2 will change the meaning of link_map.l_addr to be
> the offset from file addresses to RAM addresses, like it is in
> Linux/NetBSD/Illumos
> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246561)
> 
> Signed-off-by: Damjan Jovanovic 
> 
> diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
> index 6e41b37ad8..bdd7794683 100644
> --- a/dlls/ntdll/loader.c
> +++ b/dlls/ntdll/loader.c
> @@ -1317,7 +1317,7 @@ static void call_tls_callbacks( HMODULE module, UINT
> reason )
>  }
>  }
> 
> -#ifdef __FreeBSD__
> +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)
>  /* The PT_LOAD segments are sorted in increasing order, and the first
>   * starts at the beginning of the ELF file. By parsing the file, we can
>   * find that first PT_LOAD segment, from which we can find the base
> @@ -1370,7 +1370,7 @@ static void call_constructors( WINE_MODREF *wm )
>  {
>  caddr_t relocbase = (caddr_t)map->l_addr;
> 
> -#ifdef __FreeBSD__  /* FreeBSD doesn't relocate l_addr */
> +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)  /* FreeBSD
> doesn't relocate l_addr */
>  if (!get_relocbase(map->l_addr, &relocbase)) return;
>  #endif
>  switch (dyn->d_tag)

I wonder whether that's not worth a __FreeBSD_version bump, see
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/versions-12.html
for other examples.

Konstantin?

(The challenge of course remains when packages are built on/for one
specific minor version/patch level, and then deployed on a later or
earlier one.)

Gerald
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Wine 5.9 bugfix

2020-05-24 Thread Gerald Pfeifer
On Sat, 23 May 2020, Damjan Jovanovic wrote:
> For Wine. I'll submit it upstream when the rtld-elf patch goes into
> stable/12.

What will happen to users on FreeBSD 11 (or 12 before the rtld-elf
patch) when that additional patch goes into upstream Wine?

Gerald
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: Wine 5.9 bugfix

2020-05-24 Thread Konstantin Belousov
On Sun, May 24, 2020 at 05:29:55PM +0200, Damjan Jovanovic wrote:
> On Sun, May 24, 2020 at 4:49 PM Konstantin Belousov 
> wrote:
> 
> > On Sun, May 24, 2020 at 03:45:47PM +0200, Damjan Jovanovic wrote:
> > > On Sun, May 24, 2020 at 3:40 PM Gerald Pfeifer 
> > wrote:
> > >
> > > > On Sat, 23 May 2020, Damjan Jovanovic wrote:
> > > > > For Wine. I'll submit it upstream when the rtld-elf patch goes into
> > > > > stable/12.
> > > >
> > > > What will happen to users on FreeBSD 11 (or 12 before the rtld-elf
> > > > patch) when that additional patch goes into upstream Wine?
> > > >
> > > > Gerald
> > > >
> > >
> > > This is the patch I would send, it effectively changes 2 lines to check
> > an
> > > extra condition (__FreeBSD_version < 1202000):
> > >
> > >
> > > commit c81fc2e8dc75c5dcab300da4fa6cc6ccfb0c3d15 (freebsd-mmap)
> > > Author: Damjan Jovanovic 
> > > Date:   Sat May 23 13:49:31 2020 +0200
> > >
> > > ntdll: only use the link_map.l_addr workaround on FreeBSD < 12.2
> > >
> > > FreeBSD 12.2 will change the meaning of link_map.l_addr to be
> > > the offset from file addresses to RAM addresses, like it is in
> > > Linux/NetBSD/Illumos
> > > (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246561)
> > >
> > > Signed-off-by: Damjan Jovanovic 
> > >
> > > diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
> > > index 6e41b37ad8..bdd7794683 100644
> > > --- a/dlls/ntdll/loader.c
> > > +++ b/dlls/ntdll/loader.c
> > > @@ -1317,7 +1317,7 @@ static void call_tls_callbacks( HMODULE module,
> > UINT
> > > reason )
> > >  }
> > >  }
> > >
> > > -#ifdef __FreeBSD__
> > > +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)
> > >  /* The PT_LOAD segments are sorted in increasing order, and the first
> > >   * starts at the beginning of the ELF file. By parsing the file, we can
> > >   * find that first PT_LOAD segment, from which we can find the base
> > > @@ -1370,7 +1370,7 @@ static void call_constructors( WINE_MODREF *wm )
> > >  {
> > >  caddr_t relocbase = (caddr_t)map->l_addr;
> > >
> > > -#ifdef __FreeBSD__  /* FreeBSD doesn't relocate l_addr */
> > > +#if defined(__FreeBSD__) && (__FreeBSD_version < 1202000)  /* FreeBSD
> > > doesn't relocate l_addr */
> > >  if (!get_relocbase(map->l_addr, &relocbase)) return;
> > >  #endif
> > >  switch (dyn->d_tag)
> > Can you check for presence of link_map.l_base instead of looking for
> > the version ?  Configure scripts should easily handle this.
> >
> 
> There is no link_map.l_base in your commit:
> https://svnweb.freebsd.org/base/head/sys/sys/link_elf.h?r1=326256&r2=361303&pathrev=361303

It was added later when initial commit was partially reverted.
Or rather, l_addr was renamed to l_base, see r361349.

In fact Gerald' concern that there is no __FreeBSD_version for the feature
is valid, but bigger problem is that __FreeBSD_version is never useful for
anything in userspace, esp. if compilation environment might be different
from runtime.

I propose the following to detect the new behavior for l_addr:
https://reviews.freebsd.org/D24982
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


[package - head-i386-default][devel/linux_libusb] Failed for linux_libusb-13.0r358841 in build

2020-05-24 Thread pkg-fallout
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer: emulat...@freebsd.org
Last committer: hsela...@freebsd.org
Ident:  $FreeBSD: head/devel/linux_libusb/Makefile 528191 2020-03-10 
18:46:35Z hselasky $
Log URL:
http://beefy17.nyi.freebsd.org/data/head-i386-default/p536258_s361404/logs/linux_libusb-13.0r358841.log
Build URL:  
http://beefy17.nyi.freebsd.org/build.html?mastername=head-i386-default&build=p536258_s361404
Log:

=>> Building devel/linux_libusb
build started at Sun May 24 20:35:04 UTC 2020
port directory: /usr/ports/devel/linux_libusb
package name: linux_libusb-13.0r358841
building for: FreeBSD head-i386-default-job-04 13.0-CURRENT FreeBSD 
13.0-CURRENT 1300095 i386
maintained by: emulat...@freebsd.org
Makefile ident:  $FreeBSD: head/devel/linux_libusb/Makefile 528191 
2020-03-10 18:46:35Z hselasky $
Poudriere version: 3.2.8-5-gc81843e5
Host OSVERSION: 1300089
Jail OSVERSION: 1300095
Job Id: 04




!!! Jail is newer than host. (Jail: 1300095, Host: 1300089) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/csh
UNAME_p=i386
UNAME_m=i386
OSVERSION=1300095
UNAME_v=FreeBSD 13.0-CURRENT 1300095
UNAME_r=13.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-5-gc81843e5
MASTERMNT=/usr/local/poudriere/data/.m/head-i386-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/head-i386-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=head-i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/head-i386-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
emulat...@freebsd.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
HOME=/wrkdirs/usr/ports/devel/linux_libusb/work TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/devel/linux_libusb/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
HOME=/wrkdirs/usr/ports/devel/linux_libusb/work TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/devel/linux_libusb/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES 
PREFIX=/compat/linux  LOCALBASE=/usr/local  CC="/compat/linux/usr/bin/gcc" 
CFLAGS="-O2 -pipe  
-I/wrkdirs/usr/ports/devel/linux_libusb/work/linux_libusb-13.0r358841/include 
-fstack-protector -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" 
-fstack-protector " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe 
-I/wrkdirs/usr/ports/devel/linux_libusb/work/linux_libusb-13.0r358841/include 
-fstack-protector -fno-strict-aliasing  "  MANPREFIX="/compat/linux" 
BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644" 
 BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  
BSD_INSTA
 LL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=13.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/compat/linux 
LIB32DIR=lib DOCSDIR="usr/share/doc/linux_libusb-13.0r358841"  
EXAMPLESDIR="share/examples/linux_libusb"  DATADIR="usr/share/linux_libusb"  
WWWDIR="www/linux_libusb"  ETCDIR="etc/linux_libusb"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/compat/linux LOCALBASE=/usr/local  
DATADIR=/compat/linux/usr/share/linux_libusb 
DOCSDIR=/compat/linux/usr/share/doc/linux_libusb-13.0r358841 
EXAMPLESDIR=/compat/linux/share/examples/linux_libusb  
WWWDIR=/compat/linux/www/linux_libusb ETCDIR=/compat/linux/etc/linux_libusb
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
 /usr/local/etc/poudriere.d/make.conf 
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched t

Problem reports for emulat...@freebsd.org that need special attention

2020-05-24 Thread bugzilla-noreply
To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status  |Bug Id | Description
+---+---
In Progress |224740 | emulators/qemu-user-static: low RLIMIT_VMEM hangs 

1 problems total for which you should take action.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Problem reports for v...@freebsd.org that need special attention

2020-05-24 Thread bugzilla-noreply
To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status  |Bug Id | Description
+---+---
Open|232969 | emulators/virtualbox-ose: fails to link rdesktop- 
Open|242637 | emulators/virtualbox-ose: Fix bridging when ng_et 
Open|243315 | emulators/virtualbox-ose: 5.2.34 fails to buid on 
New |226073 | emulators/virtualbox-ose-additions -- fix two min 
In Progress |244212 | emulators/virtualbox-ose: Update to 5.2.40

5 problems total for which you should take action.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


[package - head-amd64-default][devel/linux_libusb] Failed for linux_libusb-13.0r358841 in build

2020-05-24 Thread pkg-fallout
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer: emulat...@freebsd.org
Last committer: hsela...@freebsd.org
Ident:  $FreeBSD: head/devel/linux_libusb/Makefile 528191 2020-03-10 
18:46:35Z hselasky $
Log URL:
http://beefy18.nyi.freebsd.org/data/head-amd64-default/p536258_s361404/logs/linux_libusb-13.0r358841.log
Build URL:  
http://beefy18.nyi.freebsd.org/build.html?mastername=head-amd64-default&build=p536258_s361404
Log:

=>> Building devel/linux_libusb
build started at Sun May 24 22:02:56 UTC 2020
port directory: /usr/ports/devel/linux_libusb
package name: linux_libusb-13.0r358841
building for: FreeBSD head-amd64-default-job-04 13.0-CURRENT FreeBSD 
13.0-CURRENT 1300095 amd64
maintained by: emulat...@freebsd.org
Makefile ident:  $FreeBSD: head/devel/linux_libusb/Makefile 528191 
2020-03-10 18:46:35Z hselasky $
Poudriere version: 3.2.8-5-gc81843e5
Host OSVERSION: 1300089
Jail OSVERSION: 1300095
Job Id: 04




!!! Jail is newer than host. (Jail: 1300095, Host: 1300089) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/csh
OSVERSION=1300095
UNAME_v=FreeBSD 13.0-CURRENT 1300095
UNAME_r=13.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-5-gc81843e5
MASTERMNT=/usr/local/poudriere/data/.m/head-amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=head-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/head-amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
emulat...@freebsd.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
HOME=/wrkdirs/usr/ports/devel/linux_libusb/work TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/devel/linux_libusb/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/linux_libusb/work  
HOME=/wrkdirs/usr/ports/devel/linux_libusb/work TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/devel/linux_libusb/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES 
PREFIX=/compat/linux  LOCALBASE=/usr/local  CC="/compat/linux/usr/bin/gcc" 
CFLAGS="-O2 -pipe  
-I/wrkdirs/usr/ports/devel/linux_libusb/work/linux_libusb-13.0r358841/include 
-fstack-protector -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" 
-fstack-protector " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe 
-I/wrkdirs/usr/ports/devel/linux_libusb/work/linux_libusb-13.0r358841/include 
-fstack-protector -fno-strict-aliasing  "  MANPREFIX="/compat/linux" 
BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644" 
 BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  
BSD_INSTA
 LL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=13.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/compat/linux 
LIB32DIR=lib DOCSDIR="usr/share/doc/linux_libusb-13.0r358841"  
EXAMPLESDIR="share/examples/linux_libusb"  DATADIR="usr/share/linux_libusb"  
WWWDIR="www/linux_libusb"  ETCDIR="etc/linux_libusb"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/compat/linux LOCALBASE=/usr/local  
DATADIR=/compat/linux/usr/share/linux_libusb 
DOCSDIR=/compat/linux/usr/share/doc/linux_libusb-13.0r358841 
EXAMPLESDIR=/compat/linux/share/examples/linux_libusb  
WWWDIR=/compat/linux/www/linux_libusb ETCDIR=/compat/linux/etc/linux_libusb
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
 /usr/local/etc/poudriere.d/make.conf 
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with