Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=kernel2625.git;a=commitdiff;h=0e2da84058fbe6cb40fc0e8766590b0c3cf15bc0
commit 0e2da84058fbe6cb40fc0e8766590b0c3cf15bc0 Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Tue Apr 22 14:28:24 2008 +0200 virtualbox-1.5.6_1-5-i686 - rebuilt with kernel-2.6.25-1-i686 - added kernel-2.6.25.patch to fix up the build diff --git a/source/xapps-extra/virtualbox/FrugalBuild b/source/xapps-extra/virtualbox/FrugalBuild index 28c7a32..90ea21d 100644 --- a/source/xapps-extra/virtualbox/FrugalBuild +++ b/source/xapps-extra/virtualbox/FrugalBuild @@ -5,7 +5,7 @@ pkgname=virtualbox realname=VirtualBox pkgver=1.5.6_1 -pkgrel=4 +pkgrel=5 pkgdesc="InnoTek VirtualBox is a family of powerful x86 virtualization products for enterprise as well as home use." url="http://www.virtualbox.org" _F_kernelmod_scriptlet=$pkgname.install @@ -19,7 +19,8 @@ archs=('i686' '!x86_64') up2date="lynx -dump http://www.virtualbox.org/wiki/Downloads | grep 'OSE tarball' | sed 's/.*VirtualBox //' | sed 's/ OSE.*//'" source=(http://www.virtualbox.org/download/$(echo $pkgver|sed 's/_.*//')/${realname}-${pkgver/_/-}_OSE.tar.bz2 \ vboxsvc virtualbox get-vbox-additions README.Frugalware 60-virtualbox.rules \ - use-o3-to-workaround-gcc-ice.diff virtualbox-gcc43-fixes.diff virtualbox-validate-op-gcc43.diff) + use-o3-to-workaround-gcc-ice.diff virtualbox-gcc43-fixes.diff virtualbox-validate-op-gcc43.diff \ + kernel-2.6.25.patch) sha1sums=('1cb11c012b9143e14f2eada645757cae8886d0d1' \ 'e32ebff11bb235b50f8826b70d85dbcf4a56aee4' \ '3c0c856b9ad5f186405e87cf6eac09f1060b62cd' \ @@ -28,7 +29,8 @@ sha1sums=('1cb11c012b9143e14f2eada645757cae8886d0d1' \ 'b9cb188f62148603b78a0b8c04b6fff369bb7b62' \ 'f8875f474975d33ef2c8707bde4710c7c72f9727' \ '17f6f99a344ac9a088fef826249a38e6cce2c11d' \ - 'c2d014abf3801f0a87142fc3a6d08a782cd5ef9c') + 'c2d014abf3801f0a87142fc3a6d08a782cd5ef9c' \ + '6dfbfe1c50b78b17a6091e229abef77bf6e084ee') _F_cd_path="${realname}-$(echo $pkgver|sed 's/_.*//')_OSE" vboxrealpkgver="$(echo $pkgver|sed 's/_.*//')" options=('scriptlet') diff --git a/source/xapps-extra/virtualbox/kernel-2.6.25.patch b/source/xapps-extra/virtualbox/kernel-2.6.25.patch new file mode 100644 index 0000000..41f1b60 --- /dev/null +++ b/source/xapps-extra/virtualbox/kernel-2.6.25.patch @@ -0,0 +1,144 @@ +diff -ur virtualbox-ose_1.5.6/r0drv/linux/the-linux-kernel.h virtualbox-ose/r0drv/linux/the-linux-kernel.h +--- src/VBox/Runtime/r0drv/linux/the-linux-kernel.h 2008-02-23 11:10:06.000000000 +0100 ++++ src/VBox/Runtime/r0drv/linux/the-linux-kernel.h 2008-02-27 01:57:20.000000000 +0100 +@@ -225,12 +225,16 @@ + #undef bool + + /* +- * There are post-2.6.24 kernels (confusingly with unchanged version number) +- * which eliminate macros which were marked as deprecated. ++ * The 2.6.25 kernel eliminates macros that were marked as deprecated and eliminates ++ * routine change_page_attr() in favor of the set_pages_* API. + */ + #ifndef __attribute_used__ + #define __attribute_used__ __used + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) ++int change_page_attr(struct page *page, int numpages, pgprot_t prot); ++#endif ++ + #endif + +diff -ur virtualbox-ose_1.5.6/linux/SUPDrv-linux.c virtualbox-ose/linux/SUPDrv-linux.c +--- src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c 2008-02-23 11:10:05.000000000 +0100 ++++ src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c 2008-02-27 01:54:17.000000000 +0100 +@@ -2069,6 +2069,17 @@ + /* GCC C++ hack. */ + unsigned __gxx_personality_v0 = 0xcccccccc; + ++/* Add the change_page_attr routine for kernels 2.6.25 or later */ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) ++int change_page_attr(struct page *page, int numpages, pgprot_t prot) ++{ ++ /* use the set_pages_* API */ ++ if (pgprot_val(prot) & _PAGE_NX) ++ set_pages_nx(page, numpages); ++ set_pages_uc(page, numpages); ++ return 0; ++} ++#endif + + module_init(VBoxSupDrvInit); + module_exit(VBoxSupDrvUnload); +Index: src/VBox/Additions/linux/sharedfolders/vfsmod.c +=================================================================== +--- src/VBox/Additions/linux/sharedfolders/vfsmod.c (revision 7549) ++++ src/VBox/Additions/linux/sharedfolders/vfsmod.c (revision 7550) +@@ -224,7 +224,11 @@ + sb->s_blocksize = 1024; + sb->s_op = &sf_super_ops; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 25) ++ iroot = iget_locked (sb, 0); ++#else + iroot = iget (sb, 0); ++#endif + if (!iroot) { + err = -ENOMEM; /* XXX */ + LogFunc(("could not get root inode\n")); +@@ -234,6 +238,10 @@ + sf_init_inode (sf_g, iroot, &fsinfo); + SET_INODE_INFO (iroot, sf_i); + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 25) ++ unlock_new_inode(iroot); ++#endif ++ + droot = d_alloc_root (iroot); + if (!droot) { + err = -ENOMEM; /* XXX */ +@@ -296,10 +304,12 @@ + the only thing that is known about inode at this point is its index + hence we can't do anything here, and let lookup/whatever with the + job to properly fill then [inode] */ ++#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 25) + static void + sf_read_inode (struct inode *inode) + { + } ++#endif + + /* vfs is done with [sb] (umount called) call [sf_glob_free] to unmap + the folder and free [sf_g] */ +@@ -337,7 +347,9 @@ + + static struct super_operations sf_super_ops = { + .clear_inode = sf_clear_inode, ++#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 25) + .read_inode = sf_read_inode, ++#endif + .put_super = sf_put_super, + .statfs = sf_statfs, + .remount_fs = sf_remount_fs +Index: src/VBox/Additions/linux/sharedfolders/dirops.c +=================================================================== +--- src/VBox/Additions/linux/sharedfolders/dirops.c (revision 7549) ++++ src/VBox/Additions/linux/sharedfolders/dirops.c (revision 7550) +@@ -291,7 +291,11 @@ + } + + ino = iunique (parent->i_sb, 1); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 25) ++ inode = iget_locked (parent->i_sb, ino); ++#else + inode = iget (parent->i_sb, ino); ++#endif + if (!inode) { + LogFunc(("iget failed\n")); + err = -ENOMEM; /* XXX: ??? */ +@@ -301,6 +305,10 @@ + SET_INODE_INFO (inode, sf_new_i); + sf_init_inode (sf_g, inode, &fsinfo); + sf_new_i->path = path; ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 25) ++ unlock_new_inode(inode); ++#endif + } + + sf_i->force_restat = 0; +@@ -342,7 +350,11 @@ + } + + ino = iunique (parent->i_sb, 1); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 25) ++ inode = iget_locked (parent->i_sb, ino); ++#else + inode = iget (parent->i_sb, ino); ++#endif + if (!inode) { + LogFunc(("iget failed. caller=%s\n", caller)); + err = -ENOMEM; +@@ -358,6 +370,11 @@ + sf_new_i->force_restat = 1; + + d_instantiate (dentry, inode); ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 25) ++ unlock_new_inode(inode); ++#endif ++ + return 0; + + fail1: _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
