|
From: | Grégoire Sutre |
Subject: | [PATCH] File name transformations (split into 7 diffs) |
Date: | Fri, 04 Jun 2010 01:42:40 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100411 Icedove/3.0.4 |
Hi, This is the same patch as I sent before, but this time split into 7 diffs (which must be successively applied in order) and with a cleaner changelog. I hope that this will facilitate the review. This version does not include the --root-directory addition to grub-mkconfig, as this is quite orthognal to the goal of the patch (file name transformation). I welcome your comments, Grégoire --- mostly taken from my previous message ------------------------------ The attached patch fixes problems with file name transformations, which are partly broken in trunk. With this patch, several installations of grub can coexist with no conflict (at least they should), sharing however the same configuration directory (etc/grub.d). For instance: ./configure --program-transform-name=s,grub,aaa, will install bin/aaa-*, sbin/aaa-*, etc. The default grub directory will be /boot/aaa, modules will be installed there and grub-mkconfig will look for them there. The main changes in the patch are: - configure defines three new variables, accounting for transformations: . pkgdatadir (${datadir}/grub) . pkglibrootdir (${libdir}/grub) . defaultbootdir (/boot/grub, or /grub if OS is NetBSD or OpenBSD) - these variables are used in Makefile and in util/... scripts - output of --help and of --version in scripts uses `basename $0` and the same format as the one in binaries. - in Makefile, the help2man, .info, and .mo rules also account for file name transformations. - grub-mkconfig exports GRUB_DIR, which is used by grub-mkconfig_lib and by 00_header. -----------------------------------------------------------------------
file-name-transformations_1.diff
Description: Text Data
file-name-transformations_2.diff
Description: Text Data
file-name-transformations_3.diff
Description: Text Data
file-name-transformations_4.diff
Description: Text Data
file-name-transformations_5.diff
Description: Text Data
file-name-transformations_6.diff
Description: Text Data
file-name-transformations_7.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |