automake
[Top][All Lists]
Advanced

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

error in distcheck caused by Info files modification time


From: Marco Maggi
Subject: error in distcheck caused by Info files modification time
Date: Thu, 10 Oct 2013 10:35:24 +0200

Ciao,

  I use the Autotools in several packages with no problems running "make
distcheck",  but  in a  single  package  I get  an  error.   I am  on  a
x86_64-unknown-linux-gnu  with Autoconf  2.69 and  Automake 1.14,  and I
use:

   AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip])

  AFAICT with  almost all of  my packages: when running  "distcheck" the
documentation is  built only in  PDF format,  not Info format;  the Info
files are already present in the distribution archive.

  In a single package[1] I get:

Making all in doc
make[3]: Entering directory 
`/home/marco/src/devel/scheme/vicare-scheme/=build.devel/vicare-scheme-0.3d5/_build/doc'
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh 
/home/marco/src/devel/scheme/vicare-scheme/=build.devel/vicare-scheme-0.3d5/autotools/missing
 makeinfo --version) >/dev/null 2>&1; then \
  for f in ../../doc/vicare-scheme.info ../../doc/vicare-scheme.info-[0-9] 
../../doc/vicare-scheme.info-[0-9][0-9] ../../doc/vicare-scheme.i[0-9] 
../../doc/vicare-scheme.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/sh 
/home/marco/src/devel/scheme/vicare-scheme/=build.devel/vicare-scheme-0.3d5/autotools/missing
 makeinfo   -I ../../doc \
 -o ../../doc/vicare-scheme.info ../../doc/vicare-scheme.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd ../../doc; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \
  $restore $backupdir/* `echo "./../../doc/vicare-scheme.info" | sed 
's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
mkdir: cannot create directory '.am7834': Permission denied
../../doc/vicare-scheme.texi: No such file or directory
make[3]: *** [../../doc/vicare-scheme.info] Error 1
make[3]: Leaving directory 
`/home/marco/src/devel/scheme/vicare-scheme/=build.devel/vicare-scheme-0.3d5/_build/doc'

the problem seems  to be that the  Info files from the  dist archive are
extracted  with last  modification time  older than  their corresponding
Texinfo files  from the dist archive;  this causes the Info  files to be
rebuilt, which fails because the "doc" directory has permissions 0550.

  This happens also when I make sure to remove all the Info files in the
original build tree  and rebuild them, so that I  can verify[2] that the
Info files are newer.  It was not happening on this very package until I
split the documentation to 3 master  files, rather than an all inclusive
one.

  Was I just  lucky not to be hit  by this before?  I would  like not to
use the "info-in-builddir" option.

TIA

[1] <https://github.com/marcomaggi/vicare/tree/devel>
[2] 
<http://stackoverflow.com/questions/4561895/how-to-recursively-find-the-latest-modified-file-in-a-directory>
-- 
"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"



reply via email to

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