May be glibc-headers will help you.
On 2010年08月09日 10:25, Wu, Jackie writed:
Hi,

I also encountered problems but different when building dbus:

1. There is an typo in the fd-passing patch: The line 3927 should be "#ifdef" instead of 
"#ifndef". Not sure if it's critical.
+
+#ifdef F_DUPFD_CLOEXEC
+  dbus_bool_t cloexec_done;
+
+  new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3);
+  cloexec_done = new_fd>= 0;
+
+  if (new_fd<  0&&  errno == EINVAL)
+#endif
+    {
+      new_fd = fcntl(fd, F_DUPFD, 3);
+    }
+
+  if (new_fd<  0) {
+
+    dbus_set_error (error, _dbus_error_from_errno (errno),
+                    "Could not duplicate fd %d", fd);
+    return -1;
+  }
+
+#ifndef F_DUPFD_CLOEXEC
+  if (!cloexec_done)
+#endif
+    {
+      _dbus_fd_set_close_on_exec(new_fd);
+    }
+
+  return new_fd;
+}
+
+/**


2. The F_DUPFD_CLOEXEC is not defined on my system.
3. "HAVE_UNIX_FD_PASSING" is not defined since SCM_RIGHTS is not supported. But 
OBS has it supported.

Any package I missed? I did above in meego chroot and have meego-rpm-config 
installed.

Thanks
Jackie

On Monday, August 09, 2010 9:20 AM, golfish writed:
Did you install meego-rpm-config? If not, install it.

On 2010年08月06日 23:13, Leonardo Luiz Padovani da Mata writed:
On Fri, Aug 6, 2010 at 12:12 PM, Arjan van de Ven<[email protected]>
wrote:

On 8/6/2010 7:50 AM, Leonardo Luiz Padovani da Mata wrote:

Hello, I've downloaded the source code of Dbus to rebuild it from:

http://repo.meego.com/MeeGo/releases/1.0/core/repos/source/dbus-1.2.24-
7.1.src.rpm


I need to change the rules of /etc/dbus-1/system.conf to add rule:
<limit name="max_match_rules_per_connection">50000</limit>
this rule is needed to solve a problem with Packagekit.

When i try rpmbuild this package, one of the patches didn't work:
+ /usr/bin/patch -s -p1 -b --suffix .fd-passing --fuzz=0
1 out of 4 hunks FAILED -- saving rejects to file bus/dispatch.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.10nRIv (%prep)


are you building your rpm on meego itself ?


yes, using rpmbuild command.




--
Leonardo Luiz Padovani da Mata

International Syst S/A
Metasys Tecnologia
Software Engineer Metasys Moblin Team

[email protected]
+55-31-3503-9040

"May the force be with you, always"
"Nerd Pride... eu tenho. Voce tem?"
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to