Skip to contentSkip to conversation

mmc-utils: create mandir during install

PATCH Applied Rudi Heitbaum 3 participants 3 messages Jul 21, 2024 – Aug 1, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc-utils: create mandir during install

fixes install faikure when mandir is not already created

install -m 644 mmc.1 /usr/share/man/man1
install: cannot create regular file '/usr/share/man/man1': No such file or directory

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index 9e14a5c..06ae0f7 100644
@@ -53,6 +53,7 @@ clean:
 install: $(progs)
 	$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
 	$(INSTALL) $(progs) $(DESTDIR)$(bindir)
+	$(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man1
 	$(INSTALL) -m 644 mmc.1 $(DESTDIR)$(mandir)/man1
 
 -include $(foreach obj,$(objects), $(dir $(obj))/.$(notdir $(obj)).d)
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line

fixes install faikure when mandir is not already created

                       ^^^^^^  failure 
Quoted 6 lines

install -m 644 mmc.1 /usr/share/man/man1
install: cannot create regular file '/usr/share/man/man1': No such file or
directory

Quoted 18 lines
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -1
index 9e14a5c..06ae0f7 100644
@@ -53,6 +53,7 @@ clean:
 install: $(progs)
        $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
        $(INSTALL) $(progs) $(DESTDIR)$(bindir)
+       $(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man1
        $(INSTALL) -m 644 mmc.1 $(DESTDIR)$(mandir)/man1
 
 -include $(foreach obj,$(objects), $(dir $(obj))/.$(notdir $(obj)).d)
--

2.43.0

Applied
#2 lore raw
In reply to Rudi Heitbaum
Quoted 7 lines · Rudi Heitbaum

fixes install faikure when mandir is not already created

install -m 644 mmc.1 /usr/share/man/man1
install: cannot create regular file '/usr/share/man/man1': No such file or directory

Applied to git.kernel.org/pub/scm/utils/mmc/mmc-utils.git master, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -1
index 9e14a5c..06ae0f7 100644
@@ -53,6 +53,7 @@ clean:
 install: $(progs)
        $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
        $(INSTALL) $(progs) $(DESTDIR)$(bindir)
+       $(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man1
        $(INSTALL) -m 644 mmc.1 $(DESTDIR)$(mandir)/man1
 
 -include $(foreach obj,$(objects), $(dir $(obj))/.$(notdir $(obj)).d)
--

2.43.0