1 |
aballier 13/07/27 17:16:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-sources-9.1-r3.ebuild |
5 |
Log: |
6 |
Apply fix for FreeBSD-SA-13:08, bug #478314 |
7 |
|
8 |
(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.86 sys-freebsd/freebsd-sources/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.86&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.86&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?r1=1.85&r2=1.86 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v |
20 |
retrieving revision 1.85 |
21 |
retrieving revision 1.86 |
22 |
diff -u -r1.85 -r1.86 |
23 |
--- ChangeLog 19 Jun 2013 02:09:24 -0000 1.85 |
24 |
+++ ChangeLog 27 Jul 2013 17:16:28 -0000 1.86 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-freebsd/freebsd-sources |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.85 2013/06/19 02:09:24 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.86 2013/07/27 17:16:28 aballier Exp $ |
30 |
+ |
31 |
+*freebsd-sources-9.1-r3 (27 Jul 2013) |
32 |
+ |
33 |
+ 27 Jul 2013; Alexis Ballier <aballier@g.o> |
34 |
+ +freebsd-sources-9.1-r3.ebuild, +files/freebsd-sources-9.1-nfsserver.patch: |
35 |
+ Apply fix for FreeBSD-SA-13:08, bug #478314 |
36 |
|
37 |
*freebsd-sources-9.1-r2 (19 Jun 2013) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-freebsd/freebsd-sources/freebsd-sources-9.1-r3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.1-r3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.1-r3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: freebsd-sources-9.1-r3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.1-r3.ebuild,v 1.1 2013/07/27 17:16:28 aballier Exp $ |
52 |
|
53 |
inherit bsdmk freebsd flag-o-matic |
54 |
|
55 |
DESCRIPTION="FreeBSD kernel sources" |
56 |
SLOT="${RV}" |
57 |
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
58 |
|
59 |
IUSE="symlink" |
60 |
|
61 |
SRC_URI="mirror://gentoo/${SYS}.tar.bz2" |
62 |
|
63 |
RDEPEND=">=sys-freebsd/freebsd-mk-defs-8.0" |
64 |
DEPEND="" |
65 |
|
66 |
RESTRICT="strip binchecks" |
67 |
|
68 |
S="${WORKDIR}/sys" |
69 |
|
70 |
PATCHES=( "${FILESDIR}/${PN}-9.0-disable-optimization.patch" |
71 |
"${FILESDIR}/${PN}-9.1-gentoo.patch" |
72 |
"${FILESDIR}/${PN}-6.0-flex-2.5.31.patch" |
73 |
"${FILESDIR}/${PN}-6.1-ntfs.patch" |
74 |
"${FILESDIR}/${PN}-7.1-types.h-fix.patch" |
75 |
"${FILESDIR}/${PN}-8.0-subnet-route-pr40133.patch" |
76 |
"${FILESDIR}/${PN}-7.1-includes.patch" |
77 |
"${FILESDIR}/${PN}-9.0-sysctluint.patch" |
78 |
"${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch" |
79 |
"${FILESDIR}/${PN}-9.1-cve-2013-3266.patch" |
80 |
"${FILESDIR}/${PN}-9.1-mmap.patch" |
81 |
"${FILESDIR}/${PN}-9.1-nfsserver.patch" ) |
82 |
|
83 |
src_unpack() { |
84 |
freebsd_src_unpack |
85 |
|
86 |
# This replaces the gentoover patch, it doesn't need reapply every time. |
87 |
sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \ |
88 |
-e 's:^BRANCH=.*:BRANCH="Gentoo":' \ |
89 |
-e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \ |
90 |
"${S}/conf/newvers.sh" |
91 |
|
92 |
# __FreeBSD_cc_version comes from FreeBSD's gcc. |
93 |
# on 9.0-RELEASE it's 900001. |
94 |
sed -e "s:-D_KERNEL:-D_KERNEL -D__FreeBSD_cc_version=900001:g" \ |
95 |
-i "${S}/conf/kern.pre.mk" \ |
96 |
-i "${S}/conf/kmod.mk" || die "Couldn't set __FreeBSD_cc_version" |
97 |
|
98 |
# Remove -Werror |
99 |
sed -e "s:-Werror:-Wno-error:g" \ |
100 |
-i "${S}/conf/kern.pre.mk" \ |
101 |
-i "${S}/conf/kmod.mk" || die |
102 |
} |
103 |
|
104 |
src_compile() { |
105 |
einfo "Nothing to compile.." |
106 |
} |
107 |
|
108 |
src_install() { |
109 |
insinto "/usr/src/sys-${RV}" |
110 |
doins -r "${S}/"* |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
if [[ ! -L "${ROOT}/usr/src/sys" ]]; then |
115 |
einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${RV}..." |
116 |
ln -sf "sys-${RV}" "${ROOT}/usr/src/sys" || \ |
117 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
118 |
elif use symlink; then |
119 |
einfo "Updating /usr/src/sys symlink to sys-${MY_PVR}..." |
120 |
rm "${ROOT}/usr/src/sys" || \ |
121 |
eerror "Couldn't remove previous symlinks, please fix manually." |
122 |
ln -sf "sys-${RV}" "${ROOT}/usr/src/sys" || \ |
123 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
124 |
fi |
125 |
|
126 |
if use sparc-fbsd ; then |
127 |
ewarn "WARNING: kldload currently causes kernel panics" |
128 |
ewarn "on sparc64. This is probably a gcc-4.1 issue, but" |
129 |
ewarn "we need gcc-4.1 to compile the kernel correctly :/" |
130 |
ewarn "Please compile all modules you need into the kernel" |
131 |
fi |
132 |
} |