diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-03-02 00:27:55 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-03-02 00:27:55 +0000 |
commit | f25b74bbb21539bfe6bc6ba8137befcd32786d21 (patch) | |
tree | e6a412f1ec73cd36650b3bb4f39ca311796cb383 /dev-lang/yap/files | |
parent | Taking over ventrilo-server-bin and bumping to 3.0.3 (diff) | |
download | gentoo-2-f25b74bbb21539bfe6bc6ba8137befcd32786d21.tar.gz gentoo-2-f25b74bbb21539bfe6bc6ba8137befcd32786d21.tar.bz2 gentoo-2-f25b74bbb21539bfe6bc6ba8137befcd32786d21.zip |
Fixing fcc 4.3.3 / fortify_sources error. Patch from Ubuntu. Closes #260180
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/yap/files')
-rw-r--r-- | dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch b/dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch new file mode 100644 index 000000000000..b207f2c18ce4 --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_gcc_4.3.dpatch by <dktrkranz@ubuntu.com> +## DP: Fix FTBFS with Ubuntu toolchain + +@DPATCH@ +diff -urNad yap-5.1.1~/C/alloc.c yap-5.1.1/C/alloc.c +--- yap-5.1.1~/C/alloc.c 2006-03-24 18:15:18.000000000 +0100 ++++ yap-5.1.1/C/alloc.c 2008-07-09 22:55:34.000000000 +0200 +@@ -796,7 +796,7 @@ + itos(getpid(), &file[12]); + #endif /* HAVE_TMPNAM */ + #endif /* HAVE_MKSTEMP */ +- fd = open(file, O_CREAT|O_RDWR); ++ fd = open(file, O_CREAT|O_RDWR, 0644); + if (fd < 0) { + Yap_Error(FATAL_ERROR, TermNil, "mmap could not open %s", file); + return NULL; +@@ -909,7 +909,7 @@ + itos(getpid(), &file[12]); + #endif /* HAVE_TMPNAM */ + #endif /* HAVE_MKSTEMP */ +- fd = open(file, O_CREAT|O_RDWR); ++ fd = open(file, O_CREAT|O_RDWR, 0644); + if (fd < 0) { + Yap_ErrorMessage = Yap_ErrorSay; + snprintf4(Yap_ErrorMessage, MAX_ERROR_MSG_SIZE, |