Package: udftools
Version: 1.0.0b3-14
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 pktsetup.c to be build
in GCC 4.4 (LP: #495004)
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 udftools-1.0.0b3/debian/changelog udftools-1.0.0b3/debian/changelog
only in patch2:
unchanged:
--- udftools-1.0.0b3.orig/debian/patch-13-open-mode.diff
+++ udftools-1.0.0b3/debian/patch-13-open-mode.diff
@@ -0,0 +1,11 @@
+--- ./pktsetup/pktsetup.c.orig 2009-12-10 11:56:03.000000000 +0000
++++ ./pktsetup/pktsetup.c 2009-12-10 11:56:42.000000000 +0000
+@@ -87,7 +87,7 @@
+ {
+ int pkt_fd, dev_fd, cmd;
+
+- if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT)) == -1) {
++ if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT, S_IRUSR|S_IWUSR)) == -1) {
+ perror("open packet device");
+ return 1;
+ }