Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8816 - openmosix-user-0.2.4-r1.ebuild fix(es)
Summary: openmosix-user-0.2.4-r1.ebuild fix(es)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-06 14:29 UTC by Tim Hobbs
Modified: 2002-10-17 12:23 UTC (History)
1 user (show)

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


Attachments
openmosix-user-0.2.4-r1.diff (openmosix-user-0.2.4-r1.diff,123 bytes, text/plain)
2002-10-06 14:31 UTC, Tim Hobbs
Details
cleaner fix (openmosix-user-0.2.4-r1.diff,104 bytes, text/plain)
2002-10-06 14:34 UTC, Tim Hobbs
Details
diff to openmosix-user-0.2.4-r3.ebuild (openmosix-user-0.2.4-r3.ebuild.diff,173 bytes, patch)
2002-10-16 10:12 UTC, Tim Hobbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Hobbs 2002-10-06 14:29:32 UTC
The openmosix user tools now include an autodiscovery daemon, but the daemon 
is not compiled with the default Makefile.  Adding the following to the ebuild 
in the unpack section prior to the configuration will compile the 
autodiscovery daemon (omdiscd):

cat Makefile | sed s/DIRS.*=/DIRS=autodiscovery/g > Makefile

Additionally, the /usr/share/include directory needs to be dodir'd.

The attached diff will make both changes.  I've tested this, and it works for 
me.
Comment 1 Tim Hobbs 2002-10-06 14:31:19 UTC
Created attachment 4456 [details]
openmosix-user-0.2.4-r1.diff

Here is the diff.
Comment 2 Tim Hobbs 2002-10-06 14:34:45 UTC
Created attachment 4457 [details]
cleaner fix

oop, this one takes out the recatting of the Makefile.

This should obsolete the first attachment, but alas, I do not have permission
to do so.
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2002-10-10 07:15:14 UTC
Thanks a lot for the diff!

I just released openmosix-user-0.2.4-r2 including this patch.
Please test it and write a bug if anything goes wrong.
Comment 4 Tim Hobbs 2002-10-12 16:58:18 UTC
Works great!  This of course does not do everything needed to use omdiscd, since
omdiscd is still alpha code, but it does build it for testing.

Adding the following to the end of the src_unpack() function enables omdiscd in
non-alpha mode:

cd ${S}/autodicsovery
cat openmosix.c | grep -v "define ALPHA" > openmosix.c.tmp
mv openmosix.c.tmp openmosix.c
cat showmap.c | grep -v "define ALPHA" > showmap.c.tmp
mv showmap.c.tmp showmap.c
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2002-10-13 17:28:43 UTC
Thanks!

Added openmosix-user-0.2.4-r3 which enabled autodiscovery in non-alpha-mode.
Please test and report :-) (works fine here)
Comment 6 Tim Hobbs 2002-10-16 10:12:35 UTC
Created attachment 4747 [details, diff]
diff to openmosix-user-0.2.4-r3.ebuild

Sometimes (I only saw this on the third system I was installing on) the
original line:
cat Makefile | sed s/DIRS.*=/DIRS=autodiscovery/g > Makefile

would result in a Makefile of zero length.
I do not know why, but this works around it...
cat Makefile | sed s/DIRS.*=/DIRS=autodiscovery/g > Makefile.tmp
mv Makefile.tmp Makefile
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2002-10-17 07:53:49 UTC
the solve you are posting is usually used in every ebuild


Comment 8 Michael Imhof (RETIRED) gentoo-dev 2002-10-17 12:23:38 UTC
Fixed that and released openmosix-user-0.2.4-r4.