mirror of
https://github.com/openwrt/packages.git
synced 2025-12-28 16:30:06 +04:00
utils/tar: Fix defaulting to selecting dependencies
Due to KConfig misbehavior the tar config options where getting enabled even when tar was not enabled. We fix this by enclosing the options in an if PACKAGE_tar ; endif block. Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
This commit is contained in:
@@ -36,27 +36,29 @@ define Package/tar
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/tar/config
|
define Package/tar/config
|
||||||
config PACKAGE_TAR_POSIX_ACL
|
if PACKAGE_tar
|
||||||
bool "tar: Enable POSIX ACL support" if PACKAGE_tar
|
config PACKAGE_TAR_POSIX_ACL
|
||||||
default n
|
bool "tar: Enable POSIX ACL support"
|
||||||
|
default n
|
||||||
|
|
||||||
config PACKAGE_TAR_XATTR
|
config PACKAGE_TAR_XATTR
|
||||||
bool "tar: Enable extended attribute (xattr) support" if PACKAGE_tar
|
bool "tar: Enable extended attribute (xattr) support"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config PACKAGE_TAR_GZIP
|
config PACKAGE_TAR_GZIP
|
||||||
bool "tar: Enable seamless gzip support" if PACKAGE_tar
|
bool "tar: Enable seamless gzip support"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config PACKAGE_TAR_BZIP2
|
config PACKAGE_TAR_BZIP2
|
||||||
bool "tar: Enable seamless bzip2 support" if PACKAGE_tar
|
bool "tar: Enable seamless bzip2 support"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config PACKAGE_TAR_XZ
|
config PACKAGE_TAR_XZ
|
||||||
bool "tar: Enable seamless xz support" if PACKAGE_tar
|
bool "tar: Enable seamless xz support"
|
||||||
select PACKAGE_xz-utils
|
select PACKAGE_xz-utils
|
||||||
select PACKAGE_xz
|
select PACKAGE_xz
|
||||||
default y
|
default y
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/tar/description
|
define Package/tar/description
|
||||||
|
|||||||
Reference in New Issue
Block a user