Package: gpe-shield
Version: 0.31-3
Severity: important
Tags: patch
Justification: fails to build from source
User: [email protected]
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 backend.c to be build
    in GCC 4.4 (LP: #495448)

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-16-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 gpe-shield-0.31/debian/changelog gpe-shield-0.31/debian/changelog
only in patch2:
unchanged:
--- gpe-shield-0.31.orig/debian/patches/040-open-mode.patch
+++ gpe-shield-0.31/debian/patches/040-open-mode.patch
@@ -0,0 +1,12 @@
+diff -Nur -x '*.orig' -x '*~' gpe-shield-0.31/backend.c gpe-shield-0.31.new/backend.c
+--- gpe-shield-0.31/backend.c	2004-06-11 13:43:15.000000000 +0000
++++ gpe-shield-0.31.new/backend.c	2009-12-11 12:04:27.000000000 +0000
+@@ -403,7 +403,7 @@
+ 	int fh;
+ 	if (doit)
+ 	{
+-		if ((fh = open(LOADRULES_MARK,O_CREAT | O_RDWR | O_TRUNC)) < 0)
++		if ((fh = open(LOADRULES_MARK,O_CREAT | O_RDWR | O_TRUNC, S_IRUSR|S_IWUSR)) < 0)
+ 			perror("Cannot save setting.");
+ 		else
+ 			close(fh);

Reply via email to