Package: gems Version: 1.1-4 Severity: important Tags: patch Justification: fails to build from source User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: * [FTBFS] open() needs mode if O_CREAT in main.c (LP: #492996) We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic') Architecture: i386 (i686) Kernel: Linux 2.6.31-15-generic (SMP w/2 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u gems-1.1/debian/changelog gems-1.1/debian/changelog only in patch2: unchanged: --- gems-1.1.orig/debian/patches/mode_in_open.patch +++ gems-1.1/debian/patches/mode_in_open.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' gems-1.1/server/source/main.c gems-1.1.new/server/source/main.c +--- gems-1.1/server/source/main.c 2004-09-19 04:02:28.000000000 +0000 ++++ gems-1.1.new/server/source/main.c 2009-12-04 17:15:48.000000000 +0000 +@@ -197,7 +197,7 @@ + + snprintf(name, 64, "%s%d", LOCK_PREFIX, options->port); + +- if ((fd = open(name, O_CREAT | O_EXCL | O_RDWR)) == -1) ++ if ((fd = open(name, O_CREAT | O_EXCL | O_RDWR, 0600)) == -1) + { + g_log(ERR_LOCK, name, APPNAME); + return NULL;