Bug#526738: gratuitous use of subprocesses
Package: grub-pc Version: 1.96+20090317-1 Severity: minor Tags: upstream File: /etc/grub.d/00_header # sed -n 19,24p /etc/grub.d/00_header transform=s,x,x, prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib grub_prefix=`echo /boot/grub | sed ${transform}` What is it doing? That's two subprocesses (shell+sed) used for absolutely zero purpose, as far as I can tell. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- .''`. martin f. krafft madd...@d.o Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Bug#526738: gratuitous use of subprocesses
Am Sonntag, den 03.05.2009, 09:43 +0200 schrieb martin f krafft: # sed -n 19,24p /etc/grub.d/00_header transform=s,x,x, prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib grub_prefix=`echo /boot/grub | sed ${transform}` What is it doing? That's two subprocesses (shell+sed) used for absolutely zero purpose, as far as I can tell. It's for these configure options $ ./configure --help Program names: --program-prefix=PREFIXprepend PREFIX to installed program names --program-suffix=SUFFIXappend SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names It's generated by the AC_ARG_PROGRAM autoconf macro [0] I don't think it's that useful to remove that feature. Maybe some people actually want to use it. I doubt grub2 gets used on old 486 pcs or like that which are so slow that it maybe matters. [0] http://www.gnu.org/software/autoconf/manual/html_node/Transforming-Names.html#Transforming-Names -- Felix Zielcke -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#526738: gratuitous use of subprocesses
also sprach Felix Zielcke fziel...@z-51.de [2009.05.03.1019 +0200]: It's for these configure options $ ./configure --help Program names: --program-prefix=PREFIXprepend PREFIX to installed program names --program-suffix=SUFFIXappend SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names It's generated by the AC_ARG_PROGRAM autoconf macro [0] I don't think it's that useful to remove that feature. Maybe some people actually want to use it. I doubt grub2 gets used on old 486 pcs or like that which are so slow that it maybe matters. Ah, so this is *after* the files have been processed by autoconf, so what's left in there is the autoconf-equivalent of NOOP. Thanks for the explanation. Feel free to do whatever you like with the bug report. ;) -- .''`. martin f. krafft madd...@d.o Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems the only difference between the saint and the sinner is that every saint has a past and every sinner has a future. -- oscar wilde digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)