Minor fixes for xfsprogs
cover Minor fixes for xfsprogs
Hi,
These two patches are fix for building xfsprogs in immutable distros and update to .gitignore.
Andrey Albershteyn (2):
xfsprogs: fix permissions on files installed by libtoolize
xfsprogs: update gitignore
.gitignore | 12 ++++++++++++ Makefile | 2 ++ 2 files changed, 14 insertions(+)
Signature · 1 line
2.44.1
PATCH 1/2 xfsprogs: fix permissions on files installed by libtoolize
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.
--- Makefile | 2 ++ 1 file changed, 2 insertions(+)
Makefile +2 -0
@@ -109,6 +109,8 @@ endif configure: configure.ac libtoolize -c -i -f + chmod 755 config.guess config.sub install-sh + chmod 644 ltmain.sh m4/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 cp include/install-sh . aclocal -I m4 autoconf
Signature · 1 line
2.44.1
Re: [PATCH 1/2] xfsprogs: fix permissions on files installed by libtoolize
Quoted 6 lines · Andrey Albershteyn
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-shover ./install-sh which is not writable.
Does cp -f include/install-sh . work for this?
Aside from the install script, the build system doesn't modify any of the files that come in from libtol, does it?
--D
Quoted 25 lines
Fix this by setting permission explicitly on files copied by libtoolize.
Signed-off-by Andrey Albershteyn <[email protected]>--- Makefile | 2 ++ 1 file changed, 2 insertions(+)Makefile +2
-0@@ -109,6 +109,8 @@ endif configure: configure.ac libtoolize -c -i -f + chmod 755 config.guess config.sub install-sh + chmod 644 ltmain.sh m4/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 cp include/install-sh . aclocal -I m4 autoconfSignature · 1 line
2.44.1
Re: Re: [PATCH 1/2] xfsprogs: fix permissions on files installed by libtoolize
Quoted 9 lines · Darrick J. Wong
Quoted 6 lines · Andrey Albershteyn
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-shover ./install-sh which is not writable.Does cp -f
include/install-sh. work for this?
yes, the cp -f would also work, to fix the build issue
Quoted 3 lines
Aside from the install script, the build system doesn't modify any of the files that come in from libtol, does it?
yup, it doesn't (at least I didn't found anything else), but the file mode would be different
Andrey
Quoted 29 lines
--D
Quoted 25 lines
Fix this by setting permission explicitly on files copied by libtoolize.
Signed-off-by Andrey Albershteyn <[email protected]>--- Makefile | 2 ++ 1 file changed, 2 insertions(+)Makefile +2
-0@@ -109,6 +109,8 @@ endif configure: configure.ac libtoolize -c -i -f + chmod 755 config.guess config.sub install-sh + chmod 644 ltmain.sh m4/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 cp include/install-sh . aclocal -I m4 autoconfSignature · 1 line
2.44.1
Signature · 1 line
- Andrey
PATCH 2/2 xfsprogs: update gitignore
In reply to Andrey AlbershteynBuilding xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.
--- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+)
.gitignore +12 -0
@@ -33,6 +33,7 @@ /config.status /config.sub /configure +/configure~ # libtool /libtool
@@ -73,9 +74,20 @@ cscope.* /scrub/xfs_scrub_all /scrub/xfs_scrub_all.cron /scrub/xfs_scrub_all.service +/scrub/xfs_scrub_all_fail.service +/scrub/xfs_scrub_fail /scrub/[email protected] +/scrub/[email protected] +/scrub/[email protected] # generated crc files +/libxfs/crc32selftest +/libxfs/crc32table.h +/libxfs/gen_crc32table /libfrog/crc32selftest /libfrog/crc32table.h /libfrog/gen_crc32table + +# docs +/man/man8/mkfs.xfs.8 +/man/man8/xfs_scrub_all.8
Signature · 1 line
2.44.1
Re: [PATCH 2/2] xfsprogs: update gitignore
Quoted 13 lines · Andrey Albershteyn
Building xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.
Signed-off-by Andrey Albershteyn <[email protected]>--- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+).gitignore +0
-0
.gitignore line 36
Quoted 4 lines
.gitignore +1
-0@@ -33,6 +33,7 @@ /config.status /config.sub /configure +/configure~
This smells like your vim configuration, not the make system.
Carlos
Quoted 28 lines
.gitignore +11
-0# libtool /libtool@@ -73,9 +74,20 @@ cscope.* /scrub/xfs_scrub_all /scrub/xfs_scrub_all.cron /scrub/xfs_scrub_all.service +/scrub/xfs_scrub_all_fail.service +/scrub/xfs_scrub_fail /scrub/[email protected] +/scrub/[email protected] +/scrub/[email protected] # generated crc files +/libxfs/crc32selftest +/libxfs/crc32table.h +/libxfs/gen_crc32table /libfrog/crc32selftest /libfrog/crc32table.h /libfrog/gen_crc32table + +# docs +/man/man8/mkfs.xfs.8 +/man/man8/xfs_scrub_all.8Signature · 1 line
2.44.1
Re: Re: [PATCH 2/2] xfsprogs: update gitignore
Quoted 9 lines · Carlos Maiolino
Quoted 8 lines · Andrey Albershteyn
Building xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.
Signed-off-by Andrey Albershteyn <[email protected]>--- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Quoted 11 lines
.gitignore line 36
Quoted 9 lines
.gitignore +1
-0@@ -33,6 +33,7 @@ /config.status /config.sub /configure +/configure~This smells like your vim configuration, not the make system.
opsie, you're right
Andrey
Quoted 32 lines
Carlos
Quoted 28 lines
.gitignore +11
-0# libtool /libtool@@ -73,9 +74,20 @@ cscope.* /scrub/xfs_scrub_all /scrub/xfs_scrub_all.cron /scrub/xfs_scrub_all.service +/scrub/xfs_scrub_all_fail.service +/scrub/xfs_scrub_fail /scrub/[email protected] +/scrub/[email protected] +/scrub/[email protected] # generated crc files +/libxfs/crc32selftest +/libxfs/crc32table.h +/libxfs/gen_crc32table /libfrog/crc32selftest /libfrog/crc32table.h /libfrog/gen_crc32table + +# docs +/man/man8/mkfs.xfs.8 +/man/man8/xfs_scrub_all.8Signature · 1 line
2.44.1
Signature · 1 line
- Andrey
Re: Re: Re: [PATCH 2/2] xfsprogs: update gitignore
Quoted 22 lines · Andrey Albershteyn
Quoted 9 lines · Carlos Maiolino
Quoted 8 lines · Andrey Albershteyn
Building xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.
Signed-off-by Andrey Albershteyn <[email protected]>--- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+)Quoted 11 lines
.gitignore line 36
Quoted 9 lines
.gitignore +1
-0@@ -33,6 +33,7 @@ /config.status /config.sub /configure +/configure~This smells like your vim configuration, not the make system.
Quoted 3 lines
opsie, you're right
Andrey
no, my vim was creating backup files but this is actually created by autoconf.
this is doc for autoupdate, but autoconf does the same if ./configure already exists
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.html#autoupdate-Invocation
so will add it gitignore
Andrey
Quoted 36 lines
Quoted 33 lines
Carlos
Quoted 28 lines
.gitignore +11
-0# libtool /libtool@@ -73,9 +74,20 @@ cscope.* /scrub/xfs_scrub_all /scrub/xfs_scrub_all.cron /scrub/xfs_scrub_all.service +/scrub/xfs_scrub_all_fail.service +/scrub/xfs_scrub_fail /scrub/[email protected] +/scrub/[email protected] +/scrub/[email protected] # generated crc files +/libxfs/crc32selftest +/libxfs/crc32table.h +/libxfs/gen_crc32table /libfrog/crc32selftest /libfrog/crc32table.h /libfrog/gen_crc32table + +# docs +/man/man8/mkfs.xfs.8 +/man/man8/xfs_scrub_all.8Signature · 1 line
2.44.1Signature · 1 line
- Andrey
Signature · 1 line
- Andrey
Re: [PATCH 2/2] xfsprogs: update gitignore
In reply to Andrey AlbershteynQuoted 21 lines · Andrey Albershteyn
Building xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.
Signed-off-by Andrey Albershteyn <[email protected]>--- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+).gitignore +1
-0@@ -33,6 +33,7 @@ /config.status /config.sub /configure +/configure~ # libtool /libtool
.gitignore cscope.* · line 81
Quoted 8 lines
.gitignore +4
-0@@ -73,9 +74,20 @@ cscope.* /scrub/xfs_scrub_all /scrub/xfs_scrub_all.cron /scrub/xfs_scrub_all.service +/scrub/xfs_scrub_all_fail.service +/scrub/xfs_scrub_fail /scrub/[email protected] +/scrub/[email protected] +/scrub/[email protected]
/me wonders if *.service/*.cron should be a wildcard to match scrub/Makefile's LDIRT definition.
.gitignore cscope.* · line 86
Quoted 4 lines
.gitignore +3
-0# generated crc files +/libxfs/crc32selftest +/libxfs/crc32table.h +/libxfs/gen_crc32table
This all moved to libfrog in 2018, how is it still building in libxfs?
.gitignore cscope.* · line 93
Quoted 7 lines
.gitignore +4
-0/libfrog/crc32selftest /libfrog/crc32table.h /libfrog/gen_crc32table + +# docs +/man/man8/mkfs.xfs.8 +/man/man8/xfs_scrub_all.8
Looks good.
--D
Quoted 4 lines
Signature · 1 line
2.44.1
Re: Re: [PATCH 2/2] xfsprogs: update gitignore
Quoted 19 lines · Darrick J. Wong
Quoted 18 lines · Andrey Albershteyn
Building xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.
Signed-off-by Andrey Albershteyn <[email protected]>--- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+).gitignore +1
-0@@ -33,6 +33,7 @@ /config.status /config.sub /configure +/configure~
Quoted 14 lines
.gitignore cscope.* · line 81
Quoted 11 lines
.gitignore +4
-0# libtool /libtool@@ -73,9 +74,20 @@ cscope.* /scrub/xfs_scrub_all /scrub/xfs_scrub_all.cron /scrub/xfs_scrub_all.service +/scrub/xfs_scrub_all_fail.service +/scrub/xfs_scrub_fail /scrub/[email protected] +/scrub/[email protected] +/scrub/[email protected]/me wonders if *.service/*.cron should be a wildcard to match scrub/Makefile's LDIRT definition.
yeah, can be a wildcard
Quoted 7 lines
.gitignore cscope.* · line 86
Quoted 5 lines
.gitignore +3
-0# generated crc files +/libxfs/crc32selftest +/libxfs/crc32table.h +/libxfs/gen_crc32tableThis all moved to libfrog in 2018, how is it still building in libxfs?
hah yup, that was there from building a n years old master, dropping this
Quoted 18 lines
.gitignore cscope.* · line 93
Quoted 8 lines
.gitignore +4
-0/libfrog/crc32selftest /libfrog/crc32table.h /libfrog/gen_crc32table + +# docs +/man/man8/mkfs.xfs.8 +/man/man8/xfs_scrub_all.8Looks good.
--D
Quoted 4 lines
Signature · 1 line
2.44.1
Signature · 1 line
- Andrey