mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
linux-rpm-*.mk: Fix pax_global_header
Fix pax_global_header, which is breaking kernel version detection for too old tar executables.
This commit is contained in:
parent
dc18a8fc4d
commit
eed3b76604
2 changed files with 4 additions and 4 deletions
|
|
@ -23,11 +23,11 @@ KERNEL_PKG_BASE = /home/samba/dat/share/exe/linux/os/$(KERNEL_MAJOR).$(KERN
|
|||
ifneq ($(wildcard $(KERNEL_PKG_BASE).*),)
|
||||
ifneq ($(wildcard $(KERNEL_PKG_BASE).gz),)
|
||||
KERNEL_PKG = $(KERNEL_PKG_BASE).gz
|
||||
KERNEL_SRC_DIR = $(shell tar -tzf $(KERNEL_DIR)/$(KERNEL_PKG) | head -1)
|
||||
KERNEL_SRC_DIR = $(shell tar -tzf $(KERNEL_DIR)/$(KERNEL_PKG) | grep -v pax_global_header | head -1)
|
||||
endif
|
||||
ifneq ($(wildcard $(KERNEL_PKG_BASE).bz2),)
|
||||
KERNEL_PKG = $(KERNEL_PKG_BASE).bz2
|
||||
KERNEL_SRC_DIR = $(shell tar -tjf $(KERNEL_DIR)/$(KERNEL_PKG) | head -1)
|
||||
KERNEL_SRC_DIR = $(shell tar -tjf $(KERNEL_DIR)/$(KERNEL_PKG) | grep -v pax_global_header | head -1)
|
||||
endif
|
||||
else
|
||||
KERNEL_PKG = $(KERNEL_PKG_BASE).bz2
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ KERNEL_PKG_BASE = /home/samba/dat/share/exe/linux/os/$(KERNEL_MAJOR).$(KERN
|
|||
ifneq ($(wildcard $(KERNEL_PKG_BASE).*),)
|
||||
ifneq ($(wildcard $(KERNEL_PKG_BASE).gz),)
|
||||
KERNEL_PKG = $(KERNEL_PKG_BASE).gz
|
||||
KERNEL_SRC_DIR = $(shell tar -tzf $(KERNEL_DIR)/$(KERNEL_PKG) | head -1)
|
||||
KERNEL_SRC_DIR = $(shell tar -tzf $(KERNEL_DIR)/$(KERNEL_PKG) | grep -v pax_global_header | head -1)
|
||||
endif
|
||||
ifneq ($(wildcard $(KERNEL_PKG_BASE).bz2),)
|
||||
KERNEL_PKG = $(KERNEL_PKG_BASE).bz2
|
||||
KERNEL_SRC_DIR = $(shell tar -tjf $(KERNEL_DIR)/$(KERNEL_PKG) | head -1)
|
||||
KERNEL_SRC_DIR = $(shell tar -tjf $(KERNEL_DIR)/$(KERNEL_PKG) | grep -v pax_global_header | head -1)
|
||||
endif
|
||||
else
|
||||
KERNEL_PKG = $(KERNEL_PKG_BASE).bz2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue