ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] dbus cross compilation


From: Stuart Hughes
Subject: Re: [Ltib] dbus cross compilation
Date: Wed, 06 May 2009 11:44:18 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Tarek,

I've attached a patch of the changes I committed yesterday. Hopefully you can figure out dbus-glib from there.

Regards, Stuart

tarek allaoua wrote:
Hi Stuart,
Thank you for the answers and for your efforts.
I'm behind a heavy proxy and can't use cvs version, also, a very low speed internet connexion :/ Could you please send me a tarball about your modifications ? i'm really stuck with dbus-glib witch i dont know how still using gcc instead of the crosscompiler, and still trying to link with host libdbus ...

Thank you in advance.


2009/5/5 Stuart Hughes <address@hidden <mailto:address@hidden>>

    Hi Tarek,

    The solution I posted earlier and committed to Savannah CVS should
    resolve these issue for you.  Remember you'll need to do:
    $ rm -f rpm/BUILD/dbus*
    after updating from Savannah CVS (make sure to back this up if you
    have pending changes you want to keep).


    Regards, Stuart

    tarek allaoua wrote:

        Hi Stuart,
        Thank you for the answer.
        I ended by removing all test related code in configure script
        directely, it builds and it works perfectely, i was looking for
        an elegant way (dbus people to cross compile and fix errors
        manually until it build ...).
        Regarding dbus-glib i have more problems. it always try to link
        with my /usr/lib/libdbus.so rather then the libraries presend in
        my rootfs. I have tried most available versions of it without
        success right now.

        I will submit anything related to dbus and hopefully dbus-glib
        (if isucceed with this one..)

        2009/5/5 Stuart Hughes <address@hidden <mailto:address@hidden>
        <mailto:address@hidden <mailto:address@hidden>>>


           Hi Tarek,

           I've committed the attached SPEC file to Savannah CVS (and also
           updated packages.lkc).  In this case I pre-set the configure
        option
           to avoid the  cross-compilation intermediate executable test
        you ran
           into.

           So far as dbus-glib goes, hopefully you'll be able to figure that
           out by looking at dbus.  If you do, please submit a patch back.

           Regards, Stuart

           tarek allaoua wrote:

               Hello,

               I have asked this question previously and i'm still stuck.  I
               need both dbus and dbus-glib. For the moment i'm using the
               attached dbus.spec file.
               The problem is more like configure issue then ltib
        itself. The
               error is :

               //===========================
               checking abstract socket namespace... configure: error: in
`/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD/dbus-1.2.6':
               configure: error: cannot run test program while cross
        compiling
               See `config.log' for more details.
               error: Bad exit status from
/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/tmp/rpm-tmp.44291
               (%build)
               //===========================

               The configure script has this section:

               //===========================
               #### Abstract sockets

               ac_ext=c
               ac_cpp='$CPP $CPPFLAGS'
               ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
               ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS
               conftest.$ac_ext $LIBS >&5'
               ac_compiler_gnu=$ac_cv_c_compiler_gnu

               { $as_echo "$as_me:$LINENO:
               " >&5
               $as_echo_n "checking abstract socket namespace... " >&6; }
               if test "${ac_cv_have_abstract_sockets+set}" = set; then
                $as_echo_n "(cached) " >&6
               else
                if test "$cross_compiling" = yes; then
                { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
               $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
               { { $as_echo "$as_me:$LINENO: error: cannot run test program
               while cross compiling
               See \`config.log' for more details." >&5
               $as_echo "$as_me: error: cannot run test program while cross
               compiling
               See \`config.log' for more details." >&2;}
                 { (exit 1); exit 1; }; }; }
               else
                cat >conftest.$ac_ext <<_ACEOF
               /* confdefs.h.  */
               _ACEOF
               cat confdefs.h >>conftest.$ac_ext
               cat >>conftest.$ac_ext <<_ACEOF
               /* end confdefs.h.  */

               //===========================

               As you can see the build is aborted while testing Abstract
               sockets during crosscompilation. I would like to know (for
               people who played with dbus) what cha,ges to be done to avoid
               this tests. I haven't seen any AC_TRY_RUN.

               ltib version:
                App version  = 8.1.2
                CVS version  = 1.421.4.1

               Thank you in advance.

               Tarek.


------------------------------------------------------------------------

               _______________________________________________
               LTIB home page: http://bitshrine.org

               Ltib mailing list
               address@hidden <mailto:address@hidden>
        <mailto:address@hidden <mailto:address@hidden>>

               http://lists.nongnu.org/mailman/listinfo/ltib



Index: config/userspace/packages.lkc
===================================================================
RCS file: /sources/ltib/ltib/config/userspace/packages.lkc,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -u -r1.19 -r1.20
--- config/userspace/packages.lkc       18 Mar 2009 18:20:18 -0000      1.19
+++ config/userspace/packages.lkc       5 May 2009 09:43:12 -0000       1.20
@@ -384,6 +384,19 @@
       into the target and to start apptrk manually.  Path to executable
       must be fully qualified, ie.- daemon /usr/bin/apptrk :1000
 
+config PKG_DBUS
+    depends CAP_HAS_MMU
+    select PKG_EXPAT
+    bool "dbus"
+    help
+      D-Bus is a simple system for interprocess communication and coordination.
+      The "and coordination" part is important; 
+      D-Bus provides a bus daemon that does things like:
+          - notify applications when other apps exit
+          - start services on demand
+          - support single-instance applications
+      See http://www.freedesktop.org/software/dbus/ for documentation,
+
 config PKG_DEVMEM2
     depends CAP_HAS_MMU
     bool "devmem2"
Index: dist/lfs-5.1/dbus/dbus.spec
===================================================================
RCS file: dist/lfs-5.1/dbus/dbus.spec
diff -N dist/lfs-5.1/dbus/dbus.spec
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ dist/lfs-5.1/dbus/dbus.spec 5 May 2009 09:43:12 -0000       1.1
@@ -0,0 +1,44 @@
+%define pfx /opt/freescale/rootfs/%{_target_cpu}
+
+Summary         : Message bus system for applications to talk to one another
+Name            : dbus
+Version         : 1.2.6
+Release         : 1
+License         : AFLv2.1 or GPLv2
+Vendor          : Free Desktop
+Packager        : Thierry Pierret/Stuart Hughes/Tarek Allaoua
+Group           : Development/Libraries
+URL             : http://dbus.freedesktop.org
+Source          : %{name}-%{version}.tar.gz
+BuildRoot       : %{_tmppath}/%{name}
+Prefix          : %{pfx}
+
+%Description
+%{summary}
+
+%Prep
+%setup 
+
+%Build
+# Note --with-xml could also specify libxml
+config_opts='ac_cv_have_abstract_sockets=yes'
+extra_opts='--with-xml=expat --without-x --enable-tests=no --enable-selinux=no'
+
+eval $config_opts \
+./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
+            $extra_opts
+
+# Avoid libtool searching in /usr/lib
+perl -pi -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec=,' libtool
+make
+
+%Install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
+
+%Clean
+rm -rf $RPM_BUILD_ROOT
+
+%Files
+%defattr(-,root,root)
+%{pfx}/*

reply via email to

[Prev in Thread] Current Thread [Next in Thread]