Skip to contentSkip to conversation

xfsdump: don't try to generate .ltdep in inventory/

PATCH Superseded Eric Sandeen 3 participants 5 messages Oct 2, 2020 – Dec 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsdump: don't try to generate .ltdep in inventory/

.ltdep gets generated from CFILES, and there are none in inventory/ so trying to generate it in that dir leads to a non-fatal error:

Building inventory

    [LTDEP]

gcc: fatal error: no input files
compilation terminated.

inventory/ - like common/ - has files that get linked into other dirs, and .ltdep is generated there. So, simply remove the .ltdep generation from the inventory/ dir.

---

inventory/Makefile +0 -2
index cda145e..6624fba 100644
@@ -12,5 +12,3 @@ LSRCFILES = inv_api.c inv_core.c inv_fstab.c inv_idx.c inv_mgr.c \
 default install install-dev:
 
 include $(BUILDRULES)
-
--include .ltdep
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Eric Sandeen

.ltdep gets generated from CFILES, and there are none in inventory/ so trying to generate it in that dir leads to a non-fatal error:

Building inventory

    [LTDEP]

gcc: fatal error: no input files
compilation terminated.

Quoted 6 lines

inventory/ - like common/ - has files that get linked into other dirs, and .ltdep is generated there. So, simply remove the .ltdep generation from the inventory/ dir.

looks fine.

Quoted 13 lines

---

inventory/Makefile +0 -2
index cda145e..6624fba 100644
@@ -12,5 +12,3 @@ LSRCFILES = inv_api.c inv_core.c inv_fstab.c inv_idx.c inv_mgr.c \
 default install install-dev:
 
 include $(BUILDRULES)
-
--include .ltdep
#2 lore raw

PATCH v2 1/1 xfsdump: don't try to generate .ltdep in inventory/

In reply to Eric Sandeen

.ltdep gets generated from CFILES, and there are none in inventory/ so trying to generate it in that dir leads to a non-fatal error when the include invokes the rule to build the .ltdep file:

Building inventory

    [LTDEP]

gcc: fatal error: no input files
compilation terminated.

inventory/ - like common/ - has files that get linked into other dirs, and .ltdep is generated in those other dirs, not in inventory/.

So, simply remove the .ltdep include/generation from the inventory/ dir, because there is no reason or ability to generate the file here.

---

V2: more comprehensive problem description

inventory/Makefile +0 -2
index cda145e..6624fba 100644
@@ -12,5 +12,3 @@ LSRCFILES = inv_api.c inv_core.c inv_fstab.c inv_idx.c inv_mgr.c \
 default install install-dev:
 
 include $(BUILDRULES)
-
--include .ltdep
Reviewed-by on v2 1/1
#3 lore raw
Quoted 9 lines · Eric Sandeen

.ltdep gets generated from CFILES, and there are none in inventory/ so trying to generate it in that dir leads to a non-fatal error when the include invokes the rule to build the .ltdep file:

Building inventory

    [LTDEP]

gcc: fatal error: no input files
compilation terminated.

Quoted 8 lines

inventory/ - like common/ - has files that get linked into other dirs, and .ltdep is generated in those other dirs, not in inventory/.

So, simply remove the .ltdep include/generation from the inventory/ dir, because there is no reason or ability to generate the file here.

Quoted 15 lines

---

V2: more comprehensive problem description

inventory/Makefile +0 -2
index cda145e..6624fba 100644
@@ -12,5 +12,3 @@ LSRCFILES = inv_api.c inv_core.c inv_fstab.c inv_idx.c inv_mgr.c \
 default install install-dev:
 
 include $(BUILDRULES)
-
--include .ltdep
Reviewed-by on v2 1/1
#4 lore raw
In reply to Eric Sandeen
Quoted 9 lines · Eric Sandeen

.ltdep gets generated from CFILES, and there are none in inventory/ so trying to generate it in that dir leads to a non-fatal error when the include invokes the rule to build the .ltdep file:

Building inventory

    [LTDEP]

gcc: fatal error: no input files
compilation terminated.

Quoted 8 lines

inventory/ - like common/ - has files that get linked into other dirs, and .ltdep is generated in those other dirs, not in inventory/.

So, simply remove the .ltdep include/generation from the inventory/ dir, because there is no reason or ability to generate the file here.

/me has long wondered why the source files in inventory and common are built separately for dump and restore instead of being dumped into a shared .a file and linked from both tools. There's probably some reason, though whether or not I really want to go digging into Yet Another Pile is questionable...

For shutting up the warning,

--D

Quoted 15 lines

---

V2: more comprehensive problem description

inventory/Makefile +0 -2
index cda145e..6624fba 100644
@@ -12,5 +12,3 @@ LSRCFILES = inv_api.c inv_core.c inv_fstab.c inv_idx.c inv_mgr.c \
 default install install-dev:
 
 include $(BUILDRULES)
-
--include .ltdep