Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29013 - XFS patch to openmosix-sources 2.4.22
Summary: XFS patch to openmosix-sources 2.4.22
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Cluster Team
URL: http://www.jrtad.com/~kyron/gentoo/op...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-09-17 15:45 UTC by Eric Thibodeau
Modified: 2010-09-10 18:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
openmosix-sources-2.4.22-r1.ebuild (openmosix-sources-2.4.22-r1.ebuild,1.39 KB, application/octet-stream)
2003-10-19 02:47 UTC, Michael Imhof (RETIRED)
Details
The ebuild i'm currently using. (openmosix-sources-2.4.22-r1.ebuild,1.39 KB, application/octet-stream)
2003-10-20 11:53 UTC, Michael Imhof (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Thibodeau 2003-09-17 15:45:36 UTC
Here is a patch to apply dirrectly to the openmosix-sources 2.4.22 for XFS 
filesystem capabilities. 
 
Patch was made with the help of cat_sgi (on #XFS, freenodes.net) from SGI.
Comment 1 Eric Thibodeau 2003-09-17 15:53:53 UTC
Added link to the patch (see URL). 
Comment 2 Michael Imhof (RETIRED) gentoo-dev 2003-10-17 16:47:12 UTC
I'd suggest using the XFS USE-var.
If set apply the patch, if not leave it out.
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2003-10-17 16:50:15 UTC
ERRRRMMM: Forbidden
You don't have permission to access /~kyron/gentoo/openmosix-xfs-2.4.22-patch.tbz2
on this server.

I can browse into .../gentoo but can't download the patch.

Please correct that!
Comment 4 Eric Thibodeau 2003-10-17 18:54:47 UTC
hrm...sorry about that, link is now accessible. 

The XFS USE variable has proven to be useless up to date on my system for
any kernels I have tried (unfortunately), the option still didn't appear
in the config menus and xfs was plainly not present.
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2003-10-19 02:46:04 UTC
The next patch would delete the file include/linux/version.h,
which does not exist!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored

It does not apply against vanilla, nor an openmosix-2.4.22-1 patched vanilla.
Can you correct this?
Comment 6 Michael Imhof (RETIRED) gentoo-dev 2003-10-19 02:47:48 UTC
Created attachment 19449 [details]
openmosix-sources-2.4.22-r1.ebuild

Here's the ebuild i wrote.
I assume your patch is against an vanilla kernel already patched with the
openmosix-patch.
Comment 7 Eric Thibodeau 2003-10-19 07:52:43 UTC
1- my oops, the patch was tarred, I put another one on my site but only bzipped
this time (URL changed to reflect this)

2- I am abl to apply the patch dirrectly to the openmosix-sources (2.4.22)
with the following sequence:

emerge openmosix-sources
cd /usr/src
wget http://www.jrtad.com/~kyron/gentoo/openmosix-xfs-2.4.22-patch.bz2
cd linux-2.4.22-openmosix
bzcat2 ../openmosix-xfs-2.4.22-patch.bz2| patch -p1 -E

And voil
Comment 8 Eric Thibodeau 2003-10-19 07:52:43 UTC
1- my oops, the patch was tarred, I put another one on my site but only bzipped
this time (URL changed to reflect this)

2- I am abl to apply the patch dirrectly to the openmosix-sources (2.4.22)
with the following sequence:

emerge openmosix-sources
cd /usr/src
wget http://www.jrtad.com/~kyron/gentoo/openmosix-xfs-2.4.22-patch.bz2
cd linux-2.4.22-openmosix
bzcat2 ../openmosix-xfs-2.4.22-patch.bz2| patch -p1 -E

And voilà! Don't hesitate to contact me if you still have issues with the
patch.
Comment 9 Eric Thibodeau 2003-10-19 07:55:54 UTC
Okay, we had a mid-air collision on that one. You will want to change the
ebuild to use the bzipped file and not the tbz2 file...patching will most
probably fail otherwise.
Comment 10 Michael Imhof (RETIRED) gentoo-dev 2003-10-19 16:00:35 UTC
Sorry again, but i can't download the corrected version...


Not Found
The requested URL /~kyron/gentoo/openmosix-xfs-2.4.22-patch.bz2 was not found
on this server.
Comment 11 Eric Thibodeau 2003-10-20 09:11:24 UTC
Sorry about that, forgot to grant the correct permissions again. The link
should now be accessible.
Comment 12 Michael Imhof (RETIRED) gentoo-dev 2003-10-20 11:51:08 UTC
patching file include/linux/sysctl.h
The next patch would delete the file include/linux/version.h,
which does not exist!  Assuming -R.

Sorry, but i'm still getting that error...
Comment 13 Michael Imhof (RETIRED) gentoo-dev 2003-10-20 11:53:43 UTC
Created attachment 19542 [details]
The ebuild i'm currently using.

It looks like i'm getting the error described above every time i try...
Sounds very unlikely you don't get it.

Please try to use this ebuild for your testing.
Or tell me how the sources you are patching differ from the ones emerged
by
openmosix-sources-2.4.22.ebuild
Comment 14 Stefan Knoblich (RETIRED) gentoo-dev 2003-10-20 12:50:42 UTC
please use a clean kernel source when creating patches,
because the kernel_universal_unpack funktion changes some files during
installation after patches have been applied (which is why your patch is
failing ...)

so either disable kernel_universal_unpack in the ebuild for development purposes
or use a clean source base (grabbing the vanilla sources and applying the
necessary patches)

and please use "diff -Naur" when creating the final patch
Comment 15 Eric Thibodeau 2003-10-31 05:54:58 UTC
Garh! Had i known I wouldn't have gone throught the trouble of creating the
patch to lay over the openmosix patched kernel.

If vanilla patches are all that are required, they can very simply be acquired
from: ftp://xfs.org/mirror/SGI/patches/2.4.22

The recommended patches to get XFS functionnality are:
xfs-2.4.22-split-kernel.bz2
xfs-2.4.22-split-only.bz2

If any of this isn't clear, don't hesitate to say so!

XFS homepage (as a ref) http://oss.sgi.com/projects/xfs/index.html
Comment 16 Michael Imhof (RETIRED) gentoo-dev 2003-10-31 06:21:59 UTC
If it would be that easy to patch vanilla with openmosix and xfs we would
already have an ebuild.

The problem is the following:

unpack vanilla to a directory
apply the openmosix patch
apply the xfs-patches

as they are not applied against plain vanilla some hunks from the xfs patches
will fail (the files modieifed by the openmosix patch)

all you have to do is the following:
go through each of the failed hunks, look into the xfs patch and into the
file that would be modified by the hunk. correct the xfs patch until no hunks
will fail.
once this is done make sure that openmosix and xfs in that patched kernel
work as expected. therfore you have to copy the patched kernel into a new
location and configure/compile it.

once the functionality is verfied do an diff -Naur between vanilla patched
with openmosix and the (not configured) kernel patched with openmosix and
xfs.

this will result in an xfs patch that can be applied to an kernel already
patched with openmosix.

I hope this clarifies the situation a bit.
Comment 17 Michael Imhof (RETIRED) gentoo-dev 2003-12-04 16:33:50 UTC
Closing as i got no response.