Debian Bug report logs - #420190
Need to preserve regexprops.texi if cross-building

version graph

Package: findutils; Maintainer for findutils is Andreas Metzler <ametzler@debian.org>; Source for findutils is src:findutils (PTS, buildd, popcon).

Reported by: Neil Williams <codehelp@debian.org>

Date: Fri, 20 Apr 2007 17:03:01 UTC

Severity: minor

Found in version findutils/4.2.30-1

Fixed in versions findutils/4.3.5-1, findutils/4.2.31-1

Done: Andreas Metzler <ametzler@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://savannah.gnu.org/bugs/?19658

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#420190; Package findutils. (full text, mbox, link).


Acknowledgement sent to Neil Williams <codehelp@debian.org>:
New Bug report received and forwarded. Copy sent to Andreas Metzler <ametzler@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Neil Williams <codehelp@debian.org>
To: submit@bugs.debian.org
Subject: Need to preserve regexprops.texi if cross-building
Date: Fri, 20 Apr 2007 17:52:20 +0100
[Message part 1 (text/plain, inline)]
Package: findutils
Version: 4.2.30-1
Severity: normal

When cross-building, findutils becomes confused. Upstream carries a
regexprops.texi file which findutils expects to be able to rebuild, so
it deletes it during a clean. Later, the cross build fails because:

make[3]: Entering directory
`/opt/emdebian/trunk/f/findutils/trunk/findutils-4.2.30/doc' echo
"WARNING: ../gnulib/lib/regex.h is newer than regexprops.texi but
regexprops.texi cannot be rebuilt because we are cross-compiling.
Continuing anyway." >&2 WARNING: ../gnulib/lib/regex.h is newer than
regexprops.texi but regexprops.texi cannot be rebuilt because we are
cross-compiling.   Continuing anyway.

...

find.texi:3116: @include `regexprops.texi': No such file or directory.
makeinfo: Removing output file `find.info' due to errors; use --force
to preserve. make[3]: *** [find.info] Error 1

One way to solve this would be to make doc/ a conditional subdirectory
so that cross-builds can simply not bother running make in doc/ by
specifying --disable-texi to ./configure.

Alternatively, whatever is detecting the cross-build should also ensure
that if a file cannot be rebuilt during a cross-build, it should not be
removed during a cross-build clean. ;-)

The first build appeared fine - subsequent builds fail.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.18-4-amd64

Debian Release: lenny/sid
  500 unstable        www.linux.codehelp.co.uk
  500 unstable        www.emdebian.org
  500 unstable        mirror.ox.ac.uk
  500 unstable        ftp.fr.debian.org

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
                        |




--


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

[findutils_4.2.30-1em1_arm.build (application/octet-stream, attachment)]
[Message part 3 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#420190; Package findutils. (full text, mbox, link).


Acknowledgement sent to Andreas Metzler <ametzler@downhill.at.eu.org>:
Extra info received and forwarded to list. Copy sent to Andreas Metzler <ametzler@debian.org>. (full text, mbox, link).


Message #10 received at 420190@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@downhill.at.eu.org>
To: Neil Williams <codehelp@debian.org>, 420190@bugs.debian.org
Subject: Re: Bug#420190: Need to preserve regexprops.texi if cross-building
Date: Sat, 21 Apr 2007 08:31:43 +0200
On 2007-04-20 Neil Williams <codehelp@debian.org> wrote:
> Package: findutils
> Version: 4.2.30-1
> Severity: normal

> When cross-building, findutils becomes confused. Upstream carries a
> regexprops.texi file which findutils expects to be able to rebuild, so
> it deletes it during a clean. Later, the cross build fails because:
[...]
> The first build appeared fine - subsequent builds fail.
[...]

I am not sure I understand the last sentence correctly. Do you mean
that this works:

dpkg-source -x findutils_4.2.30-1.dsc
cd findutils-4.2.30
dpkg-buildpackage -uc -us -rfakeroot --crossbuilding-options

and this fails:
dpkg-source -x findutils_4.2.30-1.dsc
cd findutils-4.2.30
dpkg-buildpackage -uc -us -rfakeroot --crossbuilding-options
# try a rebuild from an already-built-from-directory
dpkg-buildpackage -uc -us -rfakeroot --crossbuilding-options

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#420190; Package findutils. (full text, mbox, link).


Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. Copy sent to Andreas Metzler <ametzler@debian.org>. (full text, mbox, link).


Message #15 received at 420190@bugs.debian.org (full text, mbox, reply):

From: Neil Williams <codehelp@debian.org>
To: Andreas Metzler <ametzler@downhill.at.eu.org>
Cc: 420190@bugs.debian.org
Subject: Re: Bug#420190: Need to preserve regexprops.texi if cross-building
Date: Sat, 21 Apr 2007 14:37:16 +0100
[Message part 1 (text/plain, inline)]
On Sat, 21 Apr 2007 08:31:43 +0200
Andreas Metzler <ametzler@downhill.at.eu.org> wrote:

> > When cross-building, findutils becomes confused. Upstream carries a
> > regexprops.texi file which findutils expects to be able to rebuild,
> > so it deletes it during a clean. Later, the cross build fails
> > because:
> [...]
> > The first build appeared fine - subsequent builds fail.
> [...]
>
> I am not sure I understand the last sentence correctly. Do you mean
> that this works:
>
> dpkg-source -x findutils_4.2.30-1.dsc
> cd findutils-4.2.30
> dpkg-buildpackage -uc -us -rfakeroot --crossbuilding-options
>
> and this fails:
> dpkg-source -x findutils_4.2.30-1.dsc
> cd findutils-4.2.30
> dpkg-buildpackage -uc -us -rfakeroot --crossbuilding-options
> # try a rebuild from an already-built-from-directory
> dpkg-buildpackage -uc -us -rfakeroot --crossbuilding-options
>

Yes.

The actual commands come from the emdebian-tools package but these are
principally wrappers around the above commands.

The build log for the second case was attached to the original report,
if there is any more information I can provide, let me know.

You should be able to replicate the effect for testing purposes by
installing a cross-building toolchain from Emdebian (e.g. arm -
available for amd64, i386 and powerpc) then specifying -aarm to
dpkg-buildpackage.

'make clean' does not run with the first build (no Makefile), only
subsequent builds.

--

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
[Message part 2 (application/pgp-signature, inline)]

Severity set to `minor' from `normal' Request was from Andreas Metzler <ametzler@downhill.at.eu.org> to control@bugs.debian.org. (Sat, 21 Apr 2007 15:15:07 GMT) (full text, mbox, link).


