Your message dated Sun, 4 Jan 2009 21:40:09 +0200
with message-id <[email protected]>
and subject line libosso (2.15.debian.1-2)
has caused the Debian Bug report #508520,
regarding libosso: FTBFS on non-linux systems
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
508520: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508520
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libosso
Severity: important
Tags: patch
Hello,
libosso includes linux/limits.h, and thus of course FTBFS on non-linux
systems. In addition to that, it unconditionnaly uses PATH_MAX, while
that is not defined on systems which don't have such limit. The
attached patch just makes it use POSIX-compliant limits.h instead and
handle systems without a PATH_MAX limitation.
Samuel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
Samuel
>bah moi j'aime bien le flash et je cherche plus a comprendre
>crosoft. Ca plante : je reinstalle
Ca à le mérite de créer des emplois jeunes : "réinstalleur de crosoft"
-+- BD in NPC : Bill Gates au secours de l'emploi -+-
--- src/osso-cp-plugin.c.orig 2008-12-11 23:25:18.000000000 +0000
+++ src/osso-cp-plugin.c 2008-12-11 23:31:54.781172000 +0000
@@ -25,7 +25,7 @@
#include "osso-internal.h"
#include "osso-cp-plugin.h"
#include "osso-log.h"
-#include <linux/limits.h>
+#include <limits.h>
#include <errno.h>
/* hildon-control-panel RPC */
@@ -86,14 +86,20 @@
static void *
try_plugin (osso_context_t *osso, const char *dir, const char *file)
{
- char libname[PATH_MAX];
void *handle = NULL;
+#ifdef PATH_MAX
+ char libname[PATH_MAX];
if (snprintf (libname, PATH_MAX, "%s/%s", dir, file) >= PATH_MAX)
{
ULOG_ERR_F("PATH_MAX exceeded");
return NULL;
}
+#else
+ char libname[strlen(dir) + 1 + strlen(file) + 1];
+
+ sprintf (libname, "%s/%s", dir, file);
+#endif
LOCK_OR_RETURN(osso->mutex, NULL);
--- End Message ---
--- Begin Message ---
Version: 2.15.debian.1-2
libosso (2.15.debian.1-2) unstable; urgency=medium
.
* Depend on dbus-x11, closes #508380
* Add tiny patch to allow building on !linux, closes #508520
- Thanks Samuel Thibault
* Remove system bus configuration, and make libosso use
session bus only (patch from ubuntu)
- closes #510637
--
"rm -rf" only sounds scary if you don't have backups
--- End Message ---