Skip to contentSkip to conversation

Minor fixes for xfsprogs

PATCH Superseded Andrey Albershteyn 3 participants 10 messages Sep 27, 2024 Kbuild

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 4e768526c6fe..11cace1112e6 100644
@@ -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
#2 lore raw

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-sh over ./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.

---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)
Makefile +2 -0
index 4e768526c6fe..11cace1112e6 100644
@@ -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
#3 lore raw

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-sh over ./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.

---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)
Makefile +2 -0
index 4e768526c6fe..11cace1112e6 100644
@@ -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
Signature · 1 line
- Andrey
#4 lore raw

PATCH 2/2 xfsprogs: update gitignore

In reply to Andrey Albershteyn

Building 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
index fd131b6fde52..26a7339add42 100644
@@ -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
#5 lore raw

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.

---
 .gitignore | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.gitignore +0 -0
index fd131b6fde52..26a7339add42 100644

.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.8
Signature · 1 line
2.44.1
#6 lore raw

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.

---
 .gitignore | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Quoted 11 lines

.gitignore line 36

Quoted 9 lines
.gitignore +1 -0
index fd131b6fde52..26a7339add42 100644
@@ -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.8
Signature · 1 line
2.44.1
Signature · 1 line
- Andrey
#7 lore raw

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.

---
 .gitignore | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Quoted 11 lines

.gitignore line 36

Quoted 9 lines
.gitignore +1 -0
index fd131b6fde52..26a7339add42 100644
@@ -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.8
Signature · 1 line
2.44.1
Signature · 1 line
- Andrey
Signature · 1 line
- Andrey
#8 lore raw

Re: [PATCH 2/2] xfsprogs: update gitignore

In reply to Andrey Albershteyn
Quoted 21 lines · Andrey Albershteyn

Building xfsprogs seems to produce many build artifacts which are not tracked by git. Ignore them.

---
 .gitignore | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.gitignore +1 -0
index fd131b6fde52..26a7339add42 100644
@@ -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
#9 lore raw

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.

---
 .gitignore | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.gitignore +1 -0
index fd131b6fde52..26a7339add42 100644
@@ -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_crc32table

This 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.8

Looks good.

--D

Quoted 4 lines
Signature · 1 line
2.44.1
Signature · 1 line
- Andrey