-
Notifications
You must be signed in to change notification settings - Fork 19
The generated Makefile has a bug #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@lopippo The command that creates the error in line 1 of your listing is |
Does not look like a bugt to me, so closing as INVALID. |
Hello. Original reporter here. I still can reproduce the error in "make install", and could even offer a VM to reproduce if necessary. I think the problem is that bindir is missing from INSTALLDIRS. Here is a better patch which makes the change to Makefile.am, where it belongs:
Edit: I have extensively tested the patch above and it fixes the problem. This seems to be a race condition, where this line could be executed before usr/bin is created:
in which case usr/bin becomes a real file and the mkdir -p which is executed later fails. Could this issue be reopened, please? Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Greetings,
this is the report I had from a Debian Fellow of mine who encountered a build failure due to parallel execution of the Makefile target install:
The make -j2 install DESTDIR=/<>/daps-3.3.2+cleaned1/debian/daps AM_UPDATE_INFO_DIR=no command apparently fails like so:
This happened because the line saying:
install -m755 autobuild/daps-autobuild /<<PKGBUILDDIR>>/debian/daps/usr/bin
was executed by "accident" when "debian/daps/usr/bin" did not yet exist,
making "debian/daps/usr/bin" really to be a copy of "autobuild/daps-autobuild".
So, when Makefile tries to create debian/daps/usr/bin as a directory,
it fails because it's already a file.
Apparently, my Debian Fellow suggests this workaround fixes the issue:
But I actually wonder if the best solution would not be to remove the -j2 flag from the make command line.
Sincerely,
Filippo
The text was updated successfully, but these errors were encountered: