[GLLUG] ./configure deb-src
Jan Kokoska
kokoskaj at seznam.cz
Sun May 15 00:44:33 UTC 2005
Hi Steve,
On Sat, 2005-05-14 at 23:13 +0100, Steve Nelson wrote:
> Hi Guys,
>
> I have a requirement to use grub with netbooting enabled.
>
> This simply requires me to ./configure --enable-diskless --enable-<some-card>
>
> However, in the debian world, how does one do this?
>
> I obtained the source and build deps as per usual:
>
> apt-get build-deb grub
I am sure $1 was "build-dep".
> apt-get source grub
>
> Then inside the grub tree, I tried just running a ./configure and then
> a dpkg-buildpackage, and I also tried hacking the debian/rules file,
> and running dpkg-buildpackage.
As you suspect later, debian/rules file is the place to set your stuff.
> Neither produced a .deb with the pxeimage I needed.
You are looking for "pxegrub" file which gets crated just fine
at /lib/grub/i386-pc/pxegrub of grub_0.95+cvs20040624-17_i386.deb, that
I have just built with your options, netbooting on eepro100 card.
> ./configre --enable-diskless --enable-<some-card> && make does produce
> the pxeimage, so I have what I wanted, but I still don't have an
> answer to the more general (and useful) question:
>
> If I want to build a debian package from source and change the
> maintainer's configure options, what do I do?
You meticulously examine the build outputs to find what you're looking
for. It is there.
At the very worst case, you examine the Makefile and trace the netboot
variables. "grep -rin <x> ." is your friend.
It *may* be that the ./configure option for your particular card would
be omitted from setting including the netboot section in the makefile. I
very very much doubt it, I think the Makefile.in is generated using the
rules file and unholy magic, not written by a human (or even a Debian
developer).
> I am sure that changing the debian/rules file must be the right way,
> but have I missed something else?
Principle fine, attention to detail.
But I very much liked this post, a nice grub + debian question gets an
answer from me even at this crazy hour.
Jan
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list