[gobolinux-users] KDE upgrade to 3.5.7 failed because hal 0.5.9 ftbfs

Jonas Karlsson jonka750 at student.liu.se
Tue Sep 4 21:27:34 UTC 2007


On Tue, 04 Sep 2007 23:03:27 +0200, rubisher <rubisher at scarlet.be> wrote:

> rubisher wrote:
> Well I tried the latest 0.5.9.1 src but it din't help more (always same errors) because I discover the projects' git tree:
> <http://www.freedesktop.org/wiki/Software/hal>
> and the build intructions:
> <http://www.freedesktop.org/wiki/Software/HalBuildInstructions> just to grab developement tree and noticed this change
> around previous mentioned errors:
> --- linux_dvd_rw_utils.c.Orig   2007-04-03 16:38:50.000000000 +0000
> +++ linux_dvd_rw_utils.c        2007-09-04 19:57:30.000000000 +0000
> @@ -58,6 +58,14 @@
>
>   #include "linux_dvd_rw_utils.h"
>
> +#if !defined(SG_FLAG_LUN_INHIBIT)
> +# if defined(SG_FLAG_UNUSED_LUN_INHIBIT)
> +#  define SG_FLAG_LUN_INHIBIT SG_FLAG_UNUSED_LUN_INHIBIT
> +# else
> +#  define SG_FLAG_LUN_INHIBIT 0
> +# endif
> +#endif
> +
>   typedef enum {
>          NONE = CGC_DATA_NONE,   // 3
>          READ = CGC_DATA_READ,   // 2
> @@ -149,8 +157,8 @@
>                  errno = EIO;
>                  ret = -1;
>                  if (cmd->sg_io.masked_status & CHECK_CONDITION) {
> -                       CREAM_ON_ERRNO (cmd->sg_io.sbp);
> -                       ret = ERRCODE (cmd->sg_io.sbp);
> +                       CREAM_ON_ERRNO ((unsigned char*)cmd->sg_io.sbp);
> +                       ret = ERRCODE ((unsigned char*)cmd->sg_io.sbp);
>                          if (ret == 0)
>                                  ret = -1;
>                  }
> === <> ===
>
> This finaly help me to Compile successfully HAL ;-)
>
> That said I don't have yet enough knowledge in Recipe to know the better place to put this patch?
>
Make two clean copies of the HAL source tree. Apply the patch to one of the trees. Make a
diff: 'diff -Naur hal-0.5.9.1 hal-0.5.9.1.new > 01-<some_good_descriptive_patch_name>.patch'
and place the patch in the recipe directory. It should apply automatically and if it builds
feel free to send in the recipe.

>
> PS: I also noticed another detail not common to my usual way of work:
> (my favorite way to install open source project being:
> ./configure --prefix=/opt/$productName/$release (e.g. /opt/openssh/4.3-p1))
>
> Here in the recipe there is:
> [snip]
> configure_options=(
> [snip]
>      "--with-dbus-sys=${settings_target}/dbus-1/system.d"
> [snip]
> )
> [snip]
>
> Where I would put (like I would do to configure foobar to look for the libraries of barfoo pkg in another location)
It's not that you point HAL to where DBus has its settings, but you point
at where HAL should install its BDus settings.

DBus looks for its settings in /System/Settings/dbus-1/system-d, where
also the HAL settings will be available after one has symlinked it.

>
>      "--with-dbus-sys=${goboPrograms}/DBus/Settings/dbus-1/system.d"
>
> But this seems to breack some Compile step:
> [snip]
> test -z "/Programs/DBus/Settings/dbus-1/system.d" || /System/Links/Executables/mkdir -p
> "/Programs/DBus/Settings/dbus-1/system.d"
>   /System/Links/Executables/install -c -m 644 'hal.conf' '/Programs/DBus/Settings/dbus-1/system.d/hal.conf'
> real_install: cannot create regular file `/Programs/DBus/Settings/dbus-1/system.d/hal.conf': Permission denied
> make[2]: *** [install-dist_dbusDATA] Error 1
> [snip]

Yes, because you're trying to make the HAL install script to write outside
of the sandbox.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the gobolinux-users mailing list