Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] squashfs3: fix build with uClibc
Date: Thu, 15 Mar 2012 21:48:50 +0100	[thread overview]
Message-ID: <87aa3hsi8d.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1331828147-23010-1-git-send-email-markos.chandras@imgtec.com> (Markos Chandras's message of "Thu, 15 Mar 2012 16:15:47 +0000")

>>>>> "Markos" == Markos Chandras <markos.chandras@imgtec.com> writes:

 Markos> The squashfs3 package uses the old get_nprocs() GNU extension
 Markos> which does not exist in uClibc. This has already been fixed in
 Markos> newer squashfs releases (>=4.0).  The patch is similar to the
 Markos> one committed in dfa2a513e1aa7f6ec47f630c5d31d98cd098f408

Committed, thanks.

 Markos> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
 Markos> ---
 Markos>  package/squashfs3/squashfs3-3.4-get_nprocs.patch |   26 ++++++++++++++++++++++
 Markos>  1 files changed, 26 insertions(+), 0 deletions(-)
 Markos>  create mode 100644 package/squashfs3/squashfs3-3.4-get_nprocs.patch

 Markos> diff --git a/package/squashfs3/squashfs3-3.4-get_nprocs.patch b/package/squashfs3/squashfs3-3.4-get_nprocs.patch
 Markos> new file mode 100644
 Markos> index 0000000..e6901de

For the future, don't forget to add a git-style description of the patch
with your signed-off-by. This time I copied (most of) you commit message
over.

 Markos> --- /dev/null
 Markos> +++ b/package/squashfs3/squashfs3-3.4-get_nprocs.patch
 Markos> @@ -0,0 +1,26 @@
 Markos> +Index: squashfs3-3.4/squashfs-tools/mksquashfs.c
 Markos> +===================================================================
 Markos> +--- squashfs3-3.4.orig/squashfs-tools/mksquashfs.c
 Markos> ++++ squashfs3-3.4/squashfs-tools/mksquashfs.c
 Markos> +@@ -3178,7 +3178,7 @@ void initialise_threads()
 Markos> + 			processors = 1;
 Markos> + 		}
 Markos> + #else
 Markos> +-		processors = get_nprocs();
 Markos> ++		processors = sysconf(_SC_NPROCESSORS_CONF);
 Markos> + #endif
 Markos> + 	}
 Markos> + 

-- 
Bye, Peter Korsgaard

      reply	other threads:[~2012-03-15 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 16:15 [Buildroot] [PATCH] squashfs3: fix build with uClibc Markos Chandras
2012-03-15 20:48 ` Peter Korsgaard [this message]

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=87aa3hsi8d.fsf@macbook.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