Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686370 - =app-emulation/qemu-4.0.0 USE=systemtap - install: cannot create directory ‘/var/tmp/portage/app-emulation/qemu-4.0.0/image/usr/bin’: File exists
Summary: =app-emulation/qemu-4.0.0 USE=systemtap - install: cannot create directory ‘/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-20 07:54 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2019-05-20 20:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (app-emulation:qemu-4.0.0:20190510-022402.log,55.92 KB, text/plain)
2019-05-20 07:55 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
emerge --info (file_686370.txt,32.95 KB, text/plain)
2019-05-20 08:07 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
Patch for qemu-4.0.0-r3 (qemu-4.0.0-bindir.patch,726 bytes, patch)
2019-05-20 15:19 UTC, hangglider
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2019-05-20 07:54:09 UTC
Hi there!
I've found a bug in Qemu-4 Makefile (?) that makes it impossible to install it, when `systemtap` USE-flag is enabled.

Reproducible: Always
Comment 1 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2019-05-20 07:55:06 UTC
Created attachment 577348 [details]
build.log
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2019-05-20 08:07:49 UTC
Created attachment 577350 [details]
emerge --info
Comment 3 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2019-05-20 08:15:17 UTC
Additional info:

build error says that buildsystem can't create $D/usr/bin, since it's already exists.

It is true: it is a Pyhton script. Further manual checks shows, that it is `scripts/qemu-trace-stap` script.

Corrwsponding Makefile rule is:
```
L804 ifdef CONFIG_TRACE_SYSTEMTAP
L805     $(INSTALL_PROG) "scripts/qemu-trace-stap" $(DESTDIR)$(bindir)
L806 endif
```

My guess is that it doesn't check for existence of "bindir" before installing this script, so in conjunction with that syntax it leads to installing the script to the /usr with a name of "bin".

Maybe, it can be somehow related to multi-jobs (I didn't tested with MAKEOPTS=-j1)
Comment 4 hangglider 2019-05-20 15:19:33 UTC
Created attachment 577414 [details, diff]
Patch for qemu-4.0.0-r3

Patch fixes problem for me.
Comment 5 Larry the Git Cow gentoo-dev 2019-05-20 16:27:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbedf5e1f9b2591cdd337a5fa915d76210e96cdf

commit cbedf5e1f9b2591cdd337a5fa915d76210e96cdf
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-05-20 16:27:04 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-05-20 16:27:28 +0000

    app-emulation/qemu: fix systemtap patch
    
    Thanks to hangglider@gmx.de for pointing this out!
    
    Closes: https://bugs.gentoo.org/686370
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/qemu/files/qemu-4.0.0-mkdir_systemtap.patch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)