# gparted/cfg - "Build" settings for package #--------------------------------------------------------------------- [about] "gparted" (AKA GNOME Partition Editor) GNOME Partition Editor is a graphical front-end to "libparted". It supports creating, resizing, moving, and copying partitions of various types. Note: Despite the program's name, it doesn't require GNOME (just some of the GNOME libraries). #--------------------------------------------------------------------- [technotes] 1. "gparted" requires superuser privileges. Ordinary users can't run it. One possible fix is to add a line of the following form to "/etc/sudoers": ALL ALL = NOPASSWD: /opt/gparted/bin/gparted Modify the path shown here appropriately. If you do this, ordinary users should be able to run "gparted" as fol- lows: sudo gparted Note: This approach raises security issues. #--------------------------------------------------------------------- 2. "gparted" has a strange problem related to "inline" code. Specific- ally, "builds" may fail with confusing error messages about "linkonce" issues and "discarded sections". If the problem occurs, there are four possible solutions: a. You can use a version of "gcc" 3 with the Linux From Scratch "gcc-linkonce" patch applied. This distro's copy of "gcc" 3 includes the patch. You should be able to get the patch from the same place that you obtained this file (see below). b. If rebuilding "gcc" 3 isn't an option, you can patch the "gparted" sources. You should be able to get an appropriate "gparted-linkonce" patch from the same place that you obtain- ed this file (see below). Note: The "gparted-linkonce" patch turns "-fno-inline" mode on. This seems to solve the problem. However, the "gcc- linkonce" patch is a better solution, because "-fno-inline" produces less-efficent code. c. You can build "gparted" using a compiler from the "gcc" 4.X series or above. Presently, this is the solution that we're using. #--------------------------------------------------------------------- 3. Important: If the "make install-data" step is omitted at "build" time, "gparted" may print error messages at run-time about memory corruption. #--------------------------------------------------------------------- [buildtimes] 00.01 hours (or 000.43 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.04 hours (or 002.18 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.07 hours (or 004.50 minutes) - Toshiba Satellite C655 E-300 CPU 4 GB RAM 00.17 hours (or 010.13 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] exepack = yes fortran = disabled license = See "license*.txt" in installed tree licfile = COPYING setpaths = gettext gparted gtk3-gtkmm libsigcpp210 tmpsize = 76M #--------------------------------------------------------------------- [depends] actools cpan-xml-parser e2fsprogs # For "libuuid" gawk gettext grep gtk2-gtkmm gtk3-gtkmm gtkcore libsigcpp210 parted perl pkgconf sed udftools #--------------------------------------------------------------------- [configure] MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-dependency-tracking \ --disable-doc \ --disable-nls \ --disable-scrollkeeper \ --enable-shared=yes \ --enable-static=no \ --mandir=$MANBASE sed -e "s|pixmaps po src|pixmaps src|" -i Makefile # I dislike "libtool" sed -e "s|if test -z \".tagname\"; then|& tagname=\"CXX\"; \ fi; if false; then|" \ -i libtool chmod 755 libtool #--------------------------------------------------------------------- [build] smpmake && make install && make install-data #--------------------------------------------------------------------- [postbuild] MANDIR=$PKGDIR_PROD/man/man1 mkdir -p $MANDIR cp -p debian/gparted.1 $MANDIR/ #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/gparted url_home = http://gparted.org/ url_lfs = n/a url_tarball = http://downloads.sourceforge.net/\ gparted/gparted-1.3.1.tar.gz #--------------------------------------------------------------------- [history] 170809 Updated to 0.29.0 171013 Updated to 0.30.0 180320 Updated to 0.31.0 180823 Updated to 0.32.0 181215 Updated to 0.33.0 210222 Updated to 1.2.0 210507 Updated to 1.3.0 210720 Updated to 1.3.1