Changeset b9c3497 for pkgmngt


Ignore:
Timestamp:
12/13/2014 11:10:32 AM (9 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
56d8426
Parents:
57ef0c1
Message:
  • Update to new dpkg version
  • Remove underscore from version strings, since dpkg does not support it
  • Update packInstall.sh.template to show how to remove underscore
Location:
pkgmngt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pkgmngt/packInstall.sh

    r57ef0c1 rb9c3497  
    1414  tidy*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*\([0-9]*\)/\1cvs/') ;;
    1515  docbook-xml) local VERSION=4.5 ;;
    16   *) local VERSION=$(echo ${PCKGVRS} | sed 's/^.*-\([0-9]\)/\1/');;
     16  *) local VERSION=$(echo ${PCKGVRS} | sed 's/^.*-\([0-9]\)/\1/' |
     17                   sed 's/_/./g');;
     18# the last sed above is because dpkg does not want a '_' in version.
    1719esac
    1820local ARCHIVE_NAME=$(dirname ${PKGDIR})/${PACKAGE}_${VERSION}.deb
     
    3234Architecture: $ARCH
    3335EOF
    34 dpkg-deb -b . $ARCHIVE_NAME
     36dpkg-deb -z9 -b . $ARCHIVE_NAME
    3537dpkg -i $ARCHIVE_NAME
    3638mv -v $ARCHIVE_NAME /var/lib/packages
  • pkgmngt/packInstall.sh.template

    r57ef0c1 rb9c3497  
    1818  tidy*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*\([0-9]*\)/\1cvs/') ;;
    1919  docbook-xml) local VERSION=4.5 ;;
    20   *) local VERSION=$(echo ${PCKGVRS} | sed 's/^.*[-_]\([0-9]\)/\1/');;
     20  *) local VERSION=$(echo ${PCKGVRS} | sed 's/^.*[-_]\([0-9]\)/\1/' |
     21                   sed 's/_/./g');;
     22# the last sed above is because some package managers do not want a '_'
     23# in version.
    2124esac
    2225local ARCHIVE_NAME=$(dirname ${PKGDIR})/${PACKAGE}_${VERSION}.deb
  • pkgmngt/packageManager.xml

    r57ef0c1 rb9c3497  
    1010<!ENTITY external "Optional dependencies">
    1111<!ENTITY debian-pool "http://ftp2.fr.debian.org/debian/pool/main/">
    12 <!ENTITY dpkg-version "1.16.1.2">
    13 <!ENTITY dpkg-size "5,236 KB">
    14 <!ENTITY dpkg-url "&debian-pool;d/dpkg/dpkg_&dpkg-version;.tar.bz2">
    15 <!ENTITY dpkg-md5 "068ae5e650e54968230de19d6c4e2241">
     12<!ENTITY dpkg-version "1.17.22">
     13<!ENTITY dpkg-size "4,259 KB">
     14<!ENTITY dpkg-url "&debian-pool;d/dpkg/dpkg_&dpkg-version;.tar.xz">
     15<!ENTITY dpkg-md5 "c9c46c5318c98c9162fbd03d24f2f95b">
    1616<!ENTITY dpkg-home "http://wiki.debian.org/Teams/Dpkg">
    17 <!ENTITY dpkg-ch5-du "5 MB">
    18 <!ENTITY dpkg-ch5-sbu "0.4 SBU">
    19 <!ENTITY dpkg-ch6-du "5 MB">
    20 <!ENTITY dpkg-ch6-sbu "0.4 SBU">
     17<!ENTITY dpkg-ch5-du "54 MB">
     18<!ENTITY dpkg-ch5-sbu "0.3 SBU">
     19<!ENTITY dpkg-ch6-du "63 MB">
     20<!ENTITY dpkg-ch6-sbu "0.5 SBU">
    2121]>
    2222<article>
     
    104104
    105105    <para>Since Debian is shipping its own package, all patches have already
    106     been applied. However, the <command>configure</command> script calls
    107     <command>dpkg</command> itself, which is found only on Debian hosts. The
    108     following <command>sed</command> command prevents that call:</para>
    109 
    110     <screen><userinput remap="pre">sed '/\$v[{]DEB_BUILD/d' \
    111           -i scripts/dpkg-architecture.pl</userinput></screen>
     106    been applied. Nevertheless there is either a bug or something
     107    I do not understand... Apply this:</para>
     108
     109    <screen><userinput remap="pre">sed -i '/compress_filter(s/,/va_start/s/^$/compressor_fixup_params(params);\n/' lib/dpkg/compress.c</userinput></screen>
    112110
    113111    <para> Configure the package:</para>
    114112
    115113    <screen><userinput remap="configure">./configure --prefix=/tools \
    116     --disable-nls --without-dselect \
    117     --without-start-stop-daemon \
    118     --without-update-alternatives \
    119     --without-install-info \
    120     --without-zlib --with-bz2=static --without-selinux</userinput></screen>
     114    --disable-nls --disable-dselect \
     115    --disable-start-stop-daemon \
     116    --disable-update-alternatives \
     117    --without-zlib --with-liblzma=static --without-selinux</userinput></screen>
    121118
    122119    <variablelist>
     
    124121
    125122      <varlistentry>
    126         <term><parameter>--without-dselect</parameter></term>
     123        <term><parameter>--disable-dselect</parameter></term>
    127124        <listitem>
    128125          <para>Avoids building <command>dselect</command>, an
     
    132129
    133130      <varlistentry>
    134         <term><parameter>--without-start-stop-daemon</parameter></term>
     131        <term><parameter>--disable-start-stop-daemon</parameter></term>
    135132        <listitem>
    136133          <para>The utility <command>start-stop-daemon</command>
     
    140137
    141138      <varlistentry>
    142         <term><parameter>--without-update-alternatives</parameter></term>
     139        <term><parameter>--disable-update-alternatives</parameter></term>
    143140        <listitem>
    144141          <para>Same for <command>update-alternatives</command>.</para>
     
    147144
    148145      <varlistentry>
    149         <term><parameter>--without-install-info</parameter></term>
    150         <listitem>
    151           <para>Debian <command>install-info</command> is a wrapper to
    152           <command>install-info</command> installed by Texinfo. Not
    153           needed either.</para>
     146        <term><parameter>--without-zlib</parameter></term>
     147        <listitem>
     148          <para>Use <command>gzip</command> for compression of binary
     149          packages instead of the zlib library, which is not installed
     150          in chapter 5.</para>
     151        </listitem>
     152      </varlistentry>
     153
     154      <varlistentry>
     155        <term><parameter>--with-liblzma=static</parameter></term>
     156        <listitem>
     157          <para>Use statically linked <command>liblzma</command> for compression
     158          of binary packages.</para>
     159        </listitem>
     160      </varlistentry>
     161
     162      <varlistentry>
     163        <term><parameter>--without-selinux</parameter></term>
     164        <listitem>
     165          <para>Disable building for <application>selinux</application>, which
     166          is not used woth LFS/BLFS.</para>
    154167        </listitem>
    155168      </varlistentry>
     
    258271
    259272    <para>Since Debian is shipping its own package, all patches have already
    260     been applied. We can go directly to configuring it:</para>
     273    been applied. We do not need more in chapter 6. Configure it:</para>
    261274
    262275    <screen><userinput remap="configure">./configure --prefix=/usr \
    263276        --sysconfdir=/etc \
    264277        --localstatedir=/var \
    265         --without-dselect \
    266         --without-start-stop-daemon \
    267         --without-update-alternatives \
    268         --without-install-info \
     278        --disable-dselect \
     279        --disable-start-stop-daemon \
     280        --disable-update-alternatives \
    269281        --without-selinux</userinput></screen>
    270282
     
    273285
    274286      <varlistentry>
    275         <term><parameter>--without-dselect</parameter></term>
     287        <term><parameter>--disable-dselect</parameter></term>
    276288        <listitem>
    277289          <para>Avoids building <command>dselect</command>, an
     
    281293
    282294      <varlistentry>
    283         <term><parameter>--without-start-stop-daemon</parameter></term>
     295        <term><parameter>--disable-start-stop-daemon</parameter></term>
    284296        <listitem>
    285297          <para>The utility <command>start-stop-daemon</command>
     
    289301
    290302      <varlistentry>
    291         <term><parameter>--without-update-alternatives</parameter></term>
     303        <term><parameter>--disable-update-alternatives</parameter></term>
    292304        <listitem>
    293305          <para>Same for <command>update-alternatives</command>.</para>
     
    296308
    297309      <varlistentry>
    298         <term><parameter>--without-install-info</parameter></term>
    299         <listitem>
    300           <para>Debian <command>install-info</command> is a wrapper to
    301           <command>install-info</command> installed by Texinfo. Not
    302           needed either.</para>
     310        <term><parameter>--without-selinux</parameter></term>
     311        <listitem>
     312          <para>Selinux is not used in LFS.</para>
    303313        </listitem>
    304314      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.