Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170848 - splashutils fixes for baselayout-2
Summary: splashutils fixes for baselayout-2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 10:44 UTC by Roy Marples (RETIRED)
Modified: 2007-04-07 10:11 UTC (History)
0 users

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


Attachments
Patch to current init script (splash.patch,2.55 KB, patch)
2007-03-14 10:45 UTC, Roy Marples (RETIRED)
Details | Diff
splash C plugin (splash.c,2.42 KB, text/plain)
2007-03-14 10:47 UTC, Roy Marples (RETIRED)
Details
splash C plugin (splash.c,3.24 KB, text/plain)
2007-03-15 16:05 UTC, Roy Marples (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2007-03-14 10:44:51 UTC
baselayout-2 (not yet in portage) is now in C and works with non bash shells.
/sbin/splash-functions.sh is no longer sourced by /etc/init.d/functions.sh
Instead, the splash functions will be handled by a plugin.

I will attach a new init script that works with baselayout-1 and baselayout-2.
I will also attach sample C code to make a plugin for baselayout-2. Obviously you cannot build this unless rc.h exists in /usr/include

Of course, the ideal would be to scrap splash-functions.sh and move it entirely to the C plugin :)
But that is for the future.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-03-14 10:45:34 UTC
Created attachment 113246 [details, diff]
Patch to current init script
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-03-14 10:47:17 UTC
Created attachment 113248 [details]
splash C plugin

Sample Makefile entry to build it

splash: CFLAGS += -fPIC
splash: splash.o
        $(CC) -fPIC -shared -Wl,-soname,splash.so -o splash.so splash.o

splash.so should be installed to /lib/rcscripts/plugins
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-03-15 16:05:25 UTC
Created attachment 113371 [details]
splash C plugin

We need to inform localmount not to unmount the splash cache dir.
If LIB is not defined we default to lib.
Comment 4 Michal Januszewski (RETIRED) gentoo-dev 2007-04-07 10:11:01 UTC
Big thanks for the sample splash plugin.

Closing the bug since splashutils-1.4 comes with a pure C baselayout-2 plugin.