[oe] patch for acpid-1.0.10, building for i586-generic on x86_64
Paul Menzel
paulepanter at users.sourceforge.net
Sat May 14 23:52:18 UTC 2011
Dear Christian,
thank you for your patch.
Am Samstag, den 14.05.2011, 10:25 -0400 schrieb Christian Betz:
> acpid-1.0.10 fails building due to a compiler warning:
>
> libnetlink.c:521:56: error: comparison between signed and unsigned
> integer expressions
>
> I noticed another user mentioning this issue not too long ago. I can't
> say whether the i586 machine type or x86_64 host is the issue, but the
> fix is easy: just add a missing cast.
>
> Christian
>
> ----
>
> This is a patch to a patch since the entire libnetlink.c file is part
> of the existing netlink.diff patch
>
> --- a/recipes/acpid/acpid-1.0.10/netlink.diff
> +++ b/recipes/acpid/acpid-1.0.10/netlink.diff
> @@ -2019,7 +2019,7 @@ diff -ruN acpid-1.0.10/libnetlink.c
> acpid-1.0.10-netlink2/libnetlink.c
> +
> +int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len)
> +{
> -+ if ((int)NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) {
> ++ if ((int)NLMSG_ALIGN(n->nlmsg_len) + (int)NLMSG_ALIGN(len) > maxlen) {
> + fprintf(stderr, "addraw_l ERROR: message exceeded bound of %d\n",maxlen);
> + return -1;
> + }
Could you please resend the patch adhering to the commit policy, e. g.
your Signed-off-by line is missing, and formatted such away, that we can
use `git am` to apply it. You should use `git format-patch` and for
example `git send-email`.
If you have a little more time, could you figure out if those patches
have been sent upstream and if not send them upstream if needed. That
would be awesome.
Thanks,
Paul
[1] http://openembedded.org/index.php/Commit_Policy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110515/d3d891d9/attachment-0002.sig>
More information about the Openembedded-devel
mailing list