Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611130 - app-misc/screen-4.5.1: parallel "make install" fails due to underspecified target prerequisites
Summary: app-misc/screen-4.5.1: parallel "make install" fails due to underspecified ta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-02-27 18:56 UTC by Matt Whitlock
Modified: 2018-11-21 18:08 UTC (History)
2 users (show)

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


Attachments
ebuild patch that fixes the Makefile (fix-611130.patch,380 bytes, patch)
2017-02-27 18:57 UTC, Matt Whitlock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2017-02-27 18:56:00 UTC
Due to an underspecified Makefile target prerequisite, a parallel make of app-misc/screen can fail in this way:

cp ./utf8encodings/?? /var/tmp/portage/app-misc/screen-4.5.1/image//usr/share/screen/utf8encodings
cp: target '/var/tmp/portage/app-misc/screen-4.5.1/image//usr/share/screen/utf8encodings' is not a directory
make: *** [Makefile:92: install_bin] Error 1
make: *** Waiting for unfinished jobs....
mkdir /var/tmp/portage/app-misc/screen-4.5.1/image//usr/share/screen
mkdir /var/tmp/portage/app-misc/screen-4.5.1/image//usr/share/screen/utf8encodings

This occurs because the "install_bin" Makefile target does not directly require the "installdirs" target. The "install" target requires "installdirs install_bin", but this does not guarantee that "installdirs" will complete before "install_bin" begins.

A solution is to add "installdirs" as a prerequisite of the "install_bin" target.
Comment 1 Matt Whitlock 2017-02-27 18:57:15 UTC
Created attachment 465436 [details, diff]
ebuild patch that fixes the Makefile
Comment 2 Sven Wegener gentoo-dev 2018-11-21 18:08:41 UTC
Thanks for submitting your patch directly to upstream. This was included in screen-4.6.1.