mindi-busybox fails to build on Fedora 9
|Reported by:||mra||Owned by:||bruno|
When attempting to build mindi-busybox from the source rpm the build fails on Fedora 9 with an error about a missing include file <asm/page.h> After a brief search it seems that Debian also had this problem and was able to get around it by removing the include line in question.
This seems to work on Fedora as well (it builds, in a bit I'll check to see if it runs ;)
This is the patch I used to build the rpm:
--- mindi-busybox-1.2.2/util-linux/mkswap.c 2006-09-23 17:32:34.000000000 -0400 +++ mindi-busybox-1.2.2/util-linux/mkswap.c-new 2008-06-25 11:44:04.000000000 -0400 @@ -41,8 +41,6 @@ #include <fcntl.h> #include <sys/ioctl.h> /* for _IO */ #include <sys/utsname.h> -#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ - /* we also get PAGE_SIZE via getpagesize() */ static char *device_name = NULL; static int DEV = -1;