Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit libspe
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 09 Aug 2007 16:06:34 +0200
  • Message-id: <20070809140634.74379678182@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package libspe
checked in at Thu Aug 9 16:06:34 CEST 2007.

--------
--- arch/ppc/libspe/libspe.changes      2007-05-11 10:57:52.000000000 +0200
+++ /mounts/work_src_done/STABLE/libspe/libspe.changes  2007-08-09 11:55:47.195427000 +0200
@@ -1,0 +2,5 @@
+Thu Aug  9 10:21:59 CEST 2007 - sassmann@xxxxxxx
+
+- corrected elfspe boot script to conform with suse boot concept
+
+-------------------------------------------------------------------

New:
----
  libspe.fix-suse-startup.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libspe.spec ++++++
--- /var/tmp/diff_new_pack.y12266/_old  2007-08-09 16:05:45.000000000 +0200
+++ /var/tmp/diff_new_pack.y12266/_new  2007-08-09 16:05:45.000000000 +0200
@@ -11,11 +11,11 @@
 # norootforbuild
 
 Name:           libspe
-License:        GNU Library General Public License v. 2.0 and 2.1 (LGPL)
+License:        LGPL v2 or later
 Group:          Development/Libraries/Cross
 Autoreqprov:    on
 Version:        2.1.0
-Release:        8
+Release:        25
 Summary:        Helper for standalong SPE applications
 URL:            http://www.bsc.es/plantillaH.php?cat_id=253
 PreReq:         %insserv_prereq grep
@@ -28,6 +28,7 @@
 Patch3:         make_speevent_thread-safe.diff
 Patch4:         ps.patch
 Patch5:         binfmt.patch
+Patch6:         libspe.fix-suse-startup.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 ExclusiveArch: ppc ppc64
 
@@ -48,6 +49,7 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 make EXTRA_CFLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} libdir=%{_libdir}
@@ -77,6 +79,8 @@
 %doc libspe-example 
 
 %changelog
+* Thu Aug 09 2007 - sassmann@xxxxxxx
+- corrected elfspe boot script to conform with suse boot concept
 * Fri May 11 2007 - sassmann@xxxxxxx
 - added post-install script to mount spufs filesystem
 - added example program

++++++ elfspe ++++++
--- arch/ppc/libspe/elfspe      2007-05-11 10:57:52.000000000 +0200
+++ /mounts/work_src_done/STABLE/libspe/elfspe  2007-08-09 11:55:47.191434000 +0200
@@ -160,15 +160,27 @@
 
 start() {
        mkdir -p /spu
-       echo -n "Starting elfspe: "
+       echo -n "Starting elfspe "
        sh /usr/bin/elfspe-register
-       return 0
-}      
+       rc_status -v
+       }       
 
 stop() {
-       echo -n "Shutting down elfspe: "
+       echo -n "Shutting down elfspe "
        sh /usr/bin/elfspe-unregister
-       return 0
+       rc_status -v
+}
+
+status() {
+       echo -n "Checking for elfspe "
+       if [ -f /proc/sys/fs/binfmt_misc/spe ] ; then
+               # status running
+               _rc_status=0
+       else
+               # status unused
+               _rc_status=3
+       fi
+       rc_status -v
 }
 
 case "$1" in
@@ -179,6 +191,7 @@
        stop
        ;;
     status)
+       status
        ;;
     restart)
        stop
@@ -190,7 +203,7 @@
        [ -f /var/lock/subsys/elspe ] && restart || :
        ;;
     *)
-       echo "Usage: elfspe {start|stop|status|reload|restart"
+       echo "Usage: elfspe {start|stop|status|restart"
        exit 1
        ;;
 esac

++++++ libspe.fix-suse-startup.patch ++++++
Index: libspe2-2.1.0/elfspe/scripts/elfspe-register
===================================================================
--- libspe2-2.1.0.orig/elfspe/scripts/elfspe-register
+++ libspe2-2.1.0/elfspe/scripts/elfspe-register
@@ -4,7 +4,7 @@ modprobe binfmt_misc
 
 if test -f /proc/sys/fs/binfmt_misc/spe
 then
-  echo "elfspe already registered"
+  echo -n "elfspe already registered"
 else   
   echo ':spe:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x17::@BINDIR@/elfspe:' \
   >/proc/sys/fs/binfmt_misc/register
Index: libspe2-2.1.0/elfspe/scripts/elfspe-unregister
===================================================================
--- libspe2-2.1.0.orig/elfspe/scripts/elfspe-unregister
+++ libspe2-2.1.0/elfspe/scripts/elfspe-unregister
@@ -1,2 +1,4 @@
 #!/bin/sh
+umount /spu
 echo -1 > /proc/sys/fs/binfmt_misc/spe
+exit 0

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages