]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols/src/Makemodule.am: ensure filter-scanner/paser.c file is newer than...
authorChen Qi <Qi.Chen@windriver.com>
Sat, 25 May 2024 03:41:35 +0000 (11:41 +0800)
committerKarel Zak <kzak@redhat.com>
Mon, 27 May 2024 13:08:32 +0000 (15:08 +0200)
commit9aa18ade22b55f7db28217a6d02bfd6f95f88f64
treeba4b400ddb0e7f8a6e8b9bebfc44a60765cb37cf
parent77778b99fd842b2b03f603147544e1d31502c074
libsmartcols/src/Makemodule.am: ensure filter-scanner/paser.c file is newer than the .h file

In released tarball, for filter-scanner/parser, the .h and the .c
file has the same mtime. The 'make' tool thinks .h is newer than
the .c file, thus deciding to remake it. This will not only cause
unnecessary rebuild, but also parallel make error. For example,
after 'make', when running 'make install', the libmount.la and findmnt
are both rebuilt and findmnt building will somethings error out complaining
'libmount.so: no such file or directory' or 'libmount.so: file format
not recognized'.

Touch the generated .c file to ensure it's newer than the .h file.
In this way, in new released tarballs in the future, there will
be no unnecessary remake.

fixes util-linux/util-linux#3061

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
(cherry picked from commit bf751e8effcc348495aa3a7aeb7a4257cf2ffa6e)
libsmartcols/src/Makemodule.am