Changeset 7e5ff87
- Timestamp:
- 03/11/2017 04:53:29 PM (7 years ago)
- Branches:
- new_features
- Children:
- e43d0d0
- Parents:
- e06a0d3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/master.sh
re06a0d3 r7e5ff87 379 379 *how-to-view*) continue ;; 380 380 *whatnext*) continue ;; 381 *fstab) [[ ! -z ${FSTAB} ]] &&381 *fstab) [[ -z "${FSTAB}" ]] || 382 382 [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] || 383 383 cp ${FSTAB} $BUILDDIR/sources/fstab ;; … … 500 500 *devices) wrt_RunAsRoot "${file}" ;; 501 501 *fstab) 502 if [[ -n "$ FSTAB" ]]; then502 if [[ -n "${FSTAB}" ]]; then 503 503 LUSER_wrt_CopyFstab 504 504 else … … 735 735 736 736 case $this_script in 737 *udev) continue ;; # This is not a script but a comment ary, we want udev-rules737 *udev) continue ;; # This is not a script but a comment, we want udev-rules 738 738 *console*) continue ;; # Use the files that came with the bootscripts 739 739 # fstab is now here (for 3.x.y) 740 *fstab) [[ ! -z ${FSTAB} ]] &&740 *fstab) [[ -z "${FSTAB}" ]] || 741 741 [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] || 742 742 cp ${FSTAB} $BUILDDIR/sources/fstab ;; … … 913 913 case $this_script in 914 914 *grub | *aboot | *colo | *silo | *arcload | *lilo | *reboot* ) continue ;; 915 *fstab) [[ ! -z ${FSTAB} ]] &&915 *fstab) [[ -z "${FSTAB}" ]] || 916 916 [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] || 917 917 cp ${FSTAB} $BUILDDIR/sources/fstab ;; -
LFS/master.sh
re06a0d3 r7e5ff87 313 313 case ${this_script} in 314 314 *grub) continue ;; 315 *fstab) [[ ! -z ${FSTAB} ]] &&315 *fstab) [[ -z "${FSTAB}" ]] || 316 316 [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] || 317 317 cp ${FSTAB} $BUILDDIR/sources/fstab ;; … … 367 367 # Check if we have a real /etc/fstab file 368 368 case "${this_script}" in 369 *fstab) if [[ -n $FSTAB]]; then369 *fstab) if [[ -n "$FSTAB" ]]; then 370 370 CHROOT_wrt_CopyFstab 371 371 else -
README.PACKAGE_MANAGEMENT
re06a0d3 r7e5ff87 6 6 There are several hints discussing package management for LFS, but 7 7 nothing under jhalfs. There used to be a patch for PACO that I cannot 8 find now. This is a modification , which allows to use a package manager9 inside jhalfs. I hope it is flexible enough to support several package10 managers. My implementation uses dpkg, from Debian, in a very crude way.11 Debian has a sophisticated package management system, which I have not12 tried to use here. For example, it should be usable with Pacman from13 Arch Linux (http://www.archlinux.org), as far as I remember from my old14 days with DIYL. I am sorry to say I have (almost) no experience with15 rpm, so I cannot tell whether it would fit.8 find now. This is a modification ("DESTDIR install" automation), which 9 allows to use a package manager inside jhalfs. I hope it is flexible enough 10 to support several package managers, at least among those who use DESTDIR 11 install. My initial implementation used dpkg, from Debian, in a very 12 crude way (Debian has a sophisticated package management system, which 13 I have not tried to use here). There is also a port to Pacman from 14 Arch Linux (http://www.archlinux.org). I am sorry to say I have (almost) 15 no experience with rpm, so I cannot tell whether it would fit. 16 16 17 17 2. OVERVIEW OF THE SYSTEM: … … 57 57 function should be defined in a file named `packInstall.sh', residing in 58 58 the `pkgmngt' directory. A template is provided, as well as two example 59 scripts for dpkg and pacman. 59 scripts for dpkg and pacman. Note that, due to the way pacman checks the 60 available space on disk, the root directory in chroot must be a mount point, 61 otherwise the installation of packages fails. -
pkgmngt/packageManager.xml.dpkg
re06a0d3 r7e5ff87 10 10 <!ENTITY external "Optional dependencies"> 11 11 <!ENTITY debian-pool "http://ftp2.fr.debian.org/debian/pool/main/"> 12 <!ENTITY dpkg-version "1.18. 3">13 <!ENTITY dpkg-size "4, 258KB">12 <!ENTITY dpkg-version "1.18.23"> 13 <!ENTITY dpkg-size "4,411 KB"> 14 14 <!ENTITY dpkg-url "&debian-pool;d/dpkg/dpkg_&dpkg-version;.tar.xz"> 15 <!ENTITY dpkg-md5 " a5ca138121cc37c8fb0083462a3b4d47">15 <!ENTITY dpkg-md5 "2195338c1792b0678575309a099d2da8"> 16 16 <!ENTITY dpkg-home "http://wiki.debian.org/Teams/Dpkg"> 17 17 <!ENTITY dpkg-ch5-du "56 MB"> … … 112 112 --disable-start-stop-daemon \ 113 113 --disable-update-alternatives \ 114 --without-zlib --with-liblzma=static --without- selinux</userinput></screen>114 --without-zlib --with-liblzma=static --without-libselinux</userinput></screen> 115 115 116 116 <variablelist> … … 158 158 159 159 <varlistentry> 160 <term><parameter>--without- selinux</parameter></term>160 <term><parameter>--without-libselinux</parameter></term> 161 161 <listitem> 162 162 <para>Disable building for <application>selinux</application>, which 163 is not used w oth LFS/BLFS.</para>163 is not used with LFS/BLFS.</para> 164 164 </listitem> 165 165 </varlistentry> … … 276 276 --disable-start-stop-daemon \ 277 277 --disable-update-alternatives \ 278 --without- selinux</userinput></screen>278 --without-libselinux</userinput></screen> 279 279 280 280 <variablelist> … … 305 305 306 306 <varlistentry> 307 <term><parameter>--without- selinux</parameter></term>307 <term><parameter>--without-libselinux</parameter></term> 308 308 <listitem> 309 309 <para>Selinux is not used in LFS.</para> -
pkgmngt/packageManager.xml.pacman
re06a0d3 r7e5ff87 23 23 <para>Download: <ulink url="http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz"/></para> 24 24 <para>MD5 sum: <literal>efad5a503f66329bb9d2f4308b5de98a</literal></para> 25 <para>Download: <ulink url=" ftp://ftp.archlinux.org/other/pacman/pacman-4.1.2.tar.gz"/></para>25 <para>Download: <ulink url="https://sources.archlinux.org/other/pacman/pacman-4.1.2.tar.gz"/></para> 26 26 <para>MD5 sum: <literal>063c8b0ff6bdf903dc235445525627cd</literal></para> 27 27 </sect1> … … 44 44 <screen><userinput remap="configure">./configure --prefix=/tools \ 45 45 --without-bz2lib \ 46 --without-xml2 \ 46 47 --enable-bsdtar=static \ 47 48 --enable-bsdcpio=static</userinput></screen> … … 76 77 can also use remap="adjust" for the same purpose. --> 77 78 <screen><userinput remap="configure">./configure --prefix=/tools \ 79 --without-openssl \ 78 80 PKG_CONFIG_PATH=/tools/lib/pkgconfig \ 79 81 DUPATH=/tools/bin/du</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.