Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2704 Details for
Bug 5736
xfree86-4.2.0-r12 fails to compile - temporary file permission issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xfree-4.2.0-imake.patch
xfree-4.2.0-imake.patch (text/plain), 1.24 KB, created by
Martin Schlemmer (RETIRED)
on 2002-07-31 07:54:34 UTC
(
hide
)
Description:
xfree-4.2.0-imake.patch
Filename:
MIME Type:
Creator:
Martin Schlemmer (RETIRED)
Created:
2002-07-31 07:54:34 UTC
Size:
1.24 KB
patch
obsolete
>--- xfree-4.2.0-r12.ebuild.orig Wed Jul 31 13:49:05 2002 >+++ xfree-4.2.0-r12.ebuild Wed Jul 31 13:52:53 2002 >@@ -149,6 +149,43 @@ > # Apply Xft quality patch from http://www.cs.mcgill.ca/~dchest/xfthack/ > # cd ${S}/lib/Xft > # cat ${FILESDIR}/${PVR}/xft-quality.diff | patch -p1 || die >+ >+ # fix imake to use $TMPDIR (defined by portage) rather than >+ # /tmp as temp dir. Hopefully this will fix bug #5736 >+ cd ${S} >+ patch -p1 <<"END" >+--- xc/config/imake/imake.c.orig Wed Jul 31 07:53:42 2002 >++++ xc/config/imake/imake.c Wed Jul 31 13:46:31 2002 >+@@ -981,13 +981,27 @@ >+ static void >+ get_libc_version(FILE *inFile) >+ { >+- char aout[] = "/tmp/imakeXXXXXX"; >++ char *ENV_TMPDIR; >++ char aout[255]; >+ FILE *fp; >+ const char *format = "%s -o %s -x c -"; >+ char *cc; >+ int len; >+ char *command; >+ >++ /* If $TMPDIR is defined, use that as tmp dir, else >++ * use /tmp. This should fix problems with /tmp >++ * mounted with "noexec". >++ */ >++ strcpy(aout, ""); >++ ENV_TMPDIR = getenv("TMPDIR"); >++ if (ENV_TMPDIR) { >++ strcat(aout, ENV_TMPDIR); >++ } else { >++ strcat(aout, "/tmp"); >++ } >++ strcat(aout, "/imakeXXXXXX"); >++ >+ /* Pre-create temp file safely */ >+ { >+ /* Linux + ELF has mkstemp() */ >+END > } > > src_compile() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5736
: 2704