Skip to contentSkip to conversation

policycoreutils/setfiles: do not create useless setfiles.8.man file

PATCH In review Ondrej Mosnacek 2 participants 3 messages Mar 19, 2021 – Apr 22, 2021 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 policycoreutils/setfiles: do not create useless setfiles.8.man file

Seems to have been there to allow for some sed substitution over the text. Now that this is gone, the redundant intermediate file can be removed, too.

---
 policycoreutils/setfiles/.gitignore | 1 -
 policycoreutils/setfiles/Makefile   | 9 +++------
 2 files changed, 3 insertions(+), 7 deletions(-)
 delete mode 100644 policycoreutils/setfiles/.gitignore
policycoreutils/setfiles/.gitignore deleted +0 -1
deleted file mode 100644
index 5e899c95..00000000
@@ -1 +0,0 @@
-setfiles.8.man
policycoreutils/setfiles/Makefile +3 -6
index a3bbbe11..63d81850 100644
@@ -13,7 +13,7 @@ ifeq ($(AUDITH), y)
 	override LDLIBS += -laudit
 endif
 
-all: setfiles restorecon restorecon_xattr man
+all: setfiles restorecon restorecon_xattr
 
 setfiles: setfiles.o restore.o
 
@@ -22,16 +22,13 @@ restorecon: setfiles
 
 restorecon_xattr: restorecon_xattr.o restore.o
 
-man:
-	@cp -af setfiles.8 setfiles.8.man
-
 install: all
 	[ -d $(DESTDIR)$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)$(MANDIR)/man8
 	-mkdir -p $(DESTDIR)$(SBINDIR)
 	install -m 755 setfiles $(DESTDIR)$(SBINDIR)
 	(cd $(DESTDIR)$(SBINDIR) && ln -sf setfiles restorecon)
 	install -m 755 restorecon_xattr $(DESTDIR)$(SBINDIR)
-	install -m 644 setfiles.8.man $(DESTDIR)$(MANDIR)/man8/setfiles.8
+	install -m 644 setfiles.8 $(DESTDIR)$(MANDIR)/man8/setfiles.8
 	install -m 644 restorecon.8 $(DESTDIR)$(MANDIR)/man8/restorecon.8
 	install -m 644 restorecon_xattr.8 $(DESTDIR)$(MANDIR)/man8/restorecon_xattr.8
 	for lang in $(LINGUAS) ; do \
@@ -42,7 +39,7 @@ install: all
 	done
 
 clean:
-	rm -f setfiles restorecon restorecon_xattr *.o setfiles.8.man
+	rm -f setfiles restorecon restorecon_xattr *.o
 
 indent:
 	../../scripts/Lindent $(wildcard *.[ch])
Signature · 1 line
2.30.2
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Ondrej Mosnacek

Seems to have been there to allow for some sed substitution over the text. Now that this is gone, the redundant intermediate file can be removed, too.

Hello,
It seems nobody reviewed this patch, and it looks good to me. So if nobody complains, I will merge it tomorrow.

Thanks,
Nicolas

Quoted 56 lines
---
 policycoreutils/setfiles/.gitignore | 1 -
 policycoreutils/setfiles/Makefile   | 9 +++------
 2 files changed, 3 insertions(+), 7 deletions(-)
 delete mode 100644 policycoreutils/setfiles/.gitignore
policycoreutils/setfiles/.gitignore deleted +0 -1
deleted file mode 100644
index 5e899c95..00000000
@@ -1 +0,0 @@
-setfiles.8.man
policycoreutils/setfiles/Makefile +3 -7
index a3bbbe11..63d81850 100644
@@ -13,7 +13,7 @@ ifeq ($(AUDITH), y)
        override LDLIBS += -laudit
 endif
 
-all: setfiles restorecon restorecon_xattr man
+all: setfiles restorecon restorecon_xattr
 
 setfiles: setfiles.o restore.o
 
@@ -22,16 +22,13 @@ restorecon: setfiles
 
 restorecon_xattr: restorecon_xattr.o restore.o
 
