From 14a3e908c2b04418e438d0ef3b9418ed14258fae Mon Sep 17 00:00:00 2001
From: Pierre Labastie
Date: Thu, 18 Apr 2013 16:15:26 +0000
Subject: [PATCH] Order the depdendencies in xorg packages according to the
order in the "cat" command, rather than the order of the entity declarations
---
BLFS/gen-special.sh | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/BLFS/gen-special.sh b/BLFS/gen-special.sh
index b502cab..09ed608 100755
--- a/BLFS/gen-special.sh
+++ b/BLFS/gen-special.sh
@@ -97,9 +97,15 @@ EOF
cat >> tmpfile << EOF
EOF
-# In the list, the preceding package is a dependency of the following,
-# except the first:
- precpack=NONE
+# We extract the list of packages for an xorg page from
+# the version part of the .xml file. Seems that
+# the order is not always the same as in the "cat" command.
+# So we have to read that command too, since it may be assumed
+# that the preceding package is a dependency of the following,
+# except the first.
+ list_cat="$(sed -n '/>cat/,/EOF
>$SPECIAL_FILE << EOF
$packname
@@ -149,7 +161,6 @@ EOF
ref
EOF
- precpack=$packname
done
cat >>$SPECIAL_FILE << EOF