oaf stable port information

Package: oaf
Version: 0.6.10
Revision: 41
Distribution: 10.4, 10.5
BuildDepends: glib, gnome-libs-dev (>= 1.4.2-29), orbit-dev (>= 0.5.17-15), libxml, gtk-doc (>= 1.8-1), popt, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, gtk+, fink (>= 0.24.12-1)
Depends: %N-shlibs (= %v-%r), libxml-shlibs, libiconv
Source: mirror:gnome:sources/%n/0.6/%n-%v.tar.bz2
Source-MD5: ed9aa2ceb70bba34034b3134b22d2729
PatchFile: %n.patch
PatchFile-MD5: 344f1c3fe53255ecc067ea55abb6ddb4
PatchScript: <<
%{default_script}
perl -pi -e 's/(AC_DEFUN\()(\S+)(,)/\1\[\2]\3/' oaf.m4
<<
SetCPPFLAGS: -DTC_DEF_TC_GNOME_stringlist -DTC_DEF_TC_CORBA_sequence_CORBA_string -DORBIT_DEF_CORBA_sequence_CORBA_string
SetCFLAGS: -Os
NoSetLDFLAGS: true
#SetLIBS: -lintl -lgnorba -L%p/lib
SetLIBS: -lintl -L%p/lib
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --mandir=%p/share/man --enable-gtk-doc
CompileScript: <<
PERL_PATH=/usr/bin/perl ./configure %c
make LIBS="-lintl -lgnorba -L%p/lib" -C liboaf oaf-factory-common.lo
echo _GNOME_stringlist__alloc >symbol_list
echo _GNOME_stringlist__free >>symbol_list
nmedit -R symbol_list liboaf/oaf-factory-common.lo
sleep 3
touch liboaf/oaf-factory-common.lo
make LIBS="-lintl -lgnorba -lpopt -L%p/lib"
<<
InstallScript: make install DESTDIR=%d
Conffiles: %p/etc/oaf/oaf-config.xml
SplitOff: <<
Package: %N-shlibs
Depends: glib-shlibs, gnome-libs (>= 1.4.2-29), gnome-libs-shlibs (>= 1.4.2-29), orbit-shlibs (>= 0.5.17-15), popt-shlibs, libgettext3-shlibs, oaf-shlibs
Replaces: %N (<= 0.6.8-1)
Files: lib/liboaf.*.dylib
Shlibs: %p/lib/liboaf.0.dylib 1.0.0 %n (>= 0.6.10-12)
DocFiles: AUTHORS COPYING* ChangeLog NEWS README TODO
<<
SplitOff2: <<
Package: %N-dev
BuildDependsOnly: True
Depends: %N-shlibs (= %v-%r)
Replaces: %N (<< 0.6.10-25)
Files: bin/oaf-config include lib/liboaf.* lib/*.sh share/aclocal share/idl
DocFiles: AUTHORS COPYING* ChangeLog NEWS README TODO
<<
DocFiles: AUTHORS COPYING* ChangeLog NEWS README TODO
Description: Object Activation Framework
DescDetail: OAF is a replacement for the object activation code in ORBit.
DescPort: <<
Gnome 1.4 has two object activation libraries, gnorba and oaf. gnorba will
be expired in Gnome 2.0, but both of them are used in Gnome 1.4.

They have several of the same symbols in their libraries. When a program or
library attempt to link them at once, it causes linker a multiple
defined symbol error.

To avoid that, uses preprocessor flags and nmedit to remove conflicting
symbols and links to gnorba beforehand.

-flat_namespace flag was added with the patch and it enables compiling
under Mac OS X 10.1.

oaf-slay.in is patched. This is a workaround of 'ps -U' bug. (Darwin
bug #2690042)

oafd/ac-query-parse.y is patched because bison 1.29 dislikes
YYSTACK_USE_ALLOCA defined to empty string.

On dual processor machines, oaf-factory-common.lo is younger than
oaf-factory-common.c. (why?!) Sleep and touch it after nmedit to
prevent such a situation. (is this fixed by forcing MAKEFLAGS=-j1?)

No idea why libtool looks for libgtk.la during linking of liboaf.la
since libgtk is not in dependency_libs of any given -l flag nor does
it actually get linked, but it without it the build crashes.
<<
License: GPL/LGPL
Maintainer: None
DescPackaging: <<
Originally packaged by Masanori Sekino.
<<
Homepage: http://www.gnome.org/

oaf stable port .patch

diff -Naur oaf-0.6.10.old/configure oaf-0.6.10.new/configure
--- oaf-0.6.10.old/configure Tue Apr 16 19:27:55 2002
+++ oaf-0.6.10.new/configure Tue Jun 4 22:35:25 2002
@@ -4374,11 +4374,11 @@
;;

darwin* | rhapsody*)
- allow_undefined_flag='-undefined suppress'
+ allow_undefined_flag='-flat_namespace -undefined suppress'
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
- archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
+ archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $tmp_verstring'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct=yes
diff -Naur oaf-0.6.10.old/ltmain.sh oaf-0.6.10.new/ltmain.sh
--- oaf-0.6.10.old/ltmain.sh Tue Apr 16 19:27:41 2002
+++ oaf-0.6.10.new/ltmain.sh Tue Jun 4 22:58:40 2002
@@ -2888,6 +2888,11 @@
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
eval cmds=\"$archive_expsym_cmds\"
else
+ if test "x$verstring" = "x0.0"; then
+ tmp_verstring=
+ else
+ tmp_verstring="$verstring"
+ fi
eval cmds=\"$archive_cmds\"
fi
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
diff -Naur oaf-0.6.10.old/oaf-config.in oaf-0.6.10.new/oaf-config.in
--- oaf-0.6.10.old/oaf-config.in Mon Apr 15 19:37:09 2002
+++ oaf-0.6.10.new/oaf-config.in Mon May 6 13:14:28 2002
@@ -83,7 +83,7 @@
shift
done

-the_libs="$the_libs -L$libdir -loaf `@ORBIT_CONFIG@ --use-service=name --libs server`"
+the_libs="$the_libs -L$libdir -loaf -lgnorba `@ORBIT_CONFIG@ --use-service=name --libs server`"

if test $includedir != /usr/include ; then
the_flags="$the_flags -I$includedir `@ORBIT_CONFIG@ --cflags server`"
diff -Naur oaf-0.6.10.old/test/oaf-slay.in oaf-0.6.10.new/test/oaf-slay.in
--- oaf-0.6.10.old/test/oaf-slay.in Thu Jan 17 00:10:35 2002
+++ oaf-0.6.10.new/test/oaf-slay.in Mon May 6 13:15:09 2002
@@ -46,8 +46,8 @@
$username = $ENV{USER} || $ENV{LOGNAME} || `logname`;
chomp($username);

-@IF_POSIX_PS@ $ps_cmd = "@PS_PATH@ -U $username -opid,args";
-@IF_BSD_PS@ $ps_cmd = "@PS_PATH@ -U $username -xww -opid,command";
+@IF_POSIX_PS@ $ps_cmd = "@PS_PATH@ -U$username -opid,args";
+@IF_BSD_PS@ $ps_cmd = "@PS_PATH@ -U$username -xww -opid,command";

# get OAF files
#

oaf _unstable_ port .patch