1 |
the_paya 09/01/22 21:05:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-sources-7.1.ebuild |
5 |
Log: |
6 |
Import of the 7.1 ebuilds from gentoo-bsd overlay. |
7 |
(Portage version: 2.2_rc23/cvs/FreeBSD i386) |
8 |
|
9 |
Revision Changes Path |
10 |
1.45 sys-freebsd/freebsd-sources/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.45&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.45&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?r1=1.44&r2=1.45 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v |
19 |
retrieving revision 1.44 |
20 |
retrieving revision 1.45 |
21 |
diff -u -r1.44 -r1.45 |
22 |
--- ChangeLog 8 Jan 2009 18:35:47 -0000 1.44 |
23 |
+++ ChangeLog 22 Jan 2009 21:05:47 -0000 1.45 |
24 |
@@ -1,6 +1,19 @@ |
25 |
# ChangeLog for sys-freebsd/freebsd-sources |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.44 2009/01/08 18:35:47 aballier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.45 2009/01/22 21:05:47 the_paya Exp $ |
29 |
+ |
30 |
+*freebsd-sources-7.1 (22 Jan 2009) |
31 |
+ |
32 |
+ 22 Jan 2009; Javier Villavicencio <the_paya@g.o> |
33 |
+ +files/freebsd-sources-7.0-gentoo.patch, |
34 |
+ +files/freebsd-sources-7.0-tmpfs_whiteout_stub.patch, |
35 |
+ +files/freebsd-sources-7.0-werror.patch, |
36 |
+ +files/freebsd-sources-7.1-asm.patch, |
37 |
+ +files/freebsd-sources-7.1-binutils_link.patch, |
38 |
+ +files/freebsd-sources-7.1-sparc64.patch, |
39 |
+ +files/freebsd-sources-7.1-subnet-route-pr40133.patch, |
40 |
+ +files/freebsd-sources-7.1-types.h-fix.patch, +freebsd-sources-7.1.ebuild: |
41 |
+ Import 7.1 ebuilds from gentoo-bsd overlay. |
42 |
|
43 |
*freebsd-sources-6.2-r5 (08 Jan 2009) |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
1.1 sys-freebsd/freebsd-sources/freebsd-sources-7.1.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-7.1.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-7.1.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: freebsd-sources-7.1.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2009 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-7.1.ebuild,v 1.1 2009/01/22 21:05:47 the_paya Exp $ |
58 |
|
59 |
inherit bsdmk freebsd flag-o-matic |
60 |
|
61 |
DESCRIPTION="FreeBSD kernel sources" |
62 |
SLOT="${PVR}" |
63 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
64 |
|
65 |
IUSE="symlink" |
66 |
|
67 |
SRC_URI="mirror://gentoo/${SYS}.tar.bz2" |
68 |
|
69 |
RDEPEND=">=sys-freebsd/freebsd-mk-defs-7.0" |
70 |
DEPEND="" |
71 |
|
72 |
RESTRICT="strip binchecks" |
73 |
|
74 |
S="${WORKDIR}/sys" |
75 |
|
76 |
MY_PVR="${PVR}" |
77 |
|
78 |
[[ ${MY_PVR} == "${RV}" ]] && MY_PVR="${MY_PVR}-r0" |
79 |
|
80 |
src_unpack() { |
81 |
unpack ${A} |
82 |
cd "${S}" |
83 |
|
84 |
# This replaces the gentoover patch, it doesn't need reapply every time. |
85 |
sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \ |
86 |
-e 's:^BRANCH=.*:BRANCH="Gentoo":' \ |
87 |
-e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \ |
88 |
"${S}/conf/newvers.sh" |
89 |
|
90 |
# __FreeBSD_cc_version comes from FreeBSD's gcc. |
91 |
# on 7.0-RELEASE it's 700003. |
92 |
sed -e "s:-D_KERNEL:-D_KERNEL -D__FreeBSD_cc_version=700004:g" \ |
93 |
-i "${S}/conf/kern.pre.mk" \ |
94 |
-i "${S}/conf/kmod.mk" || die "Couldn't set __FreeBSD_cc_version" |
95 |
|
96 |
epatch "${FILESDIR}/${PN}-7.0-gentoo.patch" |
97 |
epatch "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch" |
98 |
epatch "${FILESDIR}/${PN}-7.1-asm.patch" |
99 |
epatch "${FILESDIR}/${PN}-7.0-werror.patch" |
100 |
epatch "${FILESDIR}/${PN}-7.1-sparc64.patch" |
101 |
epatch "${FILESDIR}/${PN}-6.1-ntfs.patch" |
102 |
epatch "${FILESDIR}/${PN}-6.2-debug-O2.patch" |
103 |
epatch "${FILESDIR}/${PN}-7.1-types.h-fix.patch" |
104 |
epatch "${FILESDIR}/${PN}-7.1-subnet-route-pr40133.patch" |
105 |
|
106 |
# http://security.freebsd.org/advisories/FreeBSD-SA-07:03.ipv6.asc |
107 |
# Why did the 6.2 patch apply almoast cleanly on 7.0? |
108 |
# Because the code was suppressed. |
109 |
#epatch "${FILESDIR}/${PN}-7.0-ipv6.patch" |
110 |
|
111 |
# Disable SSP for the kernel |
112 |
grep -Zlr -- -ffreestanding "${S}" | xargs -0 sed -i -e \ |
113 |
"s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" |
114 |
|
115 |
# By adding -DGENTOO_LIVECD to CFLAGS activate this stub |
116 |
# vop_whiteout to tmpfs, so it can be used as an overlay |
117 |
# unionfs filesystem over the cd9660 readonly filesystem. |
118 |
epatch "${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch" |
119 |
|
120 |
# See http://sourceware.org/bugzilla/show_bug.cgi?id=5391 |
121 |
# ld doesn't provide symbols constructed as the __start_set_(s) ones |
122 |
# are on FreeBSD modules. |
123 |
# This patch adds code to generate a list of these and adds them |
124 |
# as undefined references to ld's commandline to get them. |
125 |
# Without this kernel modules will not load. |
126 |
epatch "${FILESDIR}/${PN}-7.1-binutils_link.patch" |
127 |
} |
128 |
|
129 |
src_compile() { |
130 |
einfo "Nothing to compile.." |
131 |
} |
132 |
|
133 |
src_install() { |
134 |
insinto "/usr/src/sys-${MY_PVR}" |
135 |
doins -r "${S}/"* |
136 |
} |
137 |
|
138 |
pkg_postinst() { |
139 |
if [[ ! -L "${ROOT}/usr/src/sys" ]]; then |
140 |
einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${MY_PVR}..." |
141 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \ |
142 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
143 |
# just in case... |
144 |
[[ -L ""${ROOT}/usr/src/sys-${RV}"" ]] && rm "${ROOT}/usr/src/sys-${RV}" |
145 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \ |
146 |
eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." |
147 |
elif use symlink; then |
148 |
einfo "Updating /usr/src/sys symlink to sys-${MY_PVR}..." |
149 |
rm "${ROOT}/usr/src/sys" "${ROOT}/usr/src/sys-${RV}" || \ |
150 |
eerror "Couldn't remove previous symlinks, please fix manually." |
151 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \ |
152 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
153 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \ |
154 |
eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." |
155 |
fi |
156 |
|
157 |
if use sparc-fbsd ; then |
158 |
ewarn "WARNING: kldload currently causes kernel panics" |
159 |
ewarn "on sparc64. This is probably a gcc-4.1 issue, but" |
160 |
ewarn "we need gcc-4.1 to compile the kernel correctly :/" |
161 |
ewarn "Please compile all modules you need into the kernel" |
162 |
fi |
163 |
} |