[Top][All Lists]

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

Re: distcheck does 'chmod a-w' - leads to mkdir "permission denied"

From: Paul Jakma
Subject: Re: distcheck does 'chmod a-w' - leads to mkdir "permission denied"
Date: Fri, 3 Mar 2017 18:02:23 +0000 (GMT)
User-agent: Alpine 2.20 (LFD 67 2015-01-07)

On Fri, 3 Mar 2017, Paul Smith wrote:

On Fri, 2017-03-03 at 17:09 +0000, Paul Jakma wrote:
Well, it's due to the distributed 'doc/' being slightly
older than the (built by automake) doc/defines.texi.

I don't understand this: if doc/defines.texi is needed by
then why doesn't depend on it?

The dependencies seem correct:

$ make
$ touch defines.texi
$ make
$ touch
$ make
cd .. && /bin/sh ./config.status doc/defines.texi
config.status: creating doc/defines.texi

And if it does depend on it, then how can doc/defines.texi be newer without rebuilding (when creating the dist file, not when building the dist file)?

It's because doc/defines.texi gets generated in the builddir when configure is run.

$ make distclean
test -z "quagga.dvi quagga.pdf quagga.html" \
|| rm -rf quagga.dvi quagga.pdf quagga.html
rm -rf .libs _libs
rm -rf quagga.t2d quagga.t2p
rm -f *.lo
rm -f vti.tmp* ./version.texi.tmp*
test -z "defines.texi" || rm -f defines.texi
test . = "." || test -z "" || rm -f
rm -f Makefile
$ ./configure > /dev/null
# defines.texi is back:
$ ls doc/defines.texi


- the dist tarball are unpacked to RO source dir

- configure is run in another build dir

- defines.texi is generated in the build-dir doc/ by automake (though it
  was distributed, so that isn't necessary in the abstract)

- So must be updated of course

- but automake defaults to building the info sources in the source-dir,
  which is of course RO as part of distcheck

- Boom

Is what it seems like to me.

Paul Jakma | address@hidden | @pjakma | Key ID: 0xD86BF79464A2FF6A
        "A child of 5 could understand this!  Fetch me a child of 5."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]