needed. Dynamic linking during program execution will be marginally
slower.
-=item B<--no-pack-executables>
-
=item B<--pack-executables>
-Pack executables and shell scripts using L<upx(1)>.
-
-This is not done by default because although it can reduce the image
-size, it increases the amount of memory used since those executables
-cannot be shared.
+This option has been removed in febootstrap 2.5. In previous versions
+it was used to pack executables using the external C<upx> program.
+However it was not enabled by default and never worked very
+effectively.
=back
TEMP=`getopt \
-o '' \
- --long help,all,none,keep-locales,drop-locales,keep-docs,drop-docs,keep-cracklib,drop-cracklib,keep-i18n,drop-i18n,keep-zoneinfo,drop-zoneinfo,keep-rpmdb,drop-rpmdb,keep-yum-cache,drop-yum-cache,keep-services,drop-services,keep-sln,drop-sln,keep-ldconfig,drop-ldconfig,no-pack-executables,pack-executables \
+ --long help,all,none,keep-locales,drop-locales,keep-docs,drop-docs,keep-cracklib,drop-cracklib,keep-i18n,drop-i18n,keep-zoneinfo,drop-zoneinfo,keep-rpmdb,drop-rpmdb,keep-yum-cache,drop-yum-cache,keep-services,drop-services,keep-sln,drop-sln,keep-ldconfig,drop-ldconfig \
-n febootstrap-minimize -- "$@"`
if [ $? != 0 ]; then
echo "febootstrap-minimize: problem parsing the command line arguments"
}
set_all
-pack_executables=no
usage ()
{
--drop-ldconfig)
keep_ldconfig=no
shift;;
- --no-pack-executables)
- pack_executables=no
- shift;;
- --pack-executables)
- pack_executables=yes
- shift;;
--help)
usage
exit 0;;
febootstrap-run "$target" -- rm -rf var/cache/ldconfig
febootstrap-run "$target" -- mkdir -p --mode=0755 var/cache/ldconfig
fi
-
-if [ "$pack_executables" = "yes" ]; then
- # NB. Be careful to keep the same inode number, since fakeroot
- # tracks files by inode number.
- for path in $(find "$target" -type f -perm /111 |
- xargs file |
- grep executable |
- awk -F: '{print $1}'); do
- base=$(basename "$path")
- cp "$path" "$tmpdir"
- (cd "$tmpdir" && upx -q -q --best "$base")
- cat "$tmpdir"/"$base" > "$path"
- rm "$tmpdir"/"$base"
- done
-fi