On Tue, Aug 03, 2004 at 10:54:12PM +0100, Tim Waugh wrote:
> On Tue, Aug 03, 2004 at 10:52:37AM -0700, Steve G wrote:
>
> > For example, /sbin/grub-install. The grub package states bash &
> > texinfo. I get coreutils, diffutils, grep, and sed just for that one
> > file! It would be nice if rpmbuild scanned for shell scripts,
> > capture the info, resolve the files to a package, and add the
> > packages to the runtime requirements. Its really simple.
> >
http://www.web-insights.net/sh2rpms if you want the bash script.
>
> We patch our bash package to have an --rpm-requires option to provide
> just this functionality (but it isn't used).
Nice, I didn't know this was there. What would the implications of running
this as a per interpreter find-requires at build time on shell scripts?
It's nice but only as an aid to a packager, it has too many problems to be
usable in automated manner. For example try it on the little script
below... Dunno how hard it would be to fix.
---
#!/bin/sh
dostuff()
{
echo "stuff..."
}
$grep="grep"
echo `ls`
$grep /etc/modules.conf alias && $echo
dostuff
---
- Panu -