[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how to patch configure.ac and not require autotools

Hash: SHA1

Dan Horák wrote:
> Hello,
> I need to patch configure.ac so it doesn't explicitely add '-s' to
> LDFLAGS (see
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=194782). From a
> discussion started in
> http://www.redhat.com/archives/fedora-extras-list/2005-October/msg01545.html it is forbidden to use autotools during the build process and it suggests to patch configure and the other generated files too. But in my situation the only files that differ are configure.ac and configure. And after applying the patch their timestamps are set to the current time and because other files (Makefile.am, config.h, ...) depend on them, they want to be regenerated. The whole package seem buildable without the autotools, but with some not very nice messages about missing automake, autoconf, etc in the buildlog.
> I see 3 possible ways
> - leave the warnings in the buildlog
> - patch the files without modifying their timestamp (but is it
> possible?)
> - generate a patch that will contain empty patches for the other
> generated files only to update their timestamp (but again how?)

'touch', not patch.

I run into this quite a lot.  In addition to patching both configure.ac
and configure.in, you'll need to 'touch' all of the "Makefile.in" files
in the package, since they likely have a dependency on configure.in.  In
some cases you'll have to touch 'config.h.in' as well.

If you add "exit 1" at the end of your %prep section, then manually run
"make -d 2>&1 | tee make.out" in your build directory, you'll see what
dependencies are triggering the call to autoxxx.

- --Mike
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]