I have discovered why many MinGW installs can no longer build ffmpeg
Hi, I'm new to ffmpeg development; hello everyone! Back in April the ffmpeg makefiles were splendidly re-engineered by M?ns Rullg?rd to be non-recursive (and and much rejoicing was heard throughout the land, apparently.) http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-April/045168.html At the time testers reported current MinGW installs failing to build with the new makefiles. The poster's problem was resolved by changing their version of make to a specific version: mingw32-make-3.81-2 (not the current version). The cause of the problem wasn't found. I have discovered a cause: MinGW make version 3.79.1 (and earlier?) cannot handle calling a macro within a foreach statement. And this construct is used by the new non-recursive makefiles. Specifically: define DOSUBDIR $(foreach V,$(SUBDIR_VARS),$(eval $(call RESET,$(V)))) SUBDIR := $(1)/ include $(1)/Makefile endef $(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D)))) Fails silently (ouch) -- the include statement is never executed. The new system depends on the above code: the Makefiles in the subdirectories include the toplevel subdir.mak where the rules for building the libraries are located. This is why Axel Holzinger was reporting "make: *** No rule to make target `libavdevice/libavdevice.a', needed by `all'. Stop." This is a bit of an issue because the (complex, error prone) official MinGW installation instructions yield make 3.79.1 Some later versions of MinGW make can be shown not have this bug: mingw32-make-3.81-2 make-3.81-MSYS-1.0.11-2.tar.bz2 But apparently the current release has different (breaking) bugs: mingw32-make-3.81-20080326 This is a horrible situation for those of us trying to build ffmpeg on MinGW. It would be good if we could put a note about the issue somewhere -- perhaps in the README? I think a lot of people could be wasting time over this one, given the "standard" MinGW install is affected. I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in? Regards, Chris Cormie Index: configure =================================================================== --- configure (revision 14784) +++ configure (working copy) @@ -221,7 +221,7 @@ solving the problem. EOF fi - rm -f $TMPC $TMPE $TMPH $TMPO $TMPS $TMPSH + rm -f $TMPC $TMPE $TMPH $TMPO $TMPS $TMPSH $TMPM exit 1 } @@ -592,6 +592,13 @@ EOF } +check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} + require(){ name="$1" header="$2" @@ -1124,6 +1131,7 @@ TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak" check_cflags -fasm check_cflags -std=c99 @@ -1262,6 +1270,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)' FFSERVERLDFLAGS=-Wl,-bind_at_load objformat="macho" + enabled x86_64 && objformat="macho64" ;; mingw32*) target_os=mingw32 @@ -1561,6 +1570,7 @@ enabled_all x86_64 shared && append YASMFLAGS "-DPIC" case "$objformat" in elf) enabled debug && append YASMFLAGS "-g dwarf2" ;; + macho64) append YASMFLAGS "-DPIC -DPREFIX" ;; *) append YASMFLAGS "-DPREFIX" ;; esac check_yasm "pabsw xmm0, xmm0" && enable yasm @@ -1693,6 +1703,22 @@ EOF done +# Check for broken MinGW make +check_make <<'EOF' || die "Broken make utility. If using MinGW try a later version of make. make-3.81-MSYS-1.0.11-2 is known to work." +define a + $(eval var = val) +endef +TEST_LIST = a b +$(foreach D, $(TEST_LIST),$(eval($(call a)))) +all: +ifeq ($(var),val) + @exit 0 +else + @exit 1 +endif +EOF + + # these are off by default, so fail if requested and not available enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32 enabled liba52 && require liba52 a52dec/a52.h a52_init -la52
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in?
Cosmetic review below.
Regards, Chris Cormie
Index: configure =================================================================== --- configure (revision 14784) +++ configure (working copy) @@ -221,7 +221,7 @@ solving the problem. EOF fi - rm -f $TMPC $TMPE $TMPH $TMPO $TMPS $TMPSH + rm -f $TMPC $TMPE $TMPH $TMPO $TMPS $TMPSH $TMPM exit 1 }
@@ -592,6 +592,13 @@ EOF }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} + require(){ name="$1" header="$2" @@ -1124,6 +1131,7 @@ TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak"
check_cflags -fasm check_cflags -std=c99
Vertical align.
@@ -1262,6 +1270,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)' FFSERVERLDFLAGS=-Wl,-bind_at_load objformat="macho" + enabled x86_64 && objformat="macho64" ;; mingw32*) target_os=mingw32 @@ -1561,6 +1570,7 @@ enabled_all x86_64 shared && append YASMFLAGS "-DPIC" case "$objformat" in elf) enabled debug && append YASMFLAGS "-g dwarf2" ;; + macho64) append YASMFLAGS "-DPIC -DPREFIX" ;; *) append YASMFLAGS "-DPREFIX" ;; esac check_yasm "pabsw xmm0, xmm0" && enable yasm
Stray hunks? Unrelated and already in SVN IIRC. Regards, R. -- MPlayer http://mplayerhq.hu | Livna http://rpm.livna.org There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
On date Wednesday 2008-08-20 10:45:35 +0200, Dominik 'Rathann' Mierzejewski encoded:
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in?
Cosmetic review below.
Regards, Chris Cormie
Index: configure =================================================================== --- configure (revision 14784) +++ configure (working copy) @@ -221,7 +221,7 @@ solving the problem. EOF fi - rm -f $TMPC $TMPE $TMPH $TMPO $TMPS $TMPSH + rm -f $TMPC $TMPE $TMPH $TMPO $TMPS $TMPSH $TMPM exit 1 }
@@ -592,6 +592,13 @@ EOF }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} + require(){ name="$1" header="$2" @@ -1124,6 +1131,7 @@ TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak"
check_cflags -fasm check_cflags -std=c99
Vertical align.
@@ -1262,6 +1270,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)' FFSERVERLDFLAGS=-Wl,-bind_at_load objformat="macho" + enabled x86_64 && objformat="macho64" ;; mingw32*) target_os=mingw32 @@ -1561,6 +1570,7 @@ enabled_all x86_64 shared && append YASMFLAGS "-DPIC" case "$objformat" in elf) enabled debug && append YASMFLAGS "-g dwarf2" ;; + macho64) append YASMFLAGS "-DPIC -DPREFIX" ;; *) append YASMFLAGS "-DPREFIX" ;; esac check_yasm "pabsw xmm0, xmm0" && enable yasm
Stray hunks? Unrelated and already in SVN IIRC.
I'm reviving this patch. I considered the possibility of checking the version of make, but to check for the version of a program parsing the --version output is a braindead solution, furthermore we have to check here for the bugged behaviour rather than for the version. I just removed the stray hunk and applied some other cosmetics. Regards. -- FFmpeg = Faboulous & Fiendish Martial Porno Enlightened Gangster
Stefano Sabatini wrote:
On date Wednesday 2008-08-20 10:45:35 +0200, Dominik 'Rathann' Mierzejewski encoded:
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in? [...] I'm reviving this patch.
I considered the possibility of checking the version of make, but to check for the version of a program parsing the --version output is a braindead solution, furthermore we have to check here for the bugged behaviour rather than for the version.
I just removed the stray hunk and applied some other cosmetics.
[...]
@@ -619,6 +619,13 @@ check_lib $header $func "$@" || die "ERROR: $name not found" }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} +
Why "make"? What if the user wants to use make-3.81.exe, or gmake?
require2(){ name="$1" headers="$2" @@ -1139,6 +1146,7 @@ TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak" TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" @@ -1716,6 +1724,23 @@ EOF done
+check_make <<'EOF' || \ +die "ERROR: broken make utility. If using MinGW try a later version of +make. make-3.81-MSYS-1.0.11-2 is known to work."
Is this bug only present on msys make? Is it not also on Linux or some other system? The version known to work is on the documentation, so there's no need to put it here again. Checking on configure isn't a good idea because we don't know what make the user will call. Maybe a better place to test would be in some makefile... I agree that we should check for buggy makes though... Ramiro Polla
On date Wednesday 2008-10-22 20:18:00 -0200, Ramiro Polla encoded:
Stefano Sabatini wrote:
On date Wednesday 2008-08-20 10:45:35 +0200, Dominik 'Rathann' Mierzejewski encoded:
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in? [...] I'm reviving this patch.
I considered the possibility of checking the version of make, but to check for the version of a program parsing the --version output is a braindead solution, furthermore we have to check here for the bugged behaviour rather than for the version.
I just removed the stray hunk and applied some other cosmetics.
[...]
@@ -619,6 +619,13 @@ check_lib $header $func "$@" || die "ERROR: $name not found" }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} +
Why "make"? What if the user wants to use make-3.81.exe, or gmake?
require2(){ name="$1" headers="$2" @@ -1139,6 +1146,7 @@ TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak" TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" @@ -1716,6 +1724,23 @@ EOF done
+check_make <<'EOF' || \ +die "ERROR: broken make utility. If using MinGW try a later version of +make. make-3.81-MSYS-1.0.11-2 is known to work."
Is this bug only present on msys make? Is it not also on Linux or some other system?
I have no idea, all that I know is that GNU make 3.79.1 doesn't work on Windows, GNU Make 3.81 works on both.
The version known to work is on the documentation, so there's no need to put it here again.
Not a string opinion on this, but I think print a working make version here may slightly simplify the life to the user (no need to check documentation), but if someone insists I'll drop the reference to a working make version.
Checking on configure isn't a good idea because we don't know what make the user will call. Maybe a better place to test would be in some makefile...
Perfectly fine point.
I agree that we should check for buggy makes though...
New version attached. Regards. -- FFmpeg = Forgiving and Fostering Multimedia Pitiless Erudite Geisha
On date Sunday 2008-10-26 11:00:12 +0100, Stefano Sabatini encoded:
On date Wednesday 2008-10-22 20:18:00 -0200, Ramiro Polla encoded:
Stefano Sabatini wrote:
On date Wednesday 2008-08-20 10:45:35 +0200, Dominik 'Rathann' Mierzejewski encoded:
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in? [...] I'm reviving this patch.
I considered the possibility of checking the version of make, but to check for the version of a program parsing the --version output is a braindead solution, furthermore we have to check here for the bugged behaviour rather than for the version.
I just removed the stray hunk and applied some other cosmetics.
[...]
@@ -619,6 +619,13 @@ check_lib $header $func "$@" || die "ERROR: $name not found" }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} +
Why "make"? What if the user wants to use make-3.81.exe, or gmake?
require2(){ name="$1" headers="$2" @@ -1139,6 +1146,7 @@ TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak" TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" @@ -1716,6 +1724,23 @@ EOF done
+check_make <<'EOF' || \ +die "ERROR: broken make utility. If using MinGW try a later version of +make. make-3.81-MSYS-1.0.11-2 is known to work."
Is this bug only present on msys make? Is it not also on Linux or some other system?
I have no idea, all that I know is that GNU make 3.79.1 doesn't work on Windows, GNU Make 3.81 works on both.
The version known to work is on the documentation, so there's no need to put it here again.
Not a string opinion on this, but I think print a working make version here may slightly simplify the life to the user (no need to check documentation), but if someone insists I'll drop the reference to a working make version.
Checking on configure isn't a good idea because we don't know what make the user will call. Maybe a better place to test would be in some makefile...
Perfectly fine point.
I agree that we should check for buggy makes though...
New version attached. [...]
Sligthy simplified. Please check it, regards. -- FFmpeg = Faboulous and Fostering Martial Powered Eretic Guru
On date Monday 2008-10-27 21:27:07 +0100, Stefano Sabatini encoded:
On date Sunday 2008-10-26 11:00:12 +0100, Stefano Sabatini encoded:
On date Wednesday 2008-10-22 20:18:00 -0200, Ramiro Polla encoded:
Stefano Sabatini wrote:
On date Wednesday 2008-08-20 10:45:35 +0200, Dominik 'Rathann' Mierzejewski encoded:
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in? [...] I'm reviving this patch.
I considered the possibility of checking the version of make, but to check for the version of a program parsing the --version output is a braindead solution, furthermore we have to check here for the bugged behaviour rather than for the version.
I just removed the stray hunk and applied some other cosmetics.
[...]
@@ -619,6 +619,13 @@ check_lib $header $func "$@" || die "ERROR: $name not found" }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} +
Why "make"? What if the user wants to use make-3.81.exe, or gmake?
require2(){ name="$1" headers="$2" @@ -1139,6 +1146,7 @@ TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak" TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" @@ -1716,6 +1724,23 @@ EOF done
+check_make <<'EOF' || \ +die "ERROR: broken make utility. If using MinGW try a later version of +make. make-3.81-MSYS-1.0.11-2 is known to work."
Is this bug only present on msys make? Is it not also on Linux or some other system?
I have no idea, all that I know is that GNU make 3.79.1 doesn't work on Windows, GNU Make 3.81 works on both.
The version known to work is on the documentation, so there's no need to put it here again.
Not a string opinion on this, but I think print a working make version here may slightly simplify the life to the user (no need to check documentation), but if someone insists I'll drop the reference to a working make version.
Checking on configure isn't a good idea because we don't know what make the user will call. Maybe a better place to test would be in some makefile...
Perfectly fine point.
I agree that we should check for buggy makes though...
New version attached. [...]
Sligthy simplified.
Please check it, regards. -- FFmpeg = Faboulous and Fostering Martial Powered Eretic Guru
Index: check-make.mak =================================================================== --- check-make.mak (revision 0) +++ check-make.mak (revision 0) @@ -0,0 +1,14 @@ +# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour +define a + $(eval var = val) +endef + +TEST_LIST = a b +$(foreach D,$(TEST_LIST),$(eval($(call a)))) + +all: +ifneq ($(var),val) + @echo "Broken make utility detected. GNU make 3.81 is known to work, try with that." + @exit 1 +endif Index: Makefile =================================================================== --- Makefile (revision 15731) +++ Makefile (working copy) @@ -40,8 +40,11 @@ endif INSTALL_PROGS_TARGETS-$(BUILD_SHARED) = install-libs
-all: $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes) +all: check-make $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes)
+check-make: + @$(MAKE) -f check-make.mak + $(PROGS): %$(EXESUF): %_g$(EXESUF) cp -p $< $@ $(STRIP) $@
I'll apply at the end of the next weekend if I hear no objections. Regards. -- FFmpeg = Fantastic and Forgiving Martial Power Extravagant Geisha
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections.
You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly. -- M?ns Rullg?rd mans at mansr.com
On date Thursday 2008-10-30 20:31:03 +0000, M?ns Rullg?rd encoded:
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections.
You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly.
They're not "threats", I'm just trying to get some work done. And if you can't review the patch for some reason just tell it and I'll wait. Regards. -- FFmpeg = Furious Fantastic Minimalistic Pitiless Everlasting Gymnast
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
On date Thursday 2008-10-30 20:31:03 +0000, M?ns Rullg?rd encoded:
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections.
You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly.
They're not "threats", I'm just trying to get some work done. And if
Anything of the form "unless you foo, I will bar" is a threat. That's the definition. As to "getting some work done," there are plenty of other things you can do. The make check is not at all important, and affects only a small minority of users.
you can't review the patch for some reason just tell it and I'll wait.
What if I, for whatever reason, can't tell you to wait? Absent an explicit approval, patches should always be treated as implicitly rejected. -- M?ns Rullg?rd mans at mansr.com
M?ns Rullg?rd wrote:
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections.
You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly.
I find it a little bewildering (and possibly somewhat unfriendly) that you interpret these as threats. They have been standard-use boilerplate the entire time I've been watching MPlayer and FFmpeg development, and are an apparently highly useful - perhaps even indispensable - tool for avoiding having patches lie there indefinitely neither approved nor rejected; I seem to recall that they have led to the takeover of maintainership (when a previous maintainer had left without fanfare) on at least one occasion. You are the first person I remember having seen treat them as at all unusual, and I do not recall having seen any hint of your doing so until very recently. Why do you find them objectionable - particularly given that it's very easy to say "no" in any given case - much less consider them threatening? Why did you not do so before? How would you recommend A: ensuring that patches which have been submitted and received no response are not ignored, and B: not leaving submitters of such patches in limbo with no idea about whether or not their patch has even been looked at? Simply pinging is not effective in all cases; treating a long enough lack of reaction as unanimous consent, with an advance warning such as this one that that is what is being done, does seem to be enough. (There are arguments against it in many cases, of course, but I don't see how they're enough to justify a blanket ban on the practice...) -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny.
The Wanderer wrote:
M?ns Rullg?rd wrote:
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections. You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly.
I find it a little bewildering (and possibly somewhat unfriendly) that you interpret these as threats.
No, I do take these as threats too.
They have been standard-use boilerplate the entire time I've been watching MPlayer and FFmpeg development, and are an apparently highly useful - perhaps even indispensable - tool for avoiding having patches lie there indefinitely neither approved nor rejected;
Well, I didn't feel this was the standard use since 3 years on FFmpeg development, I don't know about Mplayer though.
[...]
Why do you find them objectionable - particularly given that it's very easy to say "no" in any given case - much less consider them threatening? Why did you not do so before?
This is called the quiet majority. I do think like Mans too. [...] -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Smartjog USA Inc. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
The Wanderer <inverseparadox at comcast.net> writes:
M?ns Rullg?rd wrote:
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections.
You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly.
I find it a little bewildering (and possibly somewhat unfriendly) that you interpret these as threats. They have been standard-use boilerplate the entire time I've been watching MPlayer and FFmpeg development, and
This type of threats have seen occasional use for a long time. However, in the last year or so, they have become ever more frequent, to the point where I am now thoroughly annoyed by them. Not only has the number increased, the time from patch to threat has steadily decreased, and is now down to a mere couple of days.
are an apparently highly useful - perhaps even indispensable - tool for
I do agree there are instances where such an approach is probably the best course of action. It should, however, be an exception, not the rule.
avoiding having patches lie there indefinitely neither approved nor rejected; I seem to recall that they have led to the takeover of maintainership (when a previous maintainer had left without fanfare) on
That is a prime example of when *not* to deploy threats of this sort. Code being abandoned by its maintainer is not an open door for patches to be applied without approval; it is a call for a new maintainer. Until a new maintainer is appointed, patches may be approved by someone else with the relevant knowledge, or they will simply have to wait.
at least one occasion. You are the first person I remember having seen treat them as at all unusual, and I do not recall having seen any hint of your doing so until very recently.
I have put up with it for a while, but I am tiring of constantly rushing to veto patches that otherwise will get applied without approval.
Why do you find them objectionable - particularly given that it's very easy to say "no" in any given case - much less consider them threatening? Why did you not do so before?
It is the need, not so much as the act, to say "no" to which I object.
How would you recommend A: ensuring that patches which have been submitted and received no response are not ignored, and
Firstly, a few days before a response is perfectly normal. Secondly, the traffic volume on the mailing lists is high enough that a patch can easily be missed, so a friendly ping before threatening to commit is in order.
B: not leaving submitters of such patches in limbo with no idea about whether or not their patch has even been looked at? Simply pinging is not effective in all cases; treating a long enough lack of reaction as unanimous consent, with an advance warning such as this one that that is what is being done, does seem to be enough.
A lack of reaction could mean just about anything. Treating it as unanimous consent would be a mistake. It could equally well indicate that nobody cares about the issue enough to look at the patch; the patch could still be riddled with bugs.
(There are arguments against it in many cases, of course, but I don't see how they're enough to justify a blanket ban on the practice...)
I am not trying to impose a blanket ban. I am only placing a ban on this practice for build system related changes. -- M?ns Rullg?rd mans at mansr.com
On date Friday 2008-10-31 18:32:32 +0000, M?ns Rullg?rd encoded:
The Wanderer <inverseparadox at comcast.net> writes:
M?ns Rullg?rd wrote:
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I'll apply at the end of the next weekend if I hear no objections.
You will do no such thing. I have already said that any changes to the build system need my explicit approval. Please cease making these threats. I find it quite unfriendly.
I find it a little bewildering (and possibly somewhat unfriendly) that you interpret these as threats. They have been standard-use boilerplate the entire time I've been watching MPlayer and FFmpeg development, and
This type of threats have seen occasional use for a long time. However, in the last year or so, they have become ever more frequent, to the point where I am now thoroughly annoyed by them. Not only has the number increased, the time from patch to threat has steadily decreased, and is now down to a mere couple of days.
are an apparently highly useful - perhaps even indispensable - tool for
I do agree there are instances where such an approach is probably the best course of action. It should, however, be an exception, not the rule.
avoiding having patches lie there indefinitely neither approved nor rejected; I seem to recall that they have led to the takeover of maintainership (when a previous maintainer had left without fanfare) on
That is a prime example of when *not* to deploy threats of this sort. Code being abandoned by its maintainer is not an open door for patches to be applied without approval; it is a call for a new maintainer. Until a new maintainer is appointed, patches may be approved by someone else with the relevant knowledge, or they will simply have to wait.
at least one occasion. You are the first person I remember having seen treat them as at all unusual, and I do not recall having seen any hint of your doing so until very recently.
I have put up with it for a while, but I am tiring of constantly rushing to veto patches that otherwise will get applied without approval.
Why do you find them objectionable - particularly given that it's very easy to say "no" in any given case - much less consider them threatening? Why did you not do so before?
It is the need, not so much as the act, to say "no" to which I object.
How would you recommend A: ensuring that patches which have been submitted and received no response are not ignored, and
Firstly, a few days before a response is perfectly normal. Secondly, the traffic volume on the mailing lists is high enough that a patch can easily be missed, so a friendly ping before threatening to commit is in order.
B: not leaving submitters of such patches in limbo with no idea about whether or not their patch has even been looked at? Simply pinging is not effective in all cases; treating a long enough lack of reaction as unanimous consent, with an advance warning such as this one that that is what is being done, does seem to be enough.
A lack of reaction could mean just about anything. Treating it as unanimous consent would be a mistake. It could equally well indicate that nobody cares about the issue enough to look at the patch; the patch could still be riddled with bugs.
(There are arguments against it in many cases, of course, but I don't see how they're enough to justify a blanket ban on the practice...)
I am not trying to impose a blanket ban. I am only placing a ban on this practice for build system related changes.
I still believe that that such a practice can still be useful in some cases, for example when: 1) the patch has been thorouhghly discussed 2) more than one ping have been sent with no maintainer reaction 3) the patch is fairly trivial In these cases I think the practice is not evil, since it decreases the contributor frustration due to its work not being applied. Most patches of mine belong to this category so maybe I misused of this practice, sorry if this is the case, it wasn't my intention at all to be unfriendly. But I also agree that the application delay time should maybe be longer than three days in the case the maintainer cannot reply for whatever reason, also maybe every maintainer should decide for the components he maintains, assuming he can actively maintains them. Regards. -- FFmpeg = Frightening Fostering Monstrous Powered Egregious Game
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
I still believe that that such a practice can still be useful in some cases, for example when:
1) the patch has been thorouhghly discussed
This also suggests that the patch is controversial, and committing controversial changes without approval is definitely not good.
2) more than one ping have been sent with no maintainer reaction
All that means is that nobody wants or has time to look at it. It does *NOT* magically make the patch correct. If a maintainer vanishes, a new one must be appointed.
3) the patch is fairly trivial
What seems trivial to the patch author might still be wrong.
In these cases I think the practice is not evil, since it decreases the contributor frustration due to its work not being applied.
Most patches of mine belong to this category so maybe I misused of this practice, sorry if this is the case, it wasn't my intention at all to be unfriendly.
I never believed it was your intention to be unfriendly. Please don't take my complaints personally. Your contributions are valuable, even if they sometimes need a few adjustments before being committed. -- M?ns Rullg?rd mans at mansr.com
(Sorry for the delayed reply; I'm probably getting unnecessarily neurotic.) M?ns Rullg?rd wrote:
The Wanderer <inverseparadox at comcast.net> writes:
I find it a little bewildering (and possibly somewhat unfriendly) that you interpret these as threats. They have been standard-use boilerplate the entire time I've been watching MPlayer and FFmpeg development, and
This type of threats have seen occasional use for a long time. However, in the last year or so, they have become ever more frequent, to the point where I am now thoroughly annoyed by them. Not only has the number increased, the time from patch to threat has steadily decreased, and is now down to a mere couple of days.
I do remember quite a few cases where the "will apply in X days if no objection is heard" came at the same time as the patch itself. However, now that I think about it, those may have been for files which had no listed maintainer, which would of course be handled differently.
are an apparently highly useful - perhaps even indispensable - tool for
I do agree there are instances where such an approach is probably the best course of action. It should, however, be an exception, not the rule.
Conceded. The question then becomes at what point that approach should be resorted to.
avoiding having patches lie there indefinitely neither approved nor rejected; I seem to recall that they have led to the takeover of maintainership (when a previous maintainer had left without fanfare) on
That is a prime example of when *not* to deploy threats of this sort. Code being abandoned by its maintainer is not an open door for patches to be applied without approval; it is a call for a new maintainer. Until a new maintainer is appointed, patches may be approved by someone else with the relevant knowledge, or they will simply have to wait.
And if no one else has (or appears to have) the relevant knowledge, and there are no apparent candidates for replacement maintainer? If memory serves, this technique was first used (that I saw) A: by Diego on the MPlayer lists and B: for files which in fact had no maintainer, as a way of getting consensus approval for them rather than leaving them in Limbo until such hypothetical time as a maintainer might appear.
at least one occasion. You are the first person I remember having seen treat them as at all unusual, and I do not recall having seen any hint of your doing so until very recently.
I have put up with it for a while, but I am tiring of constantly rushing to veto patches that otherwise will get applied without approval.
Why do you find them objectionable - particularly given that it's very easy to say "no" in any given case - much less consider them threatening? Why did you not do so before?
It is the need, not so much as the act, to say "no" to which I object.
Hmm. It occurs to me that the tone of the objections is probably part of what I am reacting to. All of your objections which I remember seeing posted seemed to be to be somewhat belligerent or antagonistic in tone, and the use of the (objectively perhaps applicable) term "threats" probably did contribute to that. I would probably have found objections more along the lines of "please don't do that kind of thing for the build system" to be less hostile and/or offensive, to the point where I might not even have remembered your making them. Did you by any chance do so? I suspect that I have something of a hair-trigger negative reaction these days to anything which I perceive as authoritarian issuing of orders, as opposed to e.g. making of requests, and it is entirely possible that that is a major reason I reacted the way I did.
How would you recommend A: ensuring that patches which have been submitted and received no response are not ignored, and
Firstly, a few days before a response is perfectly normal. Secondly, the traffic volume on the mailing lists is high enough that a patch can easily be missed, so a friendly ping before threatening to commit is in order.
Acknowledged and agreed. (Though, in this case, the "few days" had already passed...)
B: not leaving submitters of such patches in limbo with no idea about whether or not their patch has even been looked at? Simply pinging is not effective in all cases; treating a long enough lack of reaction as unanimous consent, with an advance warning such as this one that that is what is being done, does seem to be enough.
A lack of reaction could mean just about anything. Treating it as unanimous consent would be a mistake. It could equally well indicate that nobody cares about the issue enough to look at the patch; the patch could still be riddled with bugs.
All of those things are true. None of them seem to address the problem; at least two of them may in fact be part of the problem.
(There are arguments against it in many cases, of course, but I don't see how they're enough to justify a blanket ban on the practice...)
I am not trying to impose a blanket ban. I am only placing a ban on this practice for build system related changes.
I would still consider that a "blanket ban" - it blankets only the build system, but it's still across-the-board and unconditional within that category. It also imposes the overhead for people who might make such a post of checking "does this patch touch any areas which are under such a ban?", without any clear indication (except mailing list history) of what those areas might be; the most practical way of not violating such a ban would be to never make such posts at all, which would effectively eliminate the practice in far more than just the build system. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny.
On Mon, Oct 27, 2008 at 09:27:07PM +0100, Stefano Sabatini wrote:
On date Sunday 2008-10-26 11:00:12 +0100, Stefano Sabatini encoded:
On date Wednesday 2008-10-22 20:18:00 -0200, Ramiro Polla encoded:
Stefano Sabatini wrote:
On date Wednesday 2008-08-20 10:45:35 +0200, Dominik 'Rathann' Mierzejewski encoded:
On Wednesday, 20 August 2008 at 09:46, Chris Cormie wrote: [...]
I've also got a patch for configure that catches the 3.79.1 bug and warns the developer (below.) Could this be considered for testing and merging in? [...] I'm reviving this patch.
I considered the possibility of checking the version of make, but to check for the version of a program parsing the --version output is a braindead solution, furthermore we have to check here for the bugged behaviour rather than for the version.
I just removed the stray hunk and applied some other cosmetics.
[...]
@@ -619,6 +619,13 @@ check_lib $header $func "$@" || die "ERROR: $name not found" }
+check_make(){ + log check_make "$@" + cat >$TMPM + log_file $TMPM + check_cmd make -f $TMPM +} +
Why "make"? What if the user wants to use make-3.81.exe, or gmake?
require2(){ name="$1" headers="$2" @@ -1139,6 +1146,7 @@ TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" +TMPM="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.mak" TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" @@ -1716,6 +1724,23 @@ EOF done
+check_make <<'EOF' || \ +die "ERROR: broken make utility. If using MinGW try a later version of +make. make-3.81-MSYS-1.0.11-2 is known to work."
Is this bug only present on msys make? Is it not also on Linux or some other system?
I have no idea, all that I know is that GNU make 3.79.1 doesn't work on Windows, GNU Make 3.81 works on both.
The version known to work is on the documentation, so there's no need to put it here again.
Not a string opinion on this, but I think print a working make version here may slightly simplify the life to the user (no need to check documentation), but if someone insists I'll drop the reference to a working make version.
Checking on configure isn't a good idea because we don't know what make the user will call. Maybe a better place to test would be in some makefile...
Perfectly fine point.
I agree that we should check for buggy makes though...
New version attached. [...]
Sligthy simplified.
Please check it, regards.
I have very mixed feelings about this.
--- check-make.mak (revision 0) +++ check-make.mak (revision 0)
I don't like a separate file for this at the top level.
@@ -0,0 +1,14 @@ +# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior Also, this is not at all specific to MinGW, GNU make 3.81 is required everywhere. Earlier versions do not work on any system AFAIR.
+define a + $(eval var = val) +endef + +TEST_LIST = a b +$(foreach D,$(TEST_LIST),$(eval($(call a)))) + +all: +ifneq ($(var),val) + @echo "Broken make utility detected. GNU make 3.81 is known to work, try with that."
It's not known to work, it's required.
--- Makefile (revision 15731) +++ Makefile (working copy) @@ -40,8 +40,11 @@
-all: $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes) +all: check-make $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes)
+check-make: + @$(MAKE) -f check-make.mak
Once again, very mixed feelings. I'm not sure if this is worth all the clutter. The place to detect such a thing is configure, if at all. Diego
--- On Thu, 30/10/08, Diego Biurrun <diego at biurrun.de> wrote:
From: Diego Biurrun <diego at biurrun.de> Subject: Re: [FFmpeg-devel] [PATCH] Check for bugged make To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu> Date: Thursday, 30 October, 2008, 10:01 PM [...]
+# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior
"Behavior" is the US spelling, "Behaviour" is the UK spelling. There's nothing wrong with what was originally written. I personally would have the latter, but I don't know the documentation and comment conventions throughout the project. Regards, Jethro Walters
On Fri, Oct 31, 2008 at 12:53:45AM +0000, Jethro Walters wrote:
--- On Thu, 30/10/08, Diego Biurrun <diego at biurrun.de> wrote:
From: Diego Biurrun <diego at biurrun.de> Subject: Re: [FFmpeg-devel] [PATCH] Check for bugged make To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu> Date: Thursday, 30 October, 2008, 10:01 PM [...]
+# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior
"Behavior" is the US spelling, "Behaviour" is the UK spelling. There's nothing wrong with what was originally written.
I know.
I personally would have the latter, but I don't know the documentation and comment conventions throughout the project.
American English Diego
Diego Biurrun <diego at biurrun.de> writes:
On Fri, Oct 31, 2008 at 12:53:45AM +0000, Jethro Walters wrote:
--- On Thu, 30/10/08, Diego Biurrun <diego at biurrun.de> wrote:
From: Diego Biurrun <diego at biurrun.de> Subject: Re: [FFmpeg-devel] [PATCH] Check for bugged make To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu> Date: Thursday, 30 October, 2008, 10:01 PM [...]
+# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior
"Behavior" is the US spelling, "Behaviour" is the UK spelling. There's nothing wrong with what was originally written.
I know.
I personally would have the latter, but I don't know the documentation and comment conventions throughout the project.
American English
That's your opinion, nothing else. -- M?ns Rullg?rd mans at mansr.com
On Fri, Oct 31, 2008 at 03:26:17PM +0000, M?ns Rullg?rd wrote:
Diego Biurrun <diego at biurrun.de> writes:
On Fri, Oct 31, 2008 at 12:53:45AM +0000, Jethro Walters wrote:
--- On Thu, 30/10/08, Diego Biurrun <diego at biurrun.de> wrote:
From: Diego Biurrun <diego at biurrun.de> Subject: Re: [FFmpeg-devel] [PATCH] Check for bugged make To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu> Date: Thursday, 30 October, 2008, 10:01 PM [...]
+# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior
"Behavior" is the US spelling, "Behaviour" is the UK spelling. There's nothing wrong with what was originally written.
I know.
I personally would have the latter, but I don't know the documentation and comment conventions throughout the project.
American English
That's your opinion, nothing else.
Opinion or not, it's already been implemented throughout FFmpeg... Diego
Diego Biurrun <diego at biurrun.de> writes:
On Fri, Oct 31, 2008 at 03:26:17PM +0000, M?ns Rullg?rd wrote:
Diego Biurrun <diego at biurrun.de> writes:
On Fri, Oct 31, 2008 at 12:53:45AM +0000, Jethro Walters wrote:
--- On Thu, 30/10/08, Diego Biurrun <diego at biurrun.de> wrote:
From: Diego Biurrun <diego at biurrun.de> Subject: Re: [FFmpeg-devel] [PATCH] Check for bugged make To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu> Date: Thursday, 30 October, 2008, 10:01 PM [...]
+# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior
"Behavior" is the US spelling, "Behaviour" is the UK spelling. There's nothing wrong with what was originally written.
I know.
I personally would have the latter, but I don't know the documentation and comment conventions throughout the project.
American English
That's your opinion, nothing else.
Opinion or not, it's already been implemented throughout FFmpeg...
Yes, by you. -- M?ns Rullg?rd mans at mansr.com
On date Thursday 2008-10-30 23:01:50 +0100, Diego Biurrun encoded:
On Mon, Oct 27, 2008 at 09:27:07PM +0100, Stefano Sabatini wrote: [...]
Sligthy simplified.
Please check it, regards.
I have very mixed feelings about this.
--- check-make.mak (revision 0) +++ check-make.mak (revision 0)
I don't like a separate file for this at the top level.
@@ -0,0 +1,14 @@ +# MinGW make version 3.79.1 (and earlier?) cannot handle calling a +# macro within a foreach statement, we check for this behaviour
behavior
Also, this is not at all specific to MinGW, GNU make 3.81 is required everywhere. Earlier versions do not work on any system AFAIR.
+define a + $(eval var = val) +endef + +TEST_LIST = a b +$(foreach D,$(TEST_LIST),$(eval($(call a)))) + +all: +ifneq ($(var),val) + @echo "Broken make utility detected. GNU make 3.81 is known to work, try with that."
It's not known to work, it's required.
--- Makefile (revision 15731) +++ Makefile (working copy) @@ -40,8 +40,11 @@
-all: $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes) +all: check-make $(FF_DEP_LIBS) $(PROGS) $(ALL_TARGETS-yes)
+check-make: + @$(MAKE) -f check-make.mak
Once again, very mixed feelings.
I'm not sure if this is worth all the clutter. The place to detect such a thing is configure, if at all.
The question we have to address here is if we are *requiring* GNU make 3.81, or a compliant make utility. As Ramiro pointed out, the user may choose to use one of the many make variants, make < 3.81, remake, gmake etc, this also means that when configuring configure doesn't know which is the make the user will invoke, so there's no point into checking the "make" command. This would make sense if we're pretending the user to run explicitely the "make" command during the configuration, but I'm not sure if this is a common requirement. Furthermore, if we choose to *require* GNU make 3.81, then maybe we could simply explicitely tell this in the INSTALL file, and avoid the clutter necessary for detecting all the possible problems in other make versions. Currently the only indication we give is: |2) Then type 'make' to build FFmpeg. On BSD systems, type 'gmake' |instead of 'make'. You may need to install GNU Make 3.81 first. Meaningwhile I tried the FFmpeg Makefile with remake 3.80 (which is a patched make 3.80, so maybe the same problem occurrs in make 3.80 as well), and discovered it doesn't work in a rather painful-to-debug way, I am adding the check in the attached patch. BTW since check-make now contains multiple checks, to have it in a separate Makefile looks like the only way to be able to report in one place an error message, also I think it reduce the clutter in the main top level Makefile. Anyway, maybe a simpler solution would be to require the use of GNU make 3.81, stress this in the docs, and avoid the clutter of automatic checks which furthermore won't necessarily work for the generic foomake. Regards. -- FFmpeg = Free Fiendish Mega Porno Elaborated Game
On date Saturday 2008-11-08 16:10:17 +0100, Stefano Sabatini encoded: [...]
The question we have to address here is if we are *requiring* GNU make 3.81, or a compliant make utility.
As Ramiro pointed out, the user may choose to use one of the many make variants, make < 3.81, remake, gmake etc, this also means that when configuring configure doesn't know which is the make the user will invoke, so there's no point into checking the "make" command.
This would make sense if we're pretending the user to run explicitely the "make" command during the configuration, but I'm not sure if this is a common requirement. Furthermore, if we choose to *require* GNU make 3.81, then maybe we could simply explicitely tell this in the INSTALL file, and avoid the clutter necessary for detecting all the possible problems in other make versions.
Currently the only indication we give is:
|2) Then type 'make' to build FFmpeg. On BSD systems, type 'gmake' |instead of 'make'. You may need to install GNU Make 3.81 first.
Meaningwhile I tried the FFmpeg Makefile with remake 3.80 (which is a patched make 3.80, so maybe the same problem occurrs in make 3.80 as well), and discovered it doesn't work in a rather painful-to-debug way, I am adding the check in the attached patch.
BTW since check-make now contains multiple checks, to have it in a separate Makefile looks like the only way to be able to report in one place an error message, also I think it reduce the clutter in the main top level Makefile.
Anyway, maybe a simpler solution would be to require the use of GNU make 3.81, stress this in the docs, and avoid the clutter of automatic checks which furthermore won't necessarily work for the generic foomake.
Hi, r15796 definitively implements this solution, so now we're *requiring* GNU make >= 3.81 and since now we're demanding the user to use a valid version of make there is no need for random/hairy automatic checks, and I'm dropping this patch. Regards. -- FFmpeg = Fantastic and Fostering Multimedia Picky Elitist Glue
participants (9)
-
baptiste.coudurier@smartjog.com -
ccormie@aussiemail.com.au -
diego@biurrun.de -
dominik@rangers.eu.org -
inverseparadox@comcast.net -
mans@mansr.com -
ramiro@lisha.ufsc.br -
stefano.sabatini-lala@poste.it -
turkeyman121@yahoo.co.uk