Patch for gnome-core [BSD/OS 4,0. GNOME 0.99.1]



This patch affects two things:
 - BSD/OS doesn't have SA_NODEFER signal handling
 - BSD/OS 4.0 is not supported by libtool yet (I've also attached the
   diffs I sent to the libtool bug list, it would make life really good
   for me if those were applied throughout the GNOME tree :-)

There has been some discussion amongst BSD/OS users about the level of
detail that sonames should use w.r.t. the minor and micro versions of
libraries, but following the example set by FreeBSD 3 allows me to keep my
sanity in tracking GNOME! 

I'd like to chime in in the chorus that sings "good work"! These trivial
fixes were all I needed to get gnome-libs 0.99.1 and gnome-core to build
on BSD/OS 4.0. Oh, and for reference, I built it against glib/gtk+ 1.1.11.
The 1.1.9 release was busted, at least on BSD/OS.

Cheers,

					-- Bert

Bert Driehuis, MIS -- bert_driehuis@nl.compuware.com -- +31-20-3116119
The grand leap of the whale up the Fall of Niagara is esteemed, by all
who have seen it, as one of the finest spectacles in nature.
                -- Benjamin Franklin.
diff -rc2 ref/gnome-core-0.99.1/help-browser/check-running.c gnome-core-0.99.1/help-browser/check-running.c
*** ref/gnome-core-0.99.1/help-browser/check-running.c	Thu Nov 26 15:33:07 1998
--- gnome-core-0.99.1/help-browser/check-running.c	Sun Jan  3 02:32:52 1999
***************
*** 60,64 ****
--- 60,68 ----
    runcmd_callback = callback;
    act.sa_handler = do_cb;
+ #ifdef __bsdi__
+   act.sa_flags = 0;
+ #else
    act.sa_flags = SA_NODEFER;
+ #endif
    sigaction(SIGUSR2, &act, NULL);
  
diff -rc2 ref/gnome-core-0.99.1/ltconfig gnome-core-0.99.1/ltconfig
*** ref/gnome-core-0.99.1/ltconfig	Wed Dec 30 17:59:18 1998
--- gnome-core-0.99.1/ltconfig	Sun Jan  3 02:27:24 1999
***************
*** 824,828 ****
  
    # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
!   freebsd3*)
      archive_cmds='$CC -shared -o $lib$libobjs'
      hardcode_libdir_flag_spec='-R$libdir'
--- 824,828 ----
  
    # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
!   freebsd3*|bsdi4*)
      archive_cmds='$CC -shared -o $lib$libobjs'
      hardcode_libdir_flag_spec='-R$libdir'
***************
*** 1161,1165 ****
    ;;
  
! freebsd2* | freebsd3*)
    version_type=sunos
    library_names_spec='${libname}${release}.so$versuffix $libname.so'
--- 1161,1165 ----
    ;;
  
! freebsd2* | freebsd3*|bsdi4*)
    version_type=sunos
    library_names_spec='${libname}${release}.so$versuffix $libname.so'
*** ref/libtool-1.2/ltconfig.in	Wed Mar 11 17:10:51 1998
--- ltconfig.in	Sun Jan  3 01:32:40 1999
***************
*** 778,782 ****
  
    # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
!   freebsd3*)
      archive_cmds='$CC -shared -o $lib$libobjs'
      hardcode_libdir_flag_spec='-R$libdir'
--- 778,782 ----
  
    # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
!   freebsd3* | bsdi4*)
      archive_cmds='$CC -shared -o $lib$libobjs'
      hardcode_libdir_flag_spec='-R$libdir'
***************
*** 1122,1125 ****
--- 1122,1132 ----
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+   ;;
+ 
+ bsdi4*)
+   version_type=sunos
+   library_names_spec='${libname}${release}.so.$versuffix $libname.so'
+   finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
    ;;
  


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]