[Pkg-pascal-devel] Heads up for my changes to d/rules of fpc

Paul Gevers elbrus at debian.org
Tue Nov 10 20:24:15 UTC 2015


Hi all,

Before I commit, I like yo to know that I have quite drastically changes
the fpc d/rules (not yet as much as I wanted) to fix two big announces
that I had ever since I joined the effort to work on Free Pascal.

1) I changed the clean rules (set of targets) to now be much faster when
you start with a fully clean tree. The problem with the old set, albeit
being fundamentally correct, wasted a lot of time on fpcmake. I now fool
the fpcmake targets when we start with a clean tree. The comment in the
d/rules:
The really correct clean target is very heavy for an already clean tree
because it needs to regenerate all the Makefiles from Makefile.fpc files
to be able to call all the upstream distclean targets. Therefor the
clean target is split into multiple components and the makefiles target
is fooled when ZERO generated Makefiles are found. I (elbrus) consider
that a reasonable trade-off. If for whatever reason you need the real
(and heavy) target you can run the clean-makefiles target before calling
clean.

2) When something went wrong during building, most of the time calling
debian/rules binary failed to do the right thing. In the past I have too
ofter done "debian/rules clean ; debian/rules binary" wasting a lot of
time before testing a possible fix. (One of) The problem(s) was that the
binary-indep target (via install-source and clean-patched) removed all
the build code. I have resolved this issue by making sure that the
install-source target is now the first target after manipulating the
source, such that it is still clean.

I haven't timed the latest build on my machine, but it felt a lot
quicker and I verified that indeed all the files were still there at the
end. So it seems that I achieved both my targets.

I hope you agree with this approach and that I can continue with
committing this to our archive

Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20151110/92d13314/attachment.sig>


More information about the Pkg-pascal-devel mailing list