]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: fix permissions on files installed by libtoolize
authorAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 11:57:03 +0000 (13:57 +0200)
committerAndrey Albershteyn <aalbersh@redhat.com>
Tue, 8 Oct 2024 12:31:31 +0000 (14:31 +0200)
Libtoolize installs some set of AUX files from its system package.
Not all distributions have the same permissions set on these files.
For example, read-only libtoolize system package will copy those
files without write permissions. This causes build to fail as next
line copies ./include/install-sh over ./install-sh which is not
writable.

Fix this by setting permission explicitly on files copied by
libtoolize.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
Makefile

index 4e768526c6fe0c71349908fab37a6a15ca4a30d5..c40728d9a455536fb5947fbe90a6a8b86fee7010 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,6 +109,9 @@ endif
 
 configure: configure.ac
        libtoolize -c -i -f
+       chmod 755 config.guess config.sub install-sh
+       chmod 644 ltmain.sh m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
+               m4/ltversion.m4 m4/lt~obsolete.m4
        cp include/install-sh .
        aclocal -I m4
        autoconf