Gpm is currently failing to build because struct ucred is only defined with "#define __USE_GNU".
Signed-off-by: Martyn Welch <[email protected]> --- recipes/gpm/gpm-1.20.1/ucred-include.patch | 11 +++++++++++ recipes/gpm/gpm_1.20.1.bb | 3 ++- 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/recipes/gpm/gpm-1.20.1/ucred-include.patch b/recipes/gpm/gpm-1.20.1/ucred-include.patch new file mode 100644 index 0000000..0c79b85 --- /dev/null +++ b/recipes/gpm/gpm-1.20.1/ucred-include.patch @@ -0,0 +1,11 @@ +diff -urN gpm-1.20.1/src/gpm.c gpm-1.20.1.new/src/gpm.c +--- gpm-1.20.1/src/gpm.c 2010-05-12 14:42:01.000000000 +0100 ++++ gpm-1.20.1.new/src/gpm.c 2010-05-12 15:31:06.000000000 +0100 +@@ -34,6 +34,7 @@ + #include <sys/stat.h> /* mkdir() */ + #include <sys/time.h> /* timeval */ + #include <sys/types.h> /* socket() */ ++#define __USE_GNU /* needed for struct ucred in sys/socket.h */ + #include <sys/socket.h> /* socket() */ + #include <sys/un.h> /* struct sockaddr_un */ + diff --git a/recipes/gpm/gpm_1.20.1.bb b/recipes/gpm/gpm_1.20.1.bb index 6506c4d..a1a11b3 100644 --- a/recipes/gpm/gpm_1.20.1.bb +++ b/recipes/gpm/gpm_1.20.1.bb @@ -5,13 +5,14 @@ SECTION = "console/utils" LICENSE = "GPL" DEPENDS = "ncurses" -PR = "r3" +PR = "r4" PARALLEL_MAKE = "" SRC_URI = "ftp://arcana.linux.it/pub/gpm/gpm-${PV}.tar.bz2 \ file://configure.patch;patch=1 \ file://no-docs.patch;patch=1 \ file://gpm-OPEN_MAX.patch;patch=1 \ + file://ucred-include.patch;patch=1 \ file://init" inherit autotools update-rc.d -- Martyn Welch (Principal Software Engineer) | Registered in England and GE Intelligent Platforms | Wales (3828642) at 100 T +44(0)127322748 | Barbirolli Square, Manchester, E [email protected] | M2 3AB VAT:GB 927559189 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
