Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4 of 4] alsa-utils: fix build on no-mmu targets
Date: Tue, 18 Feb 2014 12:40:57 +0100	[thread overview]
Message-ID: <8761ocwsvq.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <fba13b278df3df6a3fc7.1392224144@argentina> (Thomas De Schampheleire's message of "Wed, 12 Feb 2014 17:55:44 +0100")

>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin@gmail.com> writes:

 > alsa-utils uses fork, which doesn't work on targets without mmu, such as
 > Blackfin. Apply a patch by the Blackfin developers to fix this.

 > Fixes
 > http://autobuild.buildroot.org/results/9f8/9f8e572c9f1c677155cc7d1828371bcf572ff878

 > Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

What is the upstream status of this?

 > ---
 >  package/alsa-utils/alsa-utils-0001-no-mmu.patch |  61 ++++++++++++++++++++
 >  package/alsa-utils/alsa-utils.mk                |   1 +
 >  2 files changed, 62 insertions(+), 0 deletions(-)

 > diff --git a/package/alsa-utils/alsa-utils-0001-no-mmu.patch b/package/alsa-utils/alsa-utils-0001-no-mmu.patch
 > new file mode 100644
 > --- /dev/null
 > +++ b/package/alsa-utils/alsa-utils-0001-no-mmu.patch
 > @@ -0,0 +1,61 @@
 > +Signed-off-by: Aaron Wu <Aaron.wu@analog.com>
 > +
 > +Add no-mmu support for alsa-utils mainly for Blackfin
 > +---
 > + alsactl/init_utils_run.c |    4 ++++
 > + alsaloop/alsaloop.c      |    8 ++++++++
 > + configure.in             |    1 +
 > + 3 files changed, 13 insertions(+)
 > +
 > +diff --git a/alsactl/init_utils_run.c b/alsactl/init_utils_run.c
 > +--- a/alsactl/init_utils_run.c
 > ++++ b/alsactl/init_utils_run.c
 > +@@ -89,7 +89,11 @@ int run_program0(struct space *space,
 > + 		argv[0] = program;
 > + 	}
 > + 
 > ++	#ifdef HAVE_FORK
 > + 	pid = fork();
 > ++	#else
 > ++	pid = vfork();
 > ++	#endif

I would be a lot happier with a patch simply doing s/fork/vfork/. If
vfork is safe to use, we might as well use it everywhere - And if not,
we shouldn't do it on nommu either.


 > + 	switch(pid) {
 > + 	case 0:
 > + 		/* child closes parent ends of pipes */

I'm far from a vfork expert, but as parent and child shares stack, how
does it work with both calling close() on the pipes?

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2014-02-18 11:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 16:55 [Buildroot] [PATCH 0 of 4] alsa-lib/alsa-utils autobuild fixes Thomas De Schampheleire
2014-02-12 16:55 ` [Buildroot] [PATCH 1 of 4] alsa-lib: add sequence number to existing patches Thomas De Schampheleire
2014-02-12 16:55 ` [Buildroot] [PATCH 2 of 4] alsa-lib: add a fake dlfcn.h header if dynamic load is not supported Thomas De Schampheleire
2014-02-18 11:28   ` Peter Korsgaard
2014-02-18 13:14     ` Thomas De Schampheleire
2014-02-18 14:14       ` Peter Korsgaard
2014-02-18 14:19         ` Thomas De Schampheleire
2014-02-18 21:11           ` Peter Korsgaard
2014-02-12 16:55 ` [Buildroot] [PATCH 3 of 4] alsa-lib: add patch to remove hardcoded -ldl Thomas De Schampheleire
2014-02-12 16:55 ` [Buildroot] [PATCH 4 of 4] alsa-utils: fix build on no-mmu targets Thomas De Schampheleire
2014-02-18 11:40   ` Peter Korsgaard [this message]
2014-02-18 13:47     ` Thomas De Schampheleire
2014-02-18 15:21       ` Thomas Petazzoni
2014-02-18 21:40       ` Peter Korsgaard
2014-02-17 10:37 ` [Buildroot] [PATCH 0 of 4] alsa-lib/alsa-utils autobuild fixes Thomas De Schampheleire
2014-02-22 18:23 ` Thomas Petazzoni
2014-02-23  8:34   ` Thomas De Schampheleire

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=8761ocwsvq.fsf@dell.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --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