[bug #66500] Caching of timestamps prevents proper builds

Grzegorz Jabłoński <[email protected]>
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?66500>

                 Summary: Caching of timestamps prevents proper builds
                   Group: make
               Submitter: gwj
               Submitted: Sat 30 Nov 2024 03:15:29 PM UTC
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 30 Nov 2024 03:15:29 PM UTC By: Grzegorz Jabłoński <gwj>
Due to make caching timestamps, building baz after updating bar requires
invoking make twice.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy
$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ touch bar
$ make
mkdir foo
touch foo/tar
touch baz
$ make
make: 'baz' is up to date.
$ touch bar
$ make
mkdir foo
mkdir: cannot create directory ‘foo’: File exists
make: [makefile:5: foo] Error 1 (ignored)
touch foo/tar
$ make
mkdir foo
mkdir: cannot create directory ‘foo’: File exists
make: [makefile:5: foo] Error 1 (ignored)
touch foo/tar
touch baz








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66500>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ0ssFgAKCRCqLAuaBUf3
TmzFAPsH7xljq4BVO7nfAMF/3ieCcImFET1nD3iNmUCOYRnmewD+NizLy7ic9mr2
I3N+9u6V2g/G01Qo50E6fkj1AUxhOwI=
=69w8
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.