Skip to content
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

erlsvc regression: No rule to make target 'test_dynamic' #305

Closed
ntyni opened this issue Jun 25, 2017 · 5 comments
Closed

erlsvc regression: No rule to make target 'test_dynamic' #305

ntyni opened this issue Jun 25, 2017 · 5 comments

Comments

@ntyni
Copy link

ntyni commented Jun 25, 2017

Recent versions of EU::MM seem to have broken the erlsvc build. It now fails at 'make test' with

% make test
make[1]: Entering directory '/home/niko/tmp/erlsvc/share'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/niko/tmp/erlsvc/share'
make[1]: Entering directory '/home/niko/tmp/erlsvc/share'
make[1]: *** No rule to make target 'test_dynamic'. Stop.
make[1]: Leaving directory '/home/niko/tmp/erlsvc/share'
Makefile:937: recipe for target 'subdirs-test_dynamic' failed
make: *** [subdirs-test_dynamic] Error 2

This was observed while test rebuilding Debian packages with Perl 5.26.0. The test suite works fine with 5.24.

I've tested that this still happens with current EU::MM as of commit 565c2df. I've bisected that this regressed with 0c38f37.

We haven't seen similar failures in other packages. Is erlsvc doing something unsupported here?

@Leont
Copy link
Member

Leont commented Jun 25, 2017

MakeMaker is expecting all recursive Makefile.PLs to have test_dynamic target in recent versions of MakeMaker, where old versions would use test. The Makefile.PL In share/ is entirely custom instead of using MakeMaker, so it doesn't have this new target. The quick fix would be to add it as a noop (as test already is).

@karenetheridge
Copy link
Member

karenetheridge commented Jun 25, 2017 via email

@Leont
Copy link
Member

Leont commented Jun 26, 2017

share/Makefile.PL can go away entirely with the proper use of File::ShareDir::Install in the top level Makefile.PL

It would also need a postamble, for compiling the .erls to .beam.

@jmdh
Copy link
Contributor

jmdh commented Jun 27, 2017

Thanks, we've passed these suggestions onto the Debian maintainer of erlsvc.

@rbalint
Copy link

rbalint commented Jul 2, 2017

Thanks All, I rewrote Makefile.PL-s in erlsvc.

@bingos bingos closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants