Re: Variable in Depends: ??
> You are assuming that the version of the kernel that is being run is the same
> as the version that is being compiled for. This is bad and means multiple
> reboots if you want to compile for multiple kernels.
> "uname -r" should be replaced with the following:
> head -4 /usr/src/linux/Makefile | sed -e "s/ //g" > foo
> echo "echo \$VERSION.\$PATCHLEVEL.\$SUBLEVEL\$EXTRAVERSION" >> foo
> /bin/sh ./foo
And you are assuming that the kernel headers are in /usr/src. The proper
way to do this, IMO, would be to call gcc with the same arguments than the
ones used in the compilation, and do:
#include <linux/version.h>
#include <stdio.h>
int main()
{
puts(UTS_RELEASE);
return 0;
}
Reply to:
- Prev by Date:
Re: serious bugs because of missing build depends
- Next by Date:
Re: RFA: 3dchess, cccd, gq, grpn, gsnes9x, gtimer, gtkbrowser, gtksee, gxanim, razzle, vgacardgames, vgagamespack, vstream
- Previous by thread:
Re: Variable in Depends: ??
- Next by thread:
Re: Variable in Depends: ??
- Index(es):