The Parted package is a disk partitioning and partition resizing tool.
This package is known to build and work properly using an LFS-8.3 platform.
Download (HTTP): https://ftp.gnu.org/gnu/parted/parted-3.2.tar.xz
Download (FTP): ftp://ftp.gnu.org/gnu/parted/parted-3.2.tar.xz
Download MD5 sum: 0247b6a7b314f8edeb618159fa95f9cb
Download size: 1.6 MB
Estimated disk space required: 27 MB (additional 2 MB for the tests and additional 1 MB for optional PDF and Postscript documentation)
Estimated build time: 0.4 SBU (additional 0.6 SBU for the tests)
Optional, to fix build without device mapper support: http://www.linuxfromscratch.org/patches/blfs/svn/parted-3.2-devmapper-1.patch
LVM2 (needed for device-mapper, required if building udisks), pth, and texlive (or tl-installer
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/parted
If you want to build without device mapper support, a fix is necessary:
patch -Np1 -i ../parted-3.2-devmapper-1.patch
Install Parted by running the following commands:
sed -i '/utsname.h/a#include <sys/sysmacros.h>' libparted/arch/linux.c && ./configure --prefix=/usr --disable-static --disable-device-mapper && make && make -C doc html && makeinfo --html -o doc/html doc/parted.texi && makeinfo --plaintext -o doc/parted.txt doc/parted.texi
If you have texlive installed and wish to create PDF and Postcript documentation issue the following commands:
texi2pdf -o doc/parted.pdf doc/parted.texi && texi2dvi -o doc/parted.dvi doc/parted.texi && dvips -o doc/parted.ps doc/parted.dvi
If you wish to run the test suite, first remove a test that normally fails in BLFS (because it needs a locale C.UTF-8):
sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile
To test the results, issue: make
check. Note that many tests are skipped if not run
as the root
user.
Now, as the root
user:
make install && install -v -m755 -d /usr/share/doc/parted-3.2/html && install -v -m644 doc/html/* \ /usr/share/doc/parted-3.2/html && install -v -m644 doc/{FAT,API,parted.{txt,html}} \ /usr/share/doc/parted-3.2
If you generated the optional PDF and Postscript documentation
above, intstall the documentation by issuing the following command
as the root
user:
install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \ /usr/share/doc/parted-3.2
sed ...: Add a header to allow building with glibc-2.28 or later.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--disable-device-mapper
: This option
disables device mapper support. Add this parameter if you have not
installed LVM2.
Last updated on 2018-11-09 11:58:23 -0800