4
4
Re-libroolizing for modern autoconf
6
The sources contain very old libtool packaging. It was
7
upgraded by doing following steps:
9
In original sources, examine the situation:
13
games/Makefile.am:54: wildcard *.png: non-POSIX variable name
14
games/Makefile.am:54: (probably a GNU make extension)
15
games/Makefile.am:54: wildcard *.tp: non-POSIX variable name
16
games/Makefile.am:54: (probably a GNU make extension)
17
games/Makefile.am:121: `%'-style pattern rules are a GNU make extension
18
games/Makefile.am:32: `LDFLAGS' is a user variable, you should not override it;
19
games/Makefile.am:32: use `AM_LDFLAGS' instead.
20
lib/Makefile.am:9: `LDFLAGS' is a user variable, you should not override it;
21
lib/Makefile.am:9: use `AM_LDFLAGS' instead.
22
tests/Makefile.am:6: `LDFLAGS' is a user variable, you should not override it;
23
tests/Makefile.am:6: use `AM_LDFLAGS' instead.
25
According to the output go and fix the *.am files as needed.
28
debian/patches/*-autoreconf-ldflags-am_ldflags.dpatch [A]
30
Patch *.am files (with above) and run:
6
The source were upgraded to latest autoconf:
34
This will reconfigure *everything*. Save diff between
35
A..AUTORECONF to file:
37
debian/patches/*-autoreconf-fi-2.64.dpatch
39
Everything done. Use dpatch(1) in debian/rules to 'patch' and
42
Last, add entries to debian/*.overrides that deal with the
43
warning of old, non-patched sources. Lintian doesn't know
44
the sources will be patched.
46
debian/rules for re-libtoolized content
48
Because the original sources are in a state that cannot run
49
'configure' and produce viable 'Makefile', they must be in
50
patched state in all times when debian commands are run.
51
In debian/rules the 'patch' is needed before build:
55
The clean target is in separate stages. First run 'clean-files'
56
that calls Makefile (in patched state). Only last run 'unpatch'
57
to restore the sources and undo sutoreconf changes.
59
Notice, that the make commands needs a special variables,
60
otherwise they don't work:
62
to_srcdir="$(TOPDIR)" top_builddir="$(TOPDIR)"
12
debian/patches/*-autoreconf-*.dpatch
14
Add entries to debian/*.overrides that deal with the warning
15
of old, non-patched sources. Lintian doesn't know the sources
18
-- Jari Aalto <jari.aalto@cante.net>, Sat, 26 Jun 2010 15:14:55 +0300