From f25b74bbb21539bfe6bc6ba8137befcd32786d21 Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Mon, 2 Mar 2009 00:27:55 +0000 Subject: Fixing fcc 4.3.3 / fortify_sources error. Patch from Ubuntu. Closes #260180 (Portage version: 2.2_rc23/cvs/Linux x86_64) --- .../files/yap-5.1.3-fortify_sources-ubuntu.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dev-lang/yap/files/yap-5.1.3-fortify_sources-ubuntu.patch (limited to 'dev-lang/yap/files') 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 +## 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, -- cgit v1.2.3-65-gdbad