From 5fb012da9a5b2cff3e22d12fa18a3b4d49690379 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 17 Nov 2015 20:18:23 +0000 Subject: Add non-versioned packages in packages.xml. This allows for example to list dependencies of CA certificates --- BLFS/gen-special.sh | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'BLFS/gen-special.sh') diff --git a/BLFS/gen-special.sh b/BLFS/gen-special.sh index 09ed6087d7..828a2b6215 100755 --- a/BLFS/gen-special.sh +++ b/BLFS/gen-special.sh @@ -11,7 +11,10 @@ # - If a package is part of a group of xorg packages (proto, fonts, etc) # there is no easy way to extract it from the xml. We use the ENTITY at # the top of each file x7*.xml -# - If a pacakge is versioned but the version is not mentioned in the book +# - Some non-versioned packages are needed as dependencies of others: we +# attribute version 1.0.0 to them. It is just used to know if the package +# is installed, by checking inst-version. +# - If a package is versioned but the version is not mentioned in the book # (currently only udev), we retrieve the version by other means #------------------------------------------------------------------------- # Arguments: @@ -34,6 +37,10 @@ if test -z "${BLFS_DIR}"; then BLFS_DIR=$(cd $(dirname ${BLFS_XML})/.. ; pwd);fi EXCEPTIONS=$(grep 'ENTITY.*version[ ]*"[^0-9"&.].*[0-9]' $BLFS_XML | sed 's@^[^"]*"\([^"]*\)".*@\1@') +# Non-versioned packages: +NV_LIST="cacerts xorg-env kde-pre-install-config kf5-intro lxqt-pre-install \ +ojdk-conf tex-path" + # Set PATH to be sure to find udevadm SAVPATH=$PATH PATH=/bin:/sbin:/usr/bin:/usr/sbin @@ -75,6 +82,36 @@ cat >$SPECIAL_FILE << EOF EOF +# Non-versionned packages. Add to NV_LIST if you need more. +for nv_id in $NV_LIST; do + cat >>$SPECIAL_FILE << EOF + + + + $nv_id + + 1.0.0 + + + + + + + + + + + + +EOF +done + # Taking packages inside x7proto etc, as versionned modules. # We also write a dependency expansion when a dep is of the form # xorg7-something. Since that is another template, we need -- cgit v1.2.3-54-g00ecf