-man:
-       @cp -af setfiles.8 setfiles.8.man
-
 install: all
        [ -d $(DESTDIR)$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)$(MANDIR)/man8
        -mkdir -p $(DESTDIR)$(SBINDIR)
        install -m 755 setfiles $(DESTDIR)$(SBINDIR)
        (cd $(DESTDIR)$(SBINDIR) && ln -sf setfiles restorecon)
        install -m 755 restorecon_xattr $(DESTDIR)$(SBINDIR)
-       install -m 644 setfiles.8.man $(DESTDIR)$(MANDIR)/man8/setfiles.8
+       install -m 644 setfiles.8 $(DESTDIR)$(MANDIR)/man8/setfiles.8
        install -m 644 restorecon.8 $(DESTDIR)$(MANDIR)/man8/restorecon.8
        install -m 644 restorecon_xattr.8 $(DESTDIR)$(MANDIR)/man8/restorecon_xattr.8
        for lang in $(LINGUAS) ; do \
@@ -42,7 +39,7 @@ install: all
        done
 
 clean:
-       rm -f setfiles restorecon restorecon_xattr *.o setfiles.8.man
+       rm -f setfiles restorecon restorecon_xattr *.o
 
 indent:
        ../../scripts/Lindent $(wildcard *.[ch])
--

2.30.2

#2 lore raw
Quoted 7 lines · Nicolas Iooss
Quoted 5 lines · Ondrej Mosnacek

Seems to have been there to allow for some sed substitution over the text. Now that this is gone, the redundant intermediate file can be removed, too.

Quoted 7 lines
Quoted 1 line

Hello,
It seems nobody reviewed this patch, and it looks good to me. So if nobody complains, I will merge it tomorrow.

Merged.

Thanks,
Nicolas

Quoted 56 lines
Quoted 56 lines
---
 policycoreutils/setfiles/.gitignore | 1 -
 policycoreutils/setfiles/Makefile   | 9 +++------
 2 files changed, 3 insertions(+), 7 deletions(-)
 delete mode 100644 policycoreutils/setfiles/.gitignore
policycoreutils/setfiles/.gitignore deleted +0 -1
deleted file mode 100644
index 5e899c95..00000000
@@ -1 +0,0 @@
-setfiles.8.man
policycoreutils/setfiles/Makefile +3 -7
index a3bbbe11..63d81850 100644
@@ -13,7 +13,7 @@ ifeq ($(AUDITH), y)
        override LDLIBS += -laudit
 endif
 
-all: setfiles restorecon restorecon_xattr man
+all: setfiles restorecon restorecon_xattr
 
 setfiles: setfiles.o restore.o
 
@@ -22,16 +22,13 @@ restorecon: setfiles
 
 restorecon_xattr: restorecon_xattr.o restore.o
 
-man:
-       @cp -af setfiles.8 setfiles.8.man
-
 install: all
        [ -d $(DESTDIR)$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)$(MANDIR)/man8
        -mkdir -p $(DESTDIR)$(SBINDIR)
        install -m 755 setfiles $(DESTDIR)$(SBINDIR)
        (cd $(DESTDIR)$(SBINDIR) && ln -sf setfiles restorecon)
        install -m 755 restorecon_xattr $(DESTDIR)$(SBINDIR)
-       install -m 644 setfiles.8.man $(DESTDIR)$(MANDIR)/man8/setfiles.8
+       install -m 644 setfiles.8 $(DESTDIR)$(MANDIR)/man8/setfiles.8
        install -m 644 restorecon.8 $(DESTDIR)$(MANDIR)/man8/restorecon.8
        install -m 644 restorecon_xattr.8 $(DESTDIR)$(MANDIR)/man8/restorecon_xattr.8
        for lang in $(LINGUAS) ; do \
@@ -42,7 +39,7 @@ install: all
        done
 
 clean:
-       rm -f setfiles restorecon restorecon_xattr *.o setfiles.8.man
+       rm -f setfiles restorecon restorecon_xattr *.o
 
 indent:
        ../../scripts/Lindent $(wildcard *.[ch])
--

2.30.2