From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] File name transformations (split into 7 diffs)
Date: Wed, 21 Jul 2010 07:11:37 +0200 [thread overview]
Message-ID: <4C468189.9010106@gmail.com> (raw)
In-Reply-To: <4C083DF0.6080508@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2175 bytes --]
On 06/04/2010 01:42 AM, Grégoire Sutre wrote:
> +pkglibrootdir=${libdir}/`echo ${PACKAGE_TARNAME} | sed "${program_transform_name}"`
> +
> +case "$host_os" in
> +netbsd* | openbsd*)
> + # Because /boot is used for the boot block in NetBSD and OpenBSD, use /grub
> + # instead of /boot/grub.
> + defaultbootdir=
> + ;;
> +*)
> + # Use /boot/grub by default.
> + defaultbootdir=/boot
> + ;;
> +esac
>
/boot isn't transformed
+ # XXX hard-coded /boot (use ${grubdir} or ${defaultbootdir} ?)
$grub_mkimage ${config_opt} -f ${font} -d ${pkglibdir} -O ${mkimage_target} --output=/boot/grub.elf --prefix=${prefix_drive}${relative_grubdir} $modules || exit 1
Should have been ${grubdir}/grub.elf
+ # XXX hard-coded /boot (use ${grubdir} or ${defaultbootdir} ?)
$grub_mkimage -O ${mkimage_target} ${config_opt} -d ${pkglibdir} --output=/boot/multiboot.img --prefix=${prefix_drive}${relative_grubdir} $modules || exit 1
Same.
+# GRUB_DIR should be set before sourcing this file, but let's be safe.
+if test "x${GRUB_DIR}" != "x"; then
+ if test -e "${GRUB_DIR}/device.map"; then
+ grub_probe="${grub_probe} --device-map=${GRUB_DIR}/device.map"
+ fi
+fi
This would be a separate patch and the problem is that scripts assume that currently loaded kernel is the kernel which will be loaded or similar (look e.g. at uuid check). This would be a separate patch.
+
file-name-transformations_3.diff
go ahead for trunk
file-name-transformations_4.diff
go ahead for trunk
file-name-transformations_5.diff
Transforming names in manual may be cumbersome and conflicts with Colin's patch.
file-name-transformations_6.diff:
- $(INSTALL_DATA) $$dir$$file $(DESTDIR)/$(datadir)/locale/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
+ dest="`echo $(PACKAGE).mo | sed 's,.*/,,' | sed '$(transform)'`"; \
+ $(INSTALL_DATA) $$dir$$file $(DESTDIR)$(datadir)/locale/$$lang/LC_MESSAGES/$$dest; \
Why don't you transform locale and LC_MESSAGES?
file-name-transformations_7.dif
Go ahead for trunk
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2010-07-21 21:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 23:42 [PATCH] File name transformations (split into 7 diffs) Grégoire Sutre
2010-06-07 21:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-07 22:56 ` Grégoire Sutre
2010-07-21 5:11 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C468189.9010106@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.