Noted your statement that Bug has been forwarded to http://savannah.gnu.org/bugs/?19658. Request was from Andreas Metzler <ametzler@debian.org> to control@bugs.debian.org. (Sat, 21 Apr 2007 18:03:14 GMT) (full text, mbox, link).


Message sent on to Neil Williams <codehelp@debian.org>:
Bug#420190. (full text, mbox, link).


Message #22 received at 420190-submitter@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <INVALID.NOREPLY@gnu.org>
To: Andreas Metzler <gnu@downhill.at.eu.org>, 420190-submittter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19658] In crosscompiling mode make clean removes files that cannot be regenerated.
Date: Sat, 21 Apr 2007 17:57:42 +0000
URL:
  <http://savannah.gnu.org/bugs/?19658>

                 Summary: In crosscompiling mode make clean removes files
that cannot be regenerated.
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Samstag 21.04.2007 um 19:57
                Category: None
                Severity: 3 - Normal
              Item Group: Compilation Failure
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Neil Williams
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.30
           Fixed Release: None

    _______________________________________________________

Details:

This is http://bugs.debian.org/420190 submitted by Neil Williams:
---------------------
When cross-building, findutils becomes confused. Upstream carries a
regexprops.texi file which findutils expects to be able to rebuild, so it
deletes it during a clean. Later, the cross build fails because:

