/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.71
1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.71 2005/01/09 18:56:47 johnm Exp $
4
1# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
2# with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
3# 7#
4# Author: John Mylchreest <johnm@gentoo.org> 8# Maintainer: John Mylchreest <johnm@gentoo.org>
5# Copyright 2004 Gentoo Linux 9# Copyright 2004 Gentoo Linux
6# 10#
7# Please direct your bugs to the current eclass maintainer :) 11# Please direct your bugs to the current eclass maintainer :)
8# thatll be: johnm
9 12
10# added functionality: 13# added functionality:
11# unipatch - a flexible, singular method to extract, add and remove patches. 14# unipatch - a flexible, singular method to extract, add and remove patches.
12 15
13# A Couple of env vars are available to effect usage of this eclass 16# A Couple of env vars are available to effect usage of this eclass
14# These are as follows: 17# These are as follows:
15# 18#
16# K_NOSETEXTRAVERSION - if this is set then EXTRAVERSION will not be automatically set within the kernel Makefile 19# K_NOSETEXTRAVERSION - if this is set then EXTRAVERSION will not be
20# automatically set within the kernel Makefile
17# K_NOUSENAME - if this is set then EXTRAVERSION will not include the first part of ${PN} in EXTRAVERSION 21# K_NOUSENAME - if this is set then EXTRAVERSION will not include the
18# K_PREPATCHED - if the patchset is prepatched (ie: mm-sources, ck-sources, ac-sources) it will use PR (ie: -r5) as the patchset version for EXTRAVERSION 22# first part of ${PN} in EXTRAVERSION
23# K_PREPATCHED - if the patchset is prepatched (ie: mm-sources,
24# ck-sources, ac-sources) it will use PR (ie: -r5) as
25# the patchset version for
19# - and not use it as a true package revision 26# - and not use it as a true package revision
20# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in postinst and can be used to carry additional postinst messages 27# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in
28# postinst and can be used to carry additional postinst
29# messages
21# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's 30# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's
22 31
23# H_SUPPORTEDARCH - this should be a space separated list of ARCH's which can be supported by the headers ebuild 32# H_SUPPORTEDARCH - this should be a space separated list of ARCH's which
33# can be supported by the headers ebuild
24 34
25# UNIPATCH_LIST - space delimetered list of patches to be applied to the kernel 35# UNIPATCH_LIST - space delimetered list of patches to be applied to the
36# kernel
37# UNIPATCH_EXCLUDE - an addition var to support exlusion based completely
38# on "<passedstring>*" and not "<passedno#>_*"
39# - this should _NOT_ be used from the ebuild as this is
40# reserved for end users passing excludes from the cli
26# UNIPATCH_DOCS - space delimemeted list of docs to be installed to the doc dir 41# UNIPATCH_DOCS - space delimemeted list of docs to be installed to
42# the doc dir
43# UNIPATCH_STRICTORDER - if this is set places patches into directories of
44# order, so they are applied in the order passed
27 45
28ECLASS="kernel-2" 46ECLASS="kernel-2"
47INHERITED="$INHERITED $ECLASS"
29EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst 48EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_preinst pkg_postinst
30 49
50export CTARGET="${CTARGET:-${CHOST}}"
51
31HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" 52HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/"
32LICENSE="GPL-2" 53LICENSE="GPL-2"
33IUSE="${IUSE} build" 54IUSE="${IUSE} build doc"
34SLOT="${KV}" 55SLOT="${PVR}"
35 56
57# set LINUX_HOSTCFLAGS if not already set
58[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include"
59
60#Eclass functions only from here onwards ...
61#==============================================================
62kernel_is() {
63 # And lets add a sanity check
64 [ -z "${KV_FULL}" ] && return 1
65
66 local RESULT operator test value i len
67 RESULT=0
68
69 operator="="
70 if [ "${1}" == "lt" ]
71 then
72 operator="-lt"
73 shift
74 elif [ "${1}" == "gt" ]
75 then
76 operator="-gt"
77 shift
78 elif [ "${1}" == "le" ]
79 then
80 operator="-le"
81 shift
82 elif [ "${1}" == "ge" ]
83 then
84 operator="-ge"
85 shift
86 fi
87
88 if [ -n "${1}" ]
89 then
90 value="${value}${1}"
91 test="${test}${KV_MAJOR}"
92 fi
93 if [ -n "${2}" ]
94 then
95 len=$[ 3 - ${#2} ]
96 for((i=0; i<$len; i++)); do
97 value="${value}0"
98 done
99 value="${value}${2}"
100
101 len=$[ 3 - ${#KV_MINOR} ]
102 for((i=0; i<$len; i++)); do
103 test="${test}0"
104 done
105 test="${test}${KV_MINOR}"
106 fi
107 if [ -n "${3}" ]
108 then
109 len=$[ 3 - ${#3} ]
110 for((i=0; i<$len; i++)); do
111 value="${value}0"
112 done
113 value="${value}${3}"
114
115 len=$[ 3 - ${#KV_PATCH} ]
116 for((i=0; i<$len; i++)); do
117 test="${test}0"
118 done
119 test="${test}${KV_PATCH}"
120 fi
121
122 [ ${test} ${operator} ${value} ] && return 0 || return 1
123}
124
125
126kernel_is_2_4() {
127 kernel_is 2 4
128 return $?
129}
130
131kernel_is_2_6() {
132 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 5 -o ${KV_MINOR} -eq 6 ] && \
133 return 0 || return 1
134}
135
136kernel_header_destdir() {
137 [ "${CTARGET}" = "${CHOST}" ] \
138 && echo /usr/include \
139 || echo /usr/${CTARGET}/include
140}
141
36# capture the sources type and set depends 142# Capture the sources type and set DEPENDs
37if [ "${ETYPE}" == "sources" ] 143if [ "${ETYPE}" == "sources" ]
38then 144then
39 #console-tools is needed to solve the loadkeys fiasco; binutils version needed to avoid Athlon/PIII/SSE assembler bugs. 145 # binutils version needed to avoid Athlon/PIII/SSE assembler bugs.
40 DEPEND="!build? ( sys-apps/sed 146 DEPEND="!build? ( sys-apps/sed
41 >=sys-devel/binutils-2.11.90.0.31 )" 147 >=sys-devel/binutils-2.11.90.0.31 )
148 doc? ( !arm? ( !s390? ( app-text/docbook-sgml-utils ) ) )"
42 149
43 RDEPEND="${DEPEND} 150 RDEPEND="${DEPEND}
44 !build? ( >=sys-libs/ncurses-5.2 151 !build? ( >=sys-libs/ncurses-5.2
45 dev-lang/perl 152 dev-lang/perl
46 sys-apps/module-init-tools 153 virtual/modutils
47 sys-devel/make )" 154 sys-devel/make )"
48 155
156 [ $(kernel_is_2_4) $? == 0 ] && PROVIDE="virtual/linux-sources" \
49 PROVIDE="virtual/linux-sources virtual/alsa" 157 || PROVIDE="virtual/linux-sources virtual/alsa"
50 158
51elif [ "${ETYPE}" == "headers" ] 159elif [ "${ETYPE}" == "headers" ]
52then 160then
53 PROVIDE="virtual/kernel virtual/os-headers" 161 PROVIDE="virtual/kernel virtual/os-headers"
54else 162else
55 eerror "Unknown ETYPE=\"${ETYPE}\", must be either \"sources\" or \"headers\"" 163 eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
56 die 164 die
57fi 165fi
58 166
59# Grab kernel version from KV
60KV_MAJOR=$(echo ${KV} | cut -d. -f1)
61KV_MINOR=$(echo ${KV} | cut -d. -f2)
62KV_PATCH=$(echo ${KV} | cut -d. -f3)
63KV_PATCH=${KV_PATCH/[-_]*/}
64
65# set LINUX_HOSTCFLAGS if not already set
66[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include"
67
68
69#eclass functions only from here onwards.
70#==============================================================
71kernel_is_2_4() {
72 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 4 ] && return 0 || return 1
73}
74
75kernel_is_2_6() {
76 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 5 -o ${KV_MINOR} -eq 6 ] && return 0 || return 1
77}
78
79
80# Unpack functions 167# Unpack functions
81#============================================================== 168#==============================================================
82unpack_2_4() { 169unpack_2_4() {
83 cd ${S} 170 cd ${S}
84 # this file is required for other things to build properly, 171 # this file is required for other things to build properly,
85 # so we autogenerate it 172 # so we autogenerate it
86 make mrproper || die "make mrproper died" 173 make mrproper || die "make mrproper died"
87 make include/linux/version.h || die "make include/linux/version.h failed" 174 make include/linux/version.h || die "make include/linux/version.h failed"
88 echo ">>> version.h compiled successfully." 175 echo ">>> version.h compiled successfully."
89} 176}
90 177
91universal_unpack() { 178universal_unpack() {
179 [ -z "${OKV}" ] && OKV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
180
181 cd ${WORKDIR}
182 unpack linux-${OKV}.tar.bz2
183 if [ "${OKV}" != "${KV_FULL}" ]
184 then
185 mv linux-${OKV} linux-${KV_FULL} \
186 || die "Unable to move source tree to ${KV_FULL}."
187 fi
188 cd ${S}
189
190 # change incorrect install path
191 sed -ie 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile
192
92 # remove all backup files 193 # remove all backup files
93 find . -iname "*~" -exec rm {} \; 2> /dev/null 194 find . -iname "*~" -exec rm {} \; 2> /dev/null
94 195
95 if [ -d "${S}/Documentation/DocBook" ] 196 if [ -d "${S}/Documentation/DocBook" ]
96 then 197 then
97 cd ${S}/Documentation/DocBook 198 cd ${S}/Documentation/DocBook
98 sed -e "s:db2:docbook2:g" Makefile > Makefile.new \ 199 sed -e "s:db2:docbook2:g" Makefile > Makefile.new \
99 && mv Makefile.new Makefile 200 && mv Makefile.new Makefile
100 cd ${S} 201 cd ${S}
101 fi 202 fi
203 # fix a problem on ppc
204 use ppc && \
205 sed -ie 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \
206 ${S}/arch/ppc/Makefile
102} 207}
103 208
104unpack_set_extraversion() { 209unpack_set_extraversion() {
105 # Gentoo Linux uses /boot, so fix 'make install' to work properly and fix EXTRAVERSION
106 cd ${S} 210 cd ${S}
107 mv Makefile Makefile.orig
108 sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
109 -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" \ 211 sed -ie "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile
110 Makefile.orig > Makefile
111 rm Makefile.orig
112} 212}
113 213
114# Compile Functions 214# Compile Functions
115#============================================================== 215#==============================================================
116compile_headers() { 216compile_headers() {
117 local MY_ARCH 217 local MY_ARCH
118 218
119 MY_ARCH=${ARCH} 219 MY_ARCH=${ARCH}
120 unset ${ARCH} 220 unset ${ARCH}
121 yes "" | make oldconfig 221 yes "" | make oldconfig
122 echo ">>> make oldconfig complete" 222 echo ">>> make oldconfig complete"
123 ARCH=${MY_ARCH} 223 ARCH=${MY_ARCH}
224}
225
226compile_manpages() {
227 local MY_ARCH
228
229 einfo "Making manpages ..."
230 MY_ARCH=${ARCH}
231 unset ARCH
232 make mandocs
233 ARCH=${MY_ARCH}
124} 234}
125 235
126# install functions 236# install functions
127#============================================================== 237#==============================================================
128install_universal() { 238install_universal() {
132 chmod -R a+r-w+X,u+w * 242 chmod -R a+r-w+X,u+w *
133} 243}
134 244
135install_headers() { 245install_headers() {
136 [ $(kernel_is_2_4) $? == 0 ] && unpack_2_4 246 [ $(kernel_is_2_4) $? == 0 ] && unpack_2_4
137 [ $(kernel_is_2_6) $? == 0 ] && ln -sf ${S}/include/asm-${ARCH} ${S}/include/asm
138 247
248 local ddir=$(kernel_header_destdir)
139 cd ${S} 249 cd ${S}
140 dodir /usr/include/linux 250 dodir ${ddir}/linux
251 ln -sf ${S}/include/asm-${ARCH} ${S}/include/asm
141 cp -ax ${S}/include/linux/* ${D}/usr/include/linux 252 cp -ax ${S}/include/linux/* ${D}/${ddir}/linux
142 rm -rf ${D}/usr/include/linux/modules 253 rm -rf ${D}/${ddir}/linux/modules
143 dodir /usr/include/asm 254
255 dodir ${ddir}/asm
144 cp -ax ${S}/include/asm/* ${D}/usr/include/asm 256 cp -ax ${S}/include/asm/* ${D}/${ddir}/asm
145 257
146 if [ $(kernel_is_2_6) $? == 0 ] 258 if [ $(kernel_is_2_6) $? == 0 ]
147 then 259 then
148 dodir /usr/include/asm-generic 260 dodir ${ddir}/asm-generic
149 cp -ax ${S}/include/asm-generic/* ${D}/usr/include/asm-generic 261 cp -ax ${S}/include/asm-generic/* ${D}/${ddir}/asm-generic
150 fi 262 fi
151} 263}
152 264
153install_sources() { 265install_sources() {
154 local doc 266 local doc
155 local docs 267 local docs
268 local file
156 269
157 cd ${S} 270 cd ${S}
158 dodir /usr/src 271 dodir /usr/src
159 echo ">>> Copying sources..." 272 echo ">>> Copying sources ..."
160 if [ -d "${WORKDIR}/${KV}/docs/" ] 273 file="$(find ${WORKDIR} -iname "docs" -type d)"
274 if [ -n "${file}" ]
161 then 275 then
162 for file in $(ls -1 ${WORKDIR}/${KV}/docs/) 276 for file in $(find ${file} -type f)
163 do 277 do
164 echo "XX_${file}*" >> ${S}/patches.txt 278 echo "${file/*docs\//}" >> ${S}/patches.txt
279 echo "===================================================" >> ${S}/patches.txt
165 cat ${WORKDIR}/${KV}/docs/${file} >> ${S}/patches.txt 280 cat ${file} >> ${S}/patches.txt
281 echo "===================================================" >> ${S}/patches.txt
166 echo "" >> ${S}/patches.txt 282 echo "" >> ${S}/patches.txt
167 done 283 done
168 fi 284 fi
169 285
170 if [ ! -f ${S}/patches.txt ] 286 if [ ! -f ${S}/patches.txt ]
179 done 295 done
180 296
181 if [ -f ${S}/patches.txt ]; then 297 if [ -f ${S}/patches.txt ]; then
182 docs="${docs} ${S}/patches.txt" 298 docs="${docs} ${S}/patches.txt"
183 fi 299 fi
300
301 if use doc && ! use arm && ! use s390; then
302 install_manpages
303 fi
304
184 dodoc ${docs} 305 dodoc ${docs}
185 mv ${WORKDIR}/linux* ${D}/usr/src 306 mv ${WORKDIR}/linux* ${D}/usr/src
186} 307}
187 308
309install_manpages() {
310 local MY_ARCH
311
312 ebegin "Installing manpages"
313 MY_ARCH=${ARCH}
314 unset ARCH
315 sed -ie "s#/usr/local/man#${D}/usr/man#g" scripts/makeman
316 make installmandocs
317 eend $?
318 sed -ie "s#${D}/usr/man#/usr/local/man#g" scripts/makeman
319 ARCH=${MY_ARCH}
320}
321
188# pkg_preinst functions 322# pkg_preinst functions
189#============================================================== 323#==============================================================
190preinst_headers() { 324preinst_headers() {
191 [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux 325 local ddir=$(kernel_header_destdir)
192 [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm 326 [[ -L ${ROOT}${ddir}/linux ]] && rm "${ROOT}"${ddir}/linux
327 [[ -L ${ROOT}${ddir}/asm ]] && rm "${ROOT}"${ddir}/asm
193} 328}
194 329
195# pkg_postinst functions 330# pkg_postinst functions
196#============================================================== 331#==============================================================
197postinst_sources() { 332postinst_sources() {
198 if [ ! -h ${ROOT}usr/src/linux ] 333 if [ ! -h ${ROOT}usr/src/linux ]
199 then 334 then
200 ln -sf ${ROOT}usr/src/linux-${KV} ${ROOT}usr/src/linux 335 ln -sf ${ROOT}usr/src/linux-${KV_FULL} ${ROOT}usr/src/linux
201 fi 336 fi
202 337
203 # Don't forget to make directory for sysfs 338 # Don't forget to make directory for sysfs
204 [ ! -d "${ROOT}/sys" -a $(kernel_is_2_6) $? == 0 ] && mkdir /sys 339 [ ! -d "${ROOT}/sys" -a $(kernel_is_2_6) $? == 0 ] && mkdir /sys
205 340
209 einfo "created (X.Y is the first 2 parts of your new kernel version)" 344 einfo "created (X.Y is the first 2 parts of your new kernel version)"
210 echo 345 echo
211 einfo "For example, this kernel will require:" 346 einfo "For example, this kernel will require:"
212 einfo "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" 347 einfo "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
213 echo 348 echo
214 349
215 # if K_EXTRAEINFO is set then lets display it now 350 # if K_EXTRAEINFO is set then lets display it now
216 if [ -n "${K_EXTRAEINFO}" ] 351 if [ -n "${K_EXTRAEINFO}" ]
217 then 352 then
218 echo ${K_EXTRAEINFO} | fmt | 353 echo ${K_EXTRAEINFO} | fmt |
219 while read -s ELINE 354 while read -s ELINE
220 do 355 do
221 einfo "${ELINE}" 356 einfo "${ELINE}"
222 done 357 done
223 358
359 echo
360 fi
361
362 # Show policy version, if this kernel has SELinux ...
363 local secfile
364 secfile="${ROOT}usr/src/linux-${KV_FULL}/security/selinux/include/security.h"
365 if use selinux && [ -f "$secfile" ]
366 then
367 local polver=$(awk '/POLICYDB_VERSION /{print $3}' $secfile)
368 einfo "The SELinux policy version of this kernel is $polver."
224 echo 369 echo
225 fi 370 fi
226 371
227 # if K_EXTRAEWARN is set then lets display it now 372 # if K_EXTRAEWARN is set then lets display it now
228 if [ -n "${K_EXTRAEWARN}" ] 373 if [ -n "${K_EXTRAEWARN}" ]
249} 394}
250 395
251# pkg_setup functions 396# pkg_setup functions
252#============================================================== 397#==============================================================
253setup_headers() { 398setup_headers() {
254 ARCH=$(uname -m | sed -e s/[i].86/i386/ -e s/x86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/amd64/x86_64/) 399 ARCH=$(uname -m | sed -e s/[i].86/i386/ -e s/x86/i386/ -e s/sun4u/sparc64/ \
400 -e s/arm.*/arm/ -e s/sa110/arm/ -e s/amd64/x86_64/)
255 [ "$ARCH" == "sparc" -a "$PROFILE_ARCH" == "sparc64" ] && ARCH="sparc64" 401 [ "$ARCH" == "sparc" -a "$PROFILE_ARCH" == "sparc64" ] && ARCH="sparc64"
256 402 [ "$ARCH" == "sparc" -a "$PROFILE_ARCH" == "sparc64-multilib" ] && ARCH="sparc64"
403
257 [ -z "${H_SUPPORTEDARCH}" ] && H_SUPPORTEDARCH="${PN/-*/}" 404 [ -z "${H_SUPPORTEDARCH}" ] && H_SUPPORTEDARCH="${PN/-*/}"
258 for i in ${H_SUPPORTEDARCH} 405 for i in ${H_SUPPORTEDARCH}
259 do 406 do
260 [ "${ARCH}" == "${i}" ] && H_ACCEPT_ARCH="yes" 407 [ "${ARCH}" == "${i}" ] && H_ACCEPT_ARCH="yes"
261 done 408 done
262 409
263 if [ "${H_ACCEPT_ARCH}" != "yes" ] 410 if [ "${H_ACCEPT_ARCH}" != "yes" ]
264 then 411 then
265 echo 412 echo
266 eerror "This version of ${PN} does not support ${ARCH}." 413 eerror "This version of ${PN} does not support ${ARCH}."
267 eerror "Please merge the appropriate sources, in most cases" 414 eerror "Please merge the appropriate sources, in most cases"
275unipatch() { 422unipatch() {
276 local i 423 local i
277 local x 424 local x
278 local extention 425 local extention
279 local PIPE_CMD 426 local PIPE_CMD
280 local UNIPATCH_EXCLUDE 427 local UNIPATCH_DROP
281 local KPATCH_DIR 428 local KPATCH_DIR
282 local PATCH_DEPTH 429 local PATCH_DEPTH
283 local ELINE 430 local ELINE
431 local STRICT_COUNT
432 local PATCH_LEVEL
284 433
285 [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/" 434 [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/"
286 [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR} 435 [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR}
287 436
437 # We're gonna need it when doing patches with a predefined patchlevel
438 shopt -s extglob
439
288 # This function will unpack all passed tarballs, add any passed patches, and remove any passed patchnumbers 440 # This function will unpack all passed tarballs, add any passed patches, and remove any passed patchnumbers
289 # usage can be either via an env var or by params 441 # usage can be either via an env var or by params
442 # although due to the nature we pass this within this eclass
443 # it shall be by param only.
290 [ -z "${UNIPATCH_LIST}" ] && UNIPATCH_LIST="${@}" 444 # -z "${UNIPATCH_LIST}" ] && UNIPATCH_LIST="${@}"
445 UNIPATCH_LIST="${@}"
291 446
292 #unpack any passed tarballs 447 #unpack any passed tarballs
293 for i in ${UNIPATCH_LIST} 448 for i in ${UNIPATCH_LIST}
294 do 449 do
295 if [ -n "$(echo ${i} | grep -e "\.tar" -e "\.tbz" -e "\.tgz")" ] 450 if [ -n "$(echo ${i} | grep -e "\.tar" -e "\.tbz" -e "\.tgz")" ]
296 then 451 then
297 extention=${i/*./} 452 extention=${i/*./}
453 extention=${extention/:*/}
298 case ${extention} in 454 case ${extention} in
299 tbz2) PIPE_CMD="tar -xvjf";; 455 tbz2) PIPE_CMD="tar -xvjf";;
300 bz2) PIPE_CMD="tar -xvjf";; 456 bz2) PIPE_CMD="tar -xvjf";;
301 tgz) PIPE_CMD="tar -xvzf";; 457 tgz) PIPE_CMD="tar -xvzf";;
302 gz) PIPE_CMD="tar -xvzf";; 458 gz) PIPE_CMD="tar -xvzf";;
303 *) eerror "Unrecognized tarball compression" 459 *) eerror "Unrecognized tarball compression"
304 die "Unrecognized tarball compression";; 460 die "Unrecognized tarball compression";;
305 esac 461 esac
306 462
463 if [ -n "${UNIPATCH_STRICTORDER}" ]
464 then
465 STRICT_COUNT=$((${STRICT_COUNT} + 1))
466 mkdir -p ${KPATCH_DIR}/${STRICT_COUNT}/
467 ${PIPE_CMD} ${i/:*/} -C ${KPATCH_DIR}/${STRICT_COUNT}/ 1>/dev/null
468 else
307 ${PIPE_CMD} ${i} -C ${KPATCH_DIR} 1>/dev/null 469 ${PIPE_CMD} ${i/:*/} -C ${KPATCH_DIR} 1>/dev/null
470 fi
471
308 if [ $? == 0 ] 472 if [ $? == 0 ]
309 then 473 then
310 einfo "${i/*\//} unpacked" 474 einfo "${i/*\//} unpacked"
475 [ -n "$(echo ${i} | grep ':')" ] && echo ">>> Strict patch levels not currently supported for tarballed patchsets"
311 else 476 else
312 eerror "Failed to unpack ${i}" 477 eerror "Failed to unpack ${i/:*/}"
313 die "unable to unpack patch tarball" 478 die "unable to unpack patch tarball"
314 fi 479 fi
480 else
481 extention=${i/*./}
482 extention=${extention/:*/}
483 PIPE_CMD=""
484 case ${extention} in
485 bz2) PIPE_CMD="bzip2 -dc";;
486 patch) PIPE_CMD="cat";;
487 diff) PIPE_CMD="cat";;
488 gz|Z|z) PIPE_CMD="gzip -dc";;
489 ZIP|zip) PIPE_CMD="unzip -p";;
490 *) UNIPATCH_DROP="${UNIPATCH_DROP} ${i/:*/}";;
491 esac
315 492
316 UNIPATCH_LIST="${UNIPATCH_LIST/${i}/}" 493 PATCH_LEVEL=${i/*([^:])?(:)}
494 i=${i/:*/}
495 x=${i/*\//}
496 x=${x/\.${extention}/}
497
498 if [ -n "${PIPE_CMD}" ]
499 then
500 if [ ! -r "${i}" ]
501 then
502 echo
503 eerror "FATAL: unable to locate:"
504 eerror "${i}"
505 eerror "for read-only. The file either has incorrect permissions"
506 eerror "or does not exist."
507 die Unable to locate ${i}
508 fi
509
510 if [ -n "${UNIPATCH_STRICTORDER}" ]
511 then
512 STRICT_COUNT=$((${STRICT_COUNT} + 1))
513 mkdir -p ${KPATCH_DIR}/${STRICT_COUNT}/
514 $(${PIPE_CMD} ${i} > ${KPATCH_DIR}/${STRICT_COUNT}/${x}.patch${PATCH_LEVEL})
515 else
516 $(${PIPE_CMD} ${i} > ${KPATCH_DIR}/${x}.patch${PATCH_LEVEL})
517 fi
518 fi
317 fi 519 fi
318 done
319
320 #so now everything is unpacked, lets work out whats to be dropped and whats to be included.
321 for i in ${UNIPATCH_LIST}
322 do
323 extention=${i/*./}
324 PIPE_CMD=""
325 case ${extention} in
326 bz2) PIPE_CMD="bzip2 -dc";;
327 patch) PIPE_CMD="cat";;
328 diff) PIPE_CMD="cat";;
329 gz|Z|z) PIPE_CMD="gzip -dc";;
330 ZIP|zip) PIPE_CMD="unzip -p";;
331 *) UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} ${i}";;
332 esac
333 x=${i/*\//}
334 x=${x/\.${extention}/}
335 [ -n "${PIPE_CMD}" ] && ${PIPE_CMD} ${i} > ${KPATCH_DIR}/${x}.patch
336 done 520 done
337 521
338 #populate KPATCH_DIRS so we know where to look to remove the excludes 522 #populate KPATCH_DIRS so we know where to look to remove the excludes
339 x=${KPATCH_DIR} 523 x=${KPATCH_DIR}
340 KPATCH_DIR="" 524 KPATCH_DIR=""
525 LC_ALL="C"
341 for i in $(find ${x} -type d) 526 for i in $(find ${x} -type d | sort -n)
342 do 527 do
343 KPATCH_DIR="${KPATCH_DIR} ${i}" 528 KPATCH_DIR="${KPATCH_DIR} ${i}"
344 done 529 done
345 530
346 #so now lets get rid of the patchno's we want to exclude 531 #so now lets get rid of the patchno's we want to exclude
532 UNIPATCH_DROP="${UNIPATCH_EXCLUDE} ${UNIPATCH_DROP}"
347 for i in ${UNIPATCH_EXCLUDE} 533 for i in ${UNIPATCH_DROP}
348 do 534 do
535 ebegin "Excluding Patch #${i}"
349 for x in ${KPATCH_DIR} 536 for x in ${KPATCH_DIR}
350 do 537 do
351 rm ${x}/${i}_* 2>/dev/null 538 rm -f ${x}/${i}* 2>/dev/null
352 if [ $? == 0 ]
353 then
354 einfo "Excluding Patch #${i}"
355 einfo "From: ${x/${WORKDIR}/}"
356 fi
357 done 539 done
540 eend $?
358 done 541 done
359 542
360 # and now, finally, we patch it :) 543 # and now, finally, we patch it :)
361 for x in ${KPATCH_DIR} 544 for x in ${KPATCH_DIR}
362 do 545 do
363 for i in $(find ${x} -maxdepth 1 -iname "*.patch" -or -iname "*.diff" | sort -u) 546 for i in $(find ${x} -maxdepth 1 -iname "*.patch*" -or -iname "*.diff*" | sort -n)
364 do 547 do
548 STDERR_T="${T}/${i/*\//}"
549 STDERR_T="${STDERR_T/.patch*/.err}"
365 550
551 [ -z ${i/*.patch*/} ] && PATCH_DEPTH=${i/*.patch/}
552 [ -z ${i/*.diff*/} ] && PATCH_DEPTH=${i/*.diff/}
366 553
554 if [ -z "${PATCH_DEPTH}" ]; then
367 PATCH_DEPTH=0 555 PATCH_DEPTH=0
556 fi
557
368 ebegin "Applying ${i/*\//}" 558 ebegin "Applying ${i/*\//} (-p${PATCH_DEPTH}+)"
369 while [ ${PATCH_DEPTH} -lt 5 ] 559 while [ ${PATCH_DEPTH} -lt 5 ]
370 do 560 do
371 if (patch -p${PATCH_DEPTH} --dry-run -f < ${i} >/dev/null) 561 echo "Attempting Dry-run:" >> ${STDERR_T}
562 echo "cmd: patch -p${PATCH_DEPTH} --dry-run -f < ${i}" >> ${STDERR_T}
563 echo "=======================================================" >> ${STDERR_T}
564 if [ $(patch -p${PATCH_DEPTH} --dry-run -f < ${i} >> ${STDERR_T}) $? -eq 0 ]
372 then 565 then
373 $(patch -p${PATCH_DEPTH} -f < ${i} >/dev/null) 566 echo "Attempting patch:" > ${STDERR_T}
374 if [ "$?" -eq 0 ] 567 echo "cmd: patch -p${PATCH_DEPTH} -f < ${i}" >> ${STDERR_T}
568 echo "=======================================================" >> ${STDERR_T}
569 if [ $(patch -p${PATCH_DEPTH} -f < ${i} >> ${STDERR_T}) "$?" -eq 0 ]
375 then 570 then
376 eend 0 571 eend 0
572 rm ${STDERR_T}
377 break 573 break
378 else 574 else
379 eend 1 575 eend 1
380 eerror "Failed to apply patch ${i/*\//}" 576 eerror "Failed to apply patch ${i/*\//}"
577 eerror "Please attach ${STDERR_T} to any bug you may post."
381 die "Failed to apply ${i/*\//}" 578 die "Failed to apply ${i/*\//}"
382 fi 579 fi
383 else 580 else
384 PATCH_DEPTH=$((${PATCH_DEPTH} + 1)) 581 PATCH_DEPTH=$((${PATCH_DEPTH} + 1))
385 fi 582 fi
386 done 583 done
387 if [ ${PATCH_DEPTH} -eq 5 ] 584 if [ ${PATCH_DEPTH} -eq 5 ]
388 then 585 then
389 eend 1 586 eend 1
587 eerror "Please attach ${STDERR_T} to any bug you may post."
390 die "Unable to dry-run patch." 588 die "Unable to dry-run patch."
391 fi 589 fi
392
393
394 done 590 done
395 done 591 done
592
593 # clean up KPATCH_DIR's - fixes bug #53610
594 for x in ${KPATCH_DIR}
595 do
596 rm -Rf ${x}
597 done
598 unset LC_ALL
396} 599}
397 600
398# custom functions 601# custom functions
399#============================================================== 602#==============================================================
400detect_version() { 603detect_version() {
401 # this function will detect and set 604 # this function will detect and set
402 # - OKV: Original Kernel Version (2.6.0/2.6.0-test11) 605 # - OKV: Original Kernel Version (2.6.0/2.6.0-test11)
403 # - KV: Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1) 606 # - KV: Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1)
404 # - EXTRAVERSION: The additional version appended to OKV (-gentoo/-gentoo-r1) 607 # - EXTRAVERSION: The additional version appended to OKV (-gentoo/-gentoo-r1)
405 608
609 if [ -n "${KV_FULL}" ] ;
610 then
611 # we will set this for backwards compatibility.
612 KV=${KV_FULL}
613
614 # we know KV_FULL so lets stop here. but not without resetting S
615 S=${WORKDIR}/linux-${KV_FULL}
616 return
617 fi
618
406 OKV=${PV/_beta/-test} 619 OKV=${PV/_beta/-test}
407 OKV=${OKV/_rc/-rc} 620 OKV=${OKV/_rc/-rc}
408 OKV=${OKV/_pre*/} 621 OKV=${OKV/_p*/}
409 OKV=${OKV/-r*/} 622 OKV=${OKV/-r*/}
410 623
411 KV_MAJOR=$(echo ${OKV} | cut -d. -f1) 624 KV_MAJOR=$(echo ${OKV} | cut -d. -f1)
412 KV_MINOR=$(echo ${OKV} | cut -d. -f2) 625 KV_MINOR=$(echo ${OKV} | cut -d. -f2)
413 KV_PATCH=$(echo ${OKV} | cut -d. -f3) 626 KV_PATCH=$(echo ${OKV} | cut -d. -f3-)
414 KV_PATCH=${KV_PATCH/[-_]*/} 627 KV_PATCH=${KV_PATCH/[-_]*/}
415 628
416 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 629 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
417 630
418 RELEASE=${PV/${OKV}/} 631 RELEASE=${PV/${OKV}/}
419 RELEASE=${RELEASE/_beta/} 632 RELEASE=${RELEASE/_beta/}
420 RELEASE=${RELEASE/_rc/-rc} 633 RELEASE=${RELEASE/_rc/-rc}
634 if [ $(kernel_is_2_4) $? == 0 ]
635 then
636 RELEASE=${RELEASE/_pre/-pre}
637 else
421 RELEASE=${RELEASE/_pre/-bk} 638 RELEASE=${RELEASE/_pre/-bk}
639 fi
422 RELEASETYPE=${RELEASE//[0-9]/} 640 RELEASETYPE=${RELEASE//[0-9]/}
423
424 EXTRAVERSION="${RELEASE}" 641 EXTRAVERSION="${RELEASE}"
425 642
426 if [ -n "${K_PREPATCHED}" ] 643 if [ -n "${K_PREPATCHED}" ]
427 then 644 then
428 KV="${OKV}-${PN/-*/}${PR/r/}" 645 EXTRAVERSION="${EXTRAVERSION}-${PN/-*/}${PR/r/}"
429 else 646 else
430 [ -z "${K_NOUSENAME}" ] && EXTRAVERSION="${EXTRAVERSION}-${PN/-*/}" 647 [ -z "${K_NOUSENAME}" ] && EXTRAVERSION="${EXTRAVERSION}-${PN/-*/}"
431 [ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}" 648 [ "${PR}" != "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
432 649 fi
650
433 KV=${OKV}${EXTRAVERSION} 651 KV_FULL=${OKV}${EXTRAVERSION}
434 fi 652
435
436 # -rcXX-bkXX pulls are *IMPOSSIBLE* to support within the portage naming convention 653 # -rcXX-bkXX pulls are *IMPOSSIBLE* to support within the portage naming convention
437 # these cannot be supported, but the code here can handle it up until this point 654 # these cannot be supported, but the code here can handle it up until this point
438 # and theoretically thereafter. 655 # and theoretically thereafter.
439 656
440 if [ "${RELEASETYPE}" == "-rc" ] 657 if [ "${RELEASETYPE}" == "-rc" -o "${RELEASETYPE}" == "-pre" ]
441 then 658 then
442 OKV="${KV_MAJOR}.${KV_MINOR}.$([ $((${KV_PATCH} - 1)) -lt 0 ] && echo ${KV_PATCH} || echo $((${KV_PATCH} - 1)))" 659 OKV="${KV_MAJOR}.${KV_MINOR}.$([ $((${KV_PATCH} - 1)) -lt 0 ] && echo ${KV_PATCH} || echo $((${KV_PATCH} - 1)))"
443 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${PV//_/-}.bz2 660 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${PV//_/-}.bz2
444 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 661 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
445 UNIPATCH_LIST="${DISTDIR}/patch-${PV//_/-}.bz2 ${UNIPATCH_LIST}" 662 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${PV//_/-}.bz2"
446 [ -n "${K_PREPATCHED}" ] && KV="${PV/[-_]*/}${EXTRAVERSION}-${PN/-*/}${PR/r/}" || KV=${PV/[-_]*/}${EXTRAVERSION} 663 KV_FULL=${PV/[-_]*/}${EXTRAVERSION}
447 fi 664 fi
448 665
449 if [ "${RELEASETYPE}" == "-bk" ] 666 if [ "${RELEASETYPE}" == "-bk" ]
450 then 667 then
451 OKV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" 668 OKV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
452 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2 669 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2
453 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 670 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
454 UNIPATCH_LIST="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2 ${UNIPATCH_LIST}" 671 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2"
455 [ -n "${K_PREPATCHED}" ] && KV="${PV/[-_]*/}${EXTRAVERSION}-${PN/-*/}${PR/r/}" || KV=${PV/[-_]*/}${EXTRAVERSION} 672 KV_FULL=${PV/[-_]*/}${EXTRAVERSION}
456 fi 673 fi
457 674
458 if [ "${RELEASETYPE}" == "-rc-bk" ] 675 if [ "${RELEASETYPE}" == "-rc-bk" ]
459 then 676 then
460 OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))-${RELEASE/-bk*}" 677 OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))-${RELEASE/-bk*}"
461 EXTRAVERSION="$([ -n "${RELEASE}" ] && echo ${RELEASE/*-bk/-bk})$([ -n "${K_USENAME}" ] && echo -${PN/-*/})$([ ! "${PR}" == "r0" ] && echo -${PR})" 678 EXTRAVERSION="$([ -n "${RELEASE}" ] && echo ${RELEASE/*-bk/-bk})$([ -n "${K_USENAME}" ] && echo -${PN/-*/})$([ ! "${PR}" == "r0" ] && echo -${PR})"
462 679
463 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2 680 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2
464 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 681 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
465 UNIPATCH_LIST="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2 ${UNIPATCH_LIST}" 682 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2"
466 [ -n "${K_PREPATCHED}" ] && KV="${PV/[-_]*/}${EXTRAVERSION}-${PN/-*/}${PR/r/}" || KV=${PV/[-_]*/}${EXTRAVERSION} 683 KV_FULL=${PV/[-_]*/}${EXTRAVERSION}
467 fi 684 fi
468 685
469 S=${WORKDIR}/linux-${KV} 686 S=${WORKDIR}/linux-${KV_FULL}
687 # we will set this for backwards compatibility.
688 KV=${KV_FULL}
689}
690
691detect_arch() {
692 # This function sets ARCH_URI and ARCH_PATCH
693 # with the neccessary info for the arch sepecific compatibility
694 # patchsets.
695
696 local ALL_ARCH
697 local LOOP_ARCH
698 local COMPAT_URI
699 local i
700
701 # COMPAT_URI is the contents of ${ARCH}_URI
702 # ARCH_URI is the URI for all the ${ARCH}_URI patches
703 # ARCH_PATCH is ARCH_URI broken into files for UNIPATCH
704
705 ARCH_URI=""
706 ARCH_PATCH=""
707 ALL_ARCH="X86 PPC PPC64 SPARC MIPS ALPHA ARM HPPA AMD64 IA64 X86OBSD S390"
708
709 for LOOP_ARCH in ${ALL_ARCH}
710 do
711 COMPAT_URI="${LOOP_ARCH}_URI"
712 COMPAT_URI="${!COMPAT_URI}"
713
714 [ -n "${COMPAT_URI}" ] && \
715 ARCH_URI="${ARCH_URI} $(echo ${LOOP_ARCH} | tr '[:upper:]' '[:lower:]')? ( ${COMPAT_URI} )"
716
717 if [ "${LOOP_ARCH}" == "$(echo ${ARCH} | tr '[:lower:]' '[:upper:]')" ]
718 then
719 for i in ${COMPAT_URI}
720 do
721 ARCH_PATCH="${ARCH_PATCH} ${DISTDIR}/${i/*\//}"
722 done
723 fi
724 done
470} 725}
471 726
472 727
473# common functions 728# common functions
474#============================================================== 729#==============================================================
475src_unpack() { 730kernel-2_src_unpack() {
476 [ -z "${OKV}" ] && OKV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" 731 detect_version
477
478 cd ${WORKDIR}
479 unpack linux-${OKV}.tar.bz2
480 if [ "${OKV}" != "${KV}" ]
481 then
482 mv linux-${OKV} linux-${KV} || die "Unable to move source tree to ${KV}."
483 fi
484 cd ${S}
485
486 universal_unpack 732 universal_unpack
487 [ -n "${UNIPATCH_LIST}" ] && unipatch ${UNIPATCH_LIST} 733
734 [ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && \
735 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}"
736
488 [ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion 737 [ -z "${K_NOSETEXTRAVERSION}" ] && \
738 unpack_set_extraversion
489 739
490 [ $(kernel_is_2_4) $? == 0 ] && unpack_2_4 740 kernel_is 2 4 && unpack_2_4
491} 741}
492 742
493src_compile() { 743kernel-2_src_compile() {
494 [ "${ETYPE}" == "headers" ] && compile_headers 744 [ "${ETYPE}" == "headers" ] && compile_headers
745 [ "${ETYPE}" == "sources" ] && \
746 use doc && ! use arm && ! use s390 && compile_manpages
495} 747}
496 748
497pkg_preinst() { 749kernel-2_pkg_preinst() {
498 [ "${ETYPE}" == "headers" ] && preinst_headers 750 [ "${ETYPE}" == "headers" ] && preinst_headers
499} 751}
500 752
501src_install() { 753kernel-2_src_install() {
502 install_universal 754 install_universal
503 [ "${ETYPE}" == "headers" ] && install_headers 755 [ "${ETYPE}" == "headers" ] && install_headers
504 [ "${ETYPE}" == "sources" ] && install_sources 756 [ "${ETYPE}" == "sources" ] && install_sources
505} 757}
506 758
507pkg_postinst() { 759kernel-2_pkg_postinst() {
508 [ "${ETYPE}" == "headers" ] && postinst_headers 760 [ "${ETYPE}" == "headers" ] && postinst_headers
509 [ "${ETYPE}" == "sources" ] && postinst_sources 761 [ "${ETYPE}" == "sources" ] && postinst_sources
510} 762}
511 763
512pkg_setup() { 764kernel-2_pkg_setup() {
513 [ "${ETYPE}" == "headers" ] && setup_headers 765 [ "${ETYPE}" == "headers" ] && setup_headers
766
767 # This is to fix some weird portage bug? in stable versions of portage.
768 [ "${ETYPE}" == "sources" ] && echo ">>> Preparing to unpack ..."
514} 769}
770
771

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.20