[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-18 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 1:5.0-5ubuntu9.3 --- qemu (1:5.0-5ubuntu9.3) groovy; urgency=medium * d/p/ubuntu/lp-1907656-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy: avoid PCI devices to become unavailable on reset (LP: #1907656) * d/rules: fix qemu-user-s

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-11 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 1:5.2+dfsg-3ubuntu1 --- qemu (1:5.2+dfsg-3ubuntu1) hirsute; urgency=medium * Merge with Debian unstable, includes fixes for - qemu-user-static are partially dynamically linked (LP: #1908331) - qemu crashing when using spice without qe

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-11 Thread Christian Ehrhardt 
1:5.0-5ubuntu9.2 $ file $(dpkg -L qemu-user-static | grep bin\/qemu-.*-static) ... /usr/bin/qemu-xtensaeb-static: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=99dc333d7f8a78620600e5807de92b60dba54468, for GNU/Linux 3.2.0, stripped 1:5.0-5ub

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-08 Thread Timo Aaltonen
Hello TJ, or anyone else affected, Accepted qemu into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/qemu/1:5.0-5ubuntu9.3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubun

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-06 Thread Christian Ehrhardt 
Review and pre-tests ok, uploaded to 21.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Regression: qemu-user-static binaries are dynamically linked To manage notifications about th

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-06 Thread Christian Ehrhardt 
Uploaded and ready for the review by the SRU Team -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Regression: qemu-user-static binaries are dynamically linked To manage notifications a

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-06 Thread Christian Ehrhardt 
SRU prepared (template in bug description) and tested against the PPA (https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4389) and reviewed (https://code.launchpad.net/~paelzer/ubuntu/+source/qemu/+git/qemu/+merge/395786). I will upload that to -unapproved soon -- You received this bug

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-06 Thread Christian Ehrhardt 
** Description changed: - On 20.04 (qemu 4.2) the binaries built for qemu-user-static - - specifically in the case I've hit /usr/bin/qemu-aarch64-static - are - completely static executables. + [ Impact ] + + * An upstream change [1] had undesired impact of making qemu-user-static +no more

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-05 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~paelzer/ubuntu/+source/qemu/+git/qemu/+merge/395786 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Regression: qemu-user-stati

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-04 Thread Christian Ehrhardt 
** Changed in: qemu (Ubuntu) Importance: Undecided => High ** Changed in: qemu (Ubuntu Groovy) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Reg

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2021-01-04 Thread Christian Ehrhardt 
My change was accepted upstream and in 5.2-3 - I'll merge that in the coming days. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Regression: qemu-user-static binaries are dynamically

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
Now that root-cause and solution is rather clear I have submitted that to Debian (which is affected the same way). But I will personally enter the EOY-downtime before I can fix it in an Ubuntu upload - OTOH this isn't super urgent I guess - and if my prio-assumption is wrong the fix is available

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
Bisect agrees $ git bisect log git bisect start # old: [b0ca999a43a22b38158a33d3f5881648bb4f] Update version for v4.2.0 release git bisect old b0ca999a43a22b38158a33d3f5881648bb4f # new: [fdd76fecdde1ad444ff4deb7f1c4f7e4a1ef97d6] Update version for v5.0.0 release git bisect new fdd76fecd

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
Building v5.0.0 with --disable-pie: flags now are: QEMU_LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -static -m64 -fstack-protector-strong And the file is as we'd like it to be: ./aarch64-linux-user/qemu-aarch64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
Just looking at git history maybe https://git.qemu.org/?p=qemu.git;a=commit;h=127814629b32d5e0de2873d742e08cb9bd412af7 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Regression: qemu-u

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
Confirmed to recreate from git as well: v5.0.0 ./aarch64-linux-user/qemu-aarch64: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=1521984faacf9472c1df8fe37c2a0fb5e2f55aba, for GNU/Linux 3.2.0, with debug_info, not stripped v4.2.0 ./aarch64-linux-u

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
Thanks for the great report TJ. Indeed configure --static converts to 4.2 LDFLAGS -Wl,--warn-common -m64 -static -g -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed QEMU_LDFLAGS··· 5.0 QEMU_LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -static-pie -m64 -g -O2 -fde

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-16 Thread Christian Ehrhardt 
If -static-pie is indeed impoartant here - it is rather new and had problems before. An excerpt from d/rules: 114 ifneq ($(filter $(DEB_HOST_ARCH),i386 x32),) 115 # XXX as of 2020-04-29, i386 buildd fails to link -static-pie executable: 116 # /usr/b

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-15 Thread TJ
I've posted a question to the qemu-devel mailing list with subject "Are user static builds really dynamically linked ?" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1908331 Title: Regression: qemu-

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-15 Thread TJ
To be sure I built upstream v4.2.1 and it reports the expected and required linkage. Build needs some additional tweaking to avoid libssh deprecated functions causing -Werror to trigger: $ sudo apt install liblzma-dev $ ../../qemu/configure --target-list=aarch64-linux-user --static --disable-syst

[Bug 1908331] Re: Regression: qemu-user-static binaries are dynamically linked

2020-12-15 Thread TJ
** Description changed: On 20.04 (qemu 4.2) the binaries built for qemu-user-static - specifically in the case I've hit /usr/bin/qemu-aarch64-static - are completely static executables. The same binaries from a qemu 5.x build are not. Although they don't link to other shared libraries