make[3]: Entering directory
`/opt/emdebian/trunk/f/findutils/trunk/findutils-4.2.30/doc' echo
"WARNING: ../gnulib/lib/regex.h is newer than regexprops.texi but
regexprops.texi cannot be rebuilt because we are cross-compiling.
Continuing anyway." >&2 WARNING: ../gnulib/lib/regex.h is newer than
regexprops.texi but regexprops.texi cannot be rebuilt because we are
cross-compiling.   Continuing anyway.

...

find.texi:3116: @include `regexprops.texi': No such file or directory.
makeinfo: Removing output file `find.info' due to errors; use --force
to preserve. make[3]: *** [find.info] Error 1

One way to solve this would be to make doc/ a conditional subdirectory so
that cross-builds can simply not bother running make in doc/ by specifying
--disable-texi to ./configure.

Alternatively, whatever is detecting the cross-build should also ensure that
if a file cannot be rebuilt during a cross-build, it should not be removed
during a cross-build clean. ;-)

The first build appeared fine - subsequent builds fail.
---------------------


This can easily tested by forcing crosscompilation mode:
CFLAGS="-Wall -g -O2" ./configure --build i386-pc-linux-gnu --host
i686-pc-linux-gnu
make
make clean
CFLAGS="-Wall -g -O2" ./configure --build i386-pc-linux-gnu --host
i686-pc-linux-gnu
make
<--- There is the error.

The issue also seems to apply to CVS HEAD. A trivial patch is attached.

thanks, cu andreas



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Samstag 21.04.2007 um 19:57  Name: bug420190.diff  Size: 1kB   By:
ametzler
Patch
<http://savannah.gnu.org/bugs/download.php?file_id=12548>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19658>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils



Message sent on to Neil Williams <codehelp@debian.org>:
Bug#420190. (full text, mbox, link).


Message #25 received at 420190-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: 420190-submitter@bugs.debian.org, James Youngman <jay@gnu.org>, bug-findutils@gnu.org
Subject: [bug #19658] In crosscompiling mode make clean removes files that cannot be regenerated.
Date: Sun, 22 Apr 2007 16:09:56 +0000
Update of bug #19658 (project findutils):

                  Status:                    None => Fixed                  

    _______________________________________________________

Follow-up Comment #1:

Fixed in CVS in both 4.2.x and 4.3.x.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19658>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Message sent on to Neil Williams <codehelp@debian.org>:
Bug#420190. (full text, mbox, link).


Message #28 received at 420190-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: James Youngman <jay@gnu.org>, 420190-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19658] In crosscompiling mode make clean removes files that cannot be regenerated.
Date: Sun, 22 Apr 2007 16:39:36 +0000
Update of bug #19658 (project findutils):

             Assigned to:                    None => jay                    


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19658>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Message sent on to Neil Williams <codehelp@debian.org>:
Bug#420190. (full text, mbox, link).


Message #31 received at 420190-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: James Youngman <jay@gnu.org>, 420190-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19658] In crosscompiling mode make clean removes files that cannot be regenerated.
Date: Sat, 05 May 2007 13:25:09 +0000
Update of bug #19658 (project findutils):

             Open/Closed:                    Open => Closed                 
           Fixed Release:                    None => 4.3.5                  


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19658>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Reply sent to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Neil Williams <codehelp@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #36 received at 420190-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@debian.org>
To: 420190-close@bugs.debian.org
Subject: Bug#420190: fixed in findutils 4.3.5-1
Date: Sun, 13 May 2007 17:47:03 +0000
Source: findutils
Source-Version: 4.3.5-1

We believe that the bug you reported is fixed in the latest version of
findutils, which is due to be installed in the Debian FTP archive:

findutils_4.3.5-1.diff.gz
  to pool/main/f/findutils/findutils_4.3.5-1.diff.gz
findutils_4.3.5-1.dsc
  to pool/main/f/findutils/findutils_4.3.5-1.dsc
findutils_4.3.5-1_i386.deb
  to pool/main/f/findutils/findutils_4.3.5-1_i386.deb
findutils_4.3.5.orig.tar.gz
  to pool/main/f/findutils/findutils_4.3.5.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 420190@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated findutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 13 May 2007 14:40:44 +0200
Source: findutils
Binary: findutils
Architecture: source i386
Version: 4.3.5-1
Distribution: experimental
Urgency: low
Maintainer: Andreas Metzler <ametzler@debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Description: 
 findutils  - utilities for finding files--find, xargs, and locate
Closes: 21084 291419 354384 370057 400936 403823 412459 420190
Changes: 
 findutils (4.3.5-1) experimental; urgency=low
 .
   * New upstream version.
     - Better error message if the second operand of a binary operator is
       missing. (Closes: #403823)
     - If locatedb is old show actual age in warning mesage instead of just
       saying "more than 8 days old". (Closes: #354384)
     - Do not show warnings about argument ordering if -nowarn is specified.
       (Closes: #370057)
     - Correct docs for %b printf specifier. (Closes: #400936)
     - [-version] instead of [--version] in locate --help. (Closes: #412459)
     - make clean does not delete regexprops.texi if cross-building.
       (Closes: #420190)
     - Different error message on 'find ""'. (Closes: #21084)
     - Support for *BSDs -newerXY tests allows to find files with a date in the
       future without generating a temporary file. "find -newermt 2007-07-07"
       (Closes: #291419)
   * Undo workaround for savannah #19550, since it is a glibc bug.
Files: 
 3888ad33fac7e8618724af7181a7ae21 660 utils required findutils_4.3.5-1.dsc
 52138c6834208506a5dd70c9701f90e8 1726358 utils required findutils_4.3.5.orig.tar.gz
 6c91c88107b6fd172b449ad79b05c4c8 14695 utils required findutils_4.3.5-1.diff.gz
 7b081f5a02d3dccd3e5e6dc5a54cb94b 577666 utils required findutils_4.3.5-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGR0p6HTOcZYuNdmMRAmCAAJ4zvTdwLFI+V1iR8jIiEWCGSGqaewCeLPYa
QCRgyNfyRSdMshIVZE2FFd0=
=ItfQ
-----END PGP SIGNATURE-----




Reply sent to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Neil Williams <codehelp@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #41 received at 420190-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@debian.org>
To: 420190-close@bugs.debian.org
Subject: Bug#420190: fixed in findutils 4.2.31-1
Date: Sat, 02 Jun 2007 09:02:03 +0000
Source: findutils
Source-Version: 4.2.31-1

We believe that the bug you reported is fixed in the latest version of
findutils, which is due to be installed in the Debian FTP archive:

findutils_4.2.31-1.diff.gz
  to pool/main/f/findutils/findutils_4.2.31-1.diff.gz
findutils_4.2.31-1.dsc
  to pool/main/f/findutils/findutils_4.2.31-1.dsc
findutils_4.2.31-1_i386.deb
  to pool/main/f/findutils/findutils_4.2.31-1_i386.deb
findutils_4.2.31.orig.tar.gz
  to pool/main/f/findutils/findutils_4.2.31.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 420190@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated findutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  2 Jun 2007 09:55:27 +0200
Source: findutils
Binary: findutils
Architecture: source i386
Version: 4.2.31-1
Distribution: unstable
Urgency: medium
Maintainer: Andreas Metzler <ametzler@debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Description: 
 findutils  - utilities for finding files--find, xargs, and locate
Closes: 412459 420190 426862
Changes: 
 findutils (4.2.31-1) unstable; urgency=medium
 .
   * Undo workaround for savannah #19550, since it is a glibc bug.
   * New upstream bugfix release:
     - Fixes locate heap buffer overflow when using databases in old format.
       (CVE-2007-2452) Closes: #426862
     - make clean does not delete regexprops.texi if cross-building.
       (Closes: #420190)
     - [-version] instead of [--version] in locate --help. (Closes: #412459)
Files: 
 16f4e628a8e63cca5464b7d48f2cb28f 663 utils required findutils_4.2.31-1.dsc
 a0e31a0f18a49709bf5a449867c8049a 1326294 utils required findutils_4.2.31.orig.tar.gz
 f26ca47a383c7e9b3c7e4e26d1ce21ec 14516 utils required findutils_4.2.31-1.diff.gz
 75742515ce14edd06f2804423d4a8a84 422370 utils required findutils_4.2.31-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGYS2kHTOcZYuNdmMRAqYFAJ4qoYDi1tGrOpmNaazM63CzlxZpEgCeJkX8
xIG+vJLbRI4XB2FMZfPITFs=
=w/8/
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 07 Jul 2007 08:06:15 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 23 16:23:00 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.