From: Massimiliano Marretta <max@marretta.com>
To: buildroot@busybox.net
Subject: [Buildroot] patch for hal
Date: Sun, 15 Aug 2010 19:01:12 +0200 [thread overview]
Message-ID: <4C681D58.7090501@marretta.com> (raw)
To resolve the hal build problem:
/bits/fcntl2.h: In function 'lock_hal_mtab':
/srv/source/i686-generic-linux-gnu/lib/gcc/i686-generic-linux-gnu/4.4.3/../../../../i686-generic-linux-gnu/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
I create this pacth:
diff -crBN hal-0.5.8_old/tools/hal-storage-shared.c
hal-0.5.8/tools/hal-storage-shared.c
*** hal-0.5.8_old/tools/hal-storage-shared.c Mon Sep 11 23:56:40 2006
--- hal-0.5.8/tools/hal-storage-shared.c Sun Aug 15 16:26:42 2010
***************
*** 560,566 ****
printf ("%d: XYA attempting to get lock on
/media/.hal-mtab-lock\n", getpid ());
! lock_mtab_fd = open ("/media/.hal-mtab-lock", O_CREAT | O_RDWR);
if (lock_mtab_fd < 0)
return FALSE;
--- 560,566 ----
printf ("%d: XYA attempting to get lock on
/media/.hal-mtab-lock\n", getpid ());
! lock_mtab_fd = open ("/media/.hal-mtab-lock", O_CREAT | O_RDWR, 600);
if (lock_mtab_fd < 0)
return FALSE;
<cid:part1.08070505.01090808@marretta.com>
--
Massimiliano Marretta
Via Zuccola 11
41015 Nonantola (Mo) - Italy
tel: +39 347 5340305
skype: mmarretta
/mailto:max at marretta.com/
/web:www.marretta.com/ <http://www.marretta.com>
reply other threads:[~2010-08-15 17:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C681D58.7090501@marretta.com \
--to=max@marretta.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox