Re: [PATCH] Configuration fixups for packaging purposes & FHS

  • From: Darren Salt <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: amajorel@xxxxxxxxx, yadex@xxxxxxxxxxxxx
  • Date: Mon, 19 Jun 2006 18:44:01 +0100

I demand that Andre Majorel may or may not have written...

> On 2006-06-19 01:46 +0100, Darren Salt wrote:
>> $(DESTDIR) is normally used for fixing up the install paths for packaging
>> purposes. The first patch makes the necessary changes.

> Is this a debianry? Where is it initialised?

It's standard; automake-generated makefiles use it. It's typically left
unset, and is normally set as part of the command line when running the
install target. In a debian/rules file, this would look something like

        $(MAKE) install DESTDIR="$(CURDIR)/debian/tmp"

>> The second patch adds some FHS path usage, taking note of and applying the
>> "FHS-ly correct" comments and also making sure that the man page, if the
>> prefix is /usr/local, goes in /usr/local/share/man rather than
>> /usr/local/man. (Recent autoconf will do the same.)

> Unless the FHS has changed yet again, the correct path is /usr/local/man.

I have here:

  sarge: /usr/local/man

  etch:  /usr/local/share/man
         /usr/local/man -> share/man

autoconf >= 2.59c sets MANDIR to ${DATAROOTDIR}/man, with DATAROOTDIR
defaulting to ${PREFIX}/share. (It also sets LOCALEDIR - hmm, I need to
update a few po/Makefile.in.in files...)

I've not checked, but this does indicate that it's been changed.

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Output less CO2 => avoid massive flooding.    TIME IS RUNNING OUT *FAST*.

Windows 95 has detected a new day. Do you wish to overwrite the old one?

Other related posts: