Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 611130

Summary: app-misc/screen-4.5.1: parallel "make install" fails due to underspecified target prerequisites
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: Current packagesAssignee: Sven Wegener <swegener>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, shell-tools
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch that fixes the Makefile

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.