This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3.2] DESTDIR support


Hello again,

this is the DESTDIR patch for the gcc-3_2-branch.  Regardless of
whether it has a chance to get into the 3.2.2 release or not, it
should be useful for packagers.

Of course it's similar to the 3.3 version, though not to the
same degree as 3.3 is to 3.4.  Some files have changed names or
have disappeared, and the toplevel `Makefile.in' is not
"autogen"erated, for example.  Anyway, to review all changes except
the numerous $(DESTDIR) insertions, I recommend

	diff <(sed '/^+/d; s/^-/ /' destdir-3.2-1.diff) \
	<(sed '/^-/d; /^+/s/\$\+[{(]DESTDIR[)}]//g; s/^+/ /' \
	destdir-3.2-1.diff) | less -S

(The <() is a named pipe in Bash.)  Note that the second sed command
deletes $(DESTDIR), so don't wonder if you don't see any such
insertion in the listed commands, or when you see "DESTDIR=" (in a
$(MAKE) call).  Given the explanations for the 3.3 patch, the
output of the above command should be easy to understand.

As for the 3.3 and 3.4 patches, a supplementary patch to
`gcc/ada/Make-lang.in' should be added (cf. "Re: gcc/ada/Make-lang.in:
Some install tuning").  The doc patch to `gcc/doc/install.texi' (cf.
"Re: [doc] DESTDIR and tooldir") also applies.

Testing has not been fully completed yet.  With today's 3.2 snapshot,
I get problems when bootstrapping Ada, but that seems to be unrelated.

Regards,

Christian Cornelssen

Attachment: destdir-3.2-1.diff.gz
Description: application/gunzip

Attachment: destdir-no-am-3.2-1.diff
Description: Text document

Attachment: destdir-changelog-3.2-1.tar.gz
Description: application/gunzip


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]