Changeset bd07ef5


Ignore:
Timestamp:
02/22/2015 09:20:37 PM (9 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
6c97d02
Parents:
d607ac3
Message:

The preceding fix is just a workaround, but the correct fix is:

  • the problem is when a .dep file contains pack-A pack-B pack-A. If pack-A

and pack-B have some dep in common, say pack-C, that dep is erased from
pack-B, with the idea that it will be built as a dep of pack-A. But when
the program encounters the second pack-A, it removes the first one, so that
pack-C is built before the second pack-A, but after pack-B. Sorting was
a good workaround, but removing the last line instead of the first is
much better.

  • Otherwise, add Xfce and Lxde to the list of packages whose preceding

sibling is a required dep.

Location:
BLFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/func_dependencies

    rd607ac3 rbd07ef5  
    114114
    115115    if [[ -f ${id_of_dep}.dep ]]; then
    116       sort ${id_of_dep}.dep -o ${id_of_dep}.dep
    117116      sed -i "1i${rootlink[*]} $count" ${id_of_dep}.dep
    118117      generate_dependency_tree ${id_of_dep}.dep
     
    153152# that line
    154153for line in $lines_to_remove
    155   do lineno=$(sed -n /^$line\$/= $DepFile | head -n1)
     154  do lineno=$(sed -n /^$line\$/= $DepFile | tail -n1)
    156155  sed -i ${lineno}d $DepFile
    157156done
  • BLFS/xsl/gen_pkg_list.xsl

    rd607ac3 rbd07ef5  
    203203<!-- If in Xorg (not anymore) or KDE chapter, consider that the preceding
    204204     package is the first dependency (not always noted in the book)-->
    205           <xsl:if test="ancestor::chapter[@id='kde4-core']">
     205          <xsl:if test="ancestor::chapter[@id='kde4-core'
     206                                       or @id='xfce-core'
     207                                       or @id='lxde-desktop']
     208                    and preceding-sibling::sect1[1]">
    206209            <xsl:text>
    207210            </xsl:text>
Note: See TracChangeset for help on using the changeset viewer.