Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Build with gmake < 4 broken: missing separator #9387
Comments
|
I don't know of other way to make it compatible with BSD make, so we'll have to think something. Note that gmake 4.0 was released in 2013, so it's not something really new. |
|
The following syntax:
Works on GNU make 4.1, too. Does it work on GNU make 3.81 and/or BSD make? |
|
No, SYSCONFDIR = $$(if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)but that means it gets executed each time you write |
If we want to support GNU make 3.x as well as BSD make it's inevitable. And it seems harmless to youtube-dl as the Makefile is quite small. |
|
@jengelh it should just work, but could you check if it works with this change in GNU make 3.x? |
|
@bdeyal Could you change the offending line:
To the new syntax proposed in #9387 (comment) and check whether the old make on CentOS works or not? |
|
Works OK. I use master with git hash 0a33bb2 changed 2 locations. First is the line you gave above (line 15) and second at line 93: I tested a single download, works OK. |
|
Thanks. I'll check the changes on BSD make before commiting. |
|
It works fine with NetBSD make too (version 20150910, called bmake in Fedora) on both versions (before and after change in Makefile) |
|
Oh thanks! Which Fedora version did you test with? And which version of make does CentOS comes with, 3.81 or 3.82? |
|
CentOS 7.2 comes with make 3.82 Took the source rpm from here: |
|
Thanks for helping on tests. Fixed. |
|
Reverted my last change as breaking lazy extractors. Sorry for not having checked everything well. |
|
Then I don't think it can be made to support both old gmake versions and bmake. I don't mind dropping support for bmake, I just thought it would be nice to have it. |
|
OK. Dropped BSD make support as installing gmake on *BSD systems seems quite easy. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.05.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
When buliding under openSUSE 13.1 with (GNU) make-3.82, or SLES 11 with GNU make-3.81, the build fails:
It appears that the
variable != valuesyntax as introduced by commit 3ff63fb is not supported with make 3.x, but only 4.0 and up.