diff options
author | Markus Duft <mduft@gentoo.org> | 2011-05-09 07:41:54 +0000 |
---|---|---|
committer | Markus Duft <mduft@gentoo.org> | 2011-05-09 07:41:54 +0000 |
commit | 08a5821b7ca46abbf53401c291366c88b0cea58c (patch) | |
tree | 79b24324f542e85c2aeac82258142bbe1e610ce3 /sys-apps/baselayout-prefix | |
parent | x86 stable per bug 354033 (diff) | |
download | gentoo-2-08a5821b7ca46abbf53401c291366c88b0cea58c.tar.gz gentoo-2-08a5821b7ca46abbf53401c291366c88b0cea58c.tar.bz2 gentoo-2-08a5821b7ca46abbf53401c291366c88b0cea58c.zip |
added interix patch.
(Portage version: 2.2.00.15754-prefix/cvs/Interix x86)
Diffstat (limited to 'sys-apps/baselayout-prefix')
-rw-r--r-- | sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild | 4 | ||||
-rw-r--r-- | sys-apps/baselayout-prefix/files/baselayout-1.12.14-interix.patch | 76 |
2 files changed, 79 insertions, 1 deletions
diff --git a/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild index f2eb61aa5877..6ebab8751081 100644 --- a/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild +++ b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild,v 1.2 2011/05/01 19:32:40 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild,v 1.3 2011/05/09 07:41:54 mduft Exp $ EAPI=3 @@ -40,6 +40,8 @@ src_prepare() { # The consoletype application in this form will only work on Linux [[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/baselayout-1.12.5-prefix-no-consoletype.patch + epatch "${FILESDIR}"/baselayout-1.12.14-interix.patch + cd "${S}" eprefixify \ etc/env.d/00basic \ diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.14-interix.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.14-interix.patch new file mode 100644 index 000000000000..60e11150e6d0 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.14-interix.patch @@ -0,0 +1,76 @@ +diff -ru baselayout-prefix-1.12.14.1707.orig/src/headers.h baselayout-prefix-1.12.14.1707/src/headers.h +--- baselayout-prefix-1.12.14.1707.orig/src/headers.h 2011-05-02 15:10:43 +0200 ++++ baselayout-prefix-1.12.14.1707/src/headers.h 2011-05-02 14:34:30 +0200 +@@ -8,7 +8,9 @@ + */ + + /* Common includes */ +-#define HAVE_TIOCNOTTY ++#ifndef OSInterix ++# define HAVE_TIOCNOTTY ++#endif + #define HAVE_SETSID + + /* OS-specific includes */ +diff -ru baselayout-prefix-1.12.14.1707.orig/src/start-stop-daemon.c baselayout-prefix-1.12.14.1707/src/start-stop-daemon.c +--- baselayout-prefix-1.12.14.1707.orig/src/start-stop-daemon.c 2011-05-02 15:10:43 +0200 ++++ baselayout-prefix-1.12.14.1707/src/start-stop-daemon.c 2011-05-02 15:10:23 +0200 +@@ -60,6 +60,8 @@ + # define OSDarwin + #elif defined(_AIX) + # define OSaix ++#elif defined(__INTERIX) ++# define OSInterix + #else + # error Unknown architecture - cannot build start-stop-daemon + #endif +@@ -93,7 +95,7 @@ + #include <sys/pstat.h> + #endif + +-#if defined(OSaix) ++#if defined(OSaix) || defined(OSInterix) + #include <sys/procfs.h> + #endif + #if defined(OSsunos) +@@ -808,7 +810,7 @@ + /* WTA: this needs to be an autoconf check for /proc/pid existance. + */ + +-#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) || defined(OSaix) || defined(OSsunos) ++#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) || defined(OSaix) || defined(OSsunos) || defined(OSInterix) + static void + do_procinit(void) + { +@@ -1076,7 +1078,7 @@ + } + #endif /* OShpux */ + +-#if defined(OSaix) || defined(OSsunos) ++#if defined(OSaix) || defined(OSsunos) || defined(OSInterix) + /* max possible pid (signed long) in theory: + * 32bit: 2147483647 (10 digits) + * 64bit: 9223372036854775807 (19 digits) +@@ -1112,7 +1114,11 @@ + { + char buf[40]; + FILE *f; ++ #ifdef OSInterix ++ psinfo_t psi; ++ #else + struct psinfo psi; ++ #endif + int r; + + sprintf(buf, "/proc/%ld/psinfo", pid); +@@ -1466,8 +1472,10 @@ + if (changeuser != NULL) { + if (setgid(runas_gid)) + fatal("Unable to set gid to %d", runas_gid); ++#ifndef OSInterix + if (initgroups(changeuser, runas_gid)) + fatal("Unable to set initgroups() with gid %d", runas_gid); ++#endif + if (setuid(runas_uid)) + fatal("Unable to set uid to %s", changeuser); + } |