1 |
uberlord 07/09/12 00:04:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-sources-6.2-r3.ebuild |
5 |
Log: |
6 |
Backport dl_iterate_phdr from FreeBSD-7 so that future gcc's dont pull in libgcc_s.so.1 |
7 |
(Portage version: 2.1.3.7) |
8 |
|
9 |
Revision Changes Path |
10 |
1.39 sys-freebsd/freebsd-sources/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.39&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.39&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?r1=1.38&r2=1.39 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v |
19 |
retrieving revision 1.38 |
20 |
retrieving revision 1.39 |
21 |
diff -u -r1.38 -r1.39 |
22 |
--- ChangeLog 3 Jul 2007 11:08:00 -0000 1.38 |
23 |
+++ ChangeLog 12 Sep 2007 00:04:35 -0000 1.39 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-freebsd/freebsd-sources |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.38 2007/07/03 11:08:00 uberlord Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.39 2007/09/12 00:04:35 uberlord Exp $ |
29 |
+ |
30 |
+*freebsd-sources-6.2-r3 (12 Sep 2007) |
31 |
+ |
32 |
+ 12 Sep 2007; Roy Marples <uberlord@g.o> |
33 |
+ +files/freebsd-sources-6.2-dl_iterate_phdr.patch, |
34 |
+ +freebsd-sources-6.2-r3.ebuild: |
35 |
+ Backport dl_iterate_phdr from FreeBSD-7 so that future gcc's don't pull in |
36 |
+ libgcc_s.so.1 |
37 |
|
38 |
*freebsd-sources-6.2-r2 (03 Jul 2007) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-freebsd/freebsd-sources/freebsd-sources-6.2-r3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-6.2-r3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-6.2-r3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: freebsd-sources-6.2-r3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2007 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-6.2-r3.ebuild,v 1.1 2007/09/12 00:04:35 uberlord Exp $ |
53 |
|
54 |
inherit bsdmk freebsd flag-o-matic |
55 |
|
56 |
DESCRIPTION="FreeBSD kernel sources" |
57 |
SLOT="${PVR}" |
58 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
59 |
|
60 |
IUSE="symlink" |
61 |
|
62 |
SRC_URI="mirror://gentoo/${SYS}.tar.bz2" |
63 |
|
64 |
RDEPEND=">=sys-freebsd/freebsd-mk-defs-6.0-r1" |
65 |
DEPEND="" |
66 |
|
67 |
RESTRICT="strip binchecks" |
68 |
|
69 |
S="${WORKDIR}/sys" |
70 |
|
71 |
MY_PVR="${PVR}" |
72 |
|
73 |
[[ ${MY_PVR} == "${RV}" ]] && MY_PVR="${MY_PVR}-r0" |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A} |
77 |
cd "${S}" |
78 |
|
79 |
# This replaces the gentoover patch, it doesn't need reapply every time. |
80 |
sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \ |
81 |
-e 's:^BRANCH=.*:BRANCH="Gentoo":' \ |
82 |
-e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \ |
83 |
"${S}/conf/newvers.sh" |
84 |
|
85 |
epatch "${FILESDIR}/${PN}-gentoo.patch" |
86 |
epatch "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch" |
87 |
epatch "${FILESDIR}/${PN}-6.0-asm.patch" |
88 |
epatch "${FILESDIR}/${PN}-6.0-werror.patch" |
89 |
epatch "${FILESDIR}/${PN}-6.2-gcc41.patch" |
90 |
epatch "${FILESDIR}/${PN}-6.2-sparc64.patch" |
91 |
epatch "${FILESDIR}/${PN}-6.1-ntfs.patch" |
92 |
epatch "${FILESDIR}/${PN}-6.2-debug-O2.patch" |
93 |
epatch "${FILESDIR}/${PN}-6.2-dl_iterate_phdr.patch" |
94 |
|
95 |
# Errata patches |
96 |
epatch "${FILESDIR}/${P}-EN-07:02.net.patch" |
97 |
epatch "${FILESDIR}/${P}-unp_gc.patch" |
98 |
|
99 |
# http://security.freebsd.org/advisories/FreeBSD-SA-07:03.ipv6.asc |
100 |
epatch "${FILESDIR}/${P}-ipv6.patch" |
101 |
|
102 |
# Disable SSP for the kernel |
103 |
grep -Zlr -- -ffreestanding "${S}" | xargs -0 sed -i -e \ |
104 |
"s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
einfo "Nothing to compile.." |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
insinto "/usr/src/sys-${MY_PVR}" |
113 |
doins -r "${S}/"* |
114 |
} |
115 |
|
116 |
pkg_postinst() { |
117 |
if [[ ! -L "${ROOT}/usr/src/sys" ]]; then |
118 |
einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${MY_PVR}..." |
119 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \ |
120 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
121 |
# just in case... |
122 |
[[ -L ""${ROOT}/usr/src/sys-${RV}"" ]] && rm "${ROOT}/usr/src/sys-${RV}" |
123 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \ |
124 |
eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." |
125 |
elif use symlink; then |
126 |
einfo "Updating /usr/src/sys symlink to sys-${MY_PVR}..." |
127 |
rm "${ROOT}/usr/src/sys" "${ROOT}/usr/src/sys-${RV}" || \ |
128 |
eerror "Couldn't remove previous symlinks, please fix manually." |
129 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \ |
130 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
131 |
ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \ |
132 |
eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." |
133 |
fi |
134 |
|
135 |
if use sparc-fbsd ; then |
136 |
ewarn "WARNING: kldload currently causes kernel panics" |
137 |
ewarn "on sparc64. This is probably a gcc-4.1 issue, but" |
138 |
ewarn "we need gcc-4.1 to compile the kernel correctly :/" |
139 |
ewarn "Please compile all modules you need into the kernel" |
140 |
fi |
141 |
} |
142 |
|
143 |
|
144 |
|
145 |
-- |
146 |
gentoo-commits@g.o mailing list |