linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs-progs: compile with musl libc
@ 2018-02-13 13:25 Dan Robertson
  2018-02-13 15:13 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Robertson @ 2018-02-13 13:25 UTC (permalink / raw)
  To: linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 165 bytes --]

Ensure that limits.h is included in mkfs/main.c as PATH_MAX is used. The lack
of this currently causes btrfs-progs to fail to compile when the systems libc
is musl.

[-- Attachment #1.2: 0001-btrfs-progs-compile-with-musl-libc.patch --]
[-- Type: text/x-diff, Size: 742 bytes --]

From 7859e0d01778e844ae0fcbefe55581277ce7cab3 Mon Sep 17 00:00:00 2001
From: Dan Robertson <danlrobertson89@gmail.com>
Date: Tue, 13 Feb 2018 13:04:29 +0000
Subject: [PATCH] btrfs-progs: compile with musl libc

Ensure that limits.h is included in mkfs/main.c as PATH_MAX is used.

Signed-off-by: Dan Robertson <danlrobertson89@gmail.com>
---
 mkfs/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mkfs/main.c b/mkfs/main.c
index ea65c6d8..f44520aa 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -27,6 +27,7 @@
 /* #include <sys/dir.h> included via androidcompat.h */
 #include <fcntl.h>
 #include <unistd.h>
+#include <limits.h>
 #include <getopt.h>
 #include <uuid/uuid.h>
 #include <ctype.h>
-- 
2.16.1


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: btrfs-progs: compile with musl libc
  2018-02-13 13:25 btrfs-progs: compile with musl libc Dan Robertson
@ 2018-02-13 15:13 ` David Sterba
  2018-02-13 15:19   ` Dan Robertson
  0 siblings, 1 reply; 3+ messages in thread
From: David Sterba @ 2018-02-13 15:13 UTC (permalink / raw)
  To: Dan Robertson; +Cc: linux-btrfs

On Tue, Feb 13, 2018 at 01:25:10PM +0000, Dan Robertson wrote:
> Ensure that limits.h is included in mkfs/main.c as PATH_MAX is used. The lack
> of this currently causes btrfs-progs to fail to compile when the systems libc
> is musl.

> From 7859e0d01778e844ae0fcbefe55581277ce7cab3 Mon Sep 17 00:00:00 2001
> From: Dan Robertson <danlrobertson89@gmail.com>
> Date: Tue, 13 Feb 2018 13:04:29 +0000
> Subject: [PATCH] btrfs-progs: compile with musl libc
> 
> Ensure that limits.h is included in mkfs/main.c as PATH_MAX is used.
> 
> Signed-off-by: Dan Robertson <danlrobertson89@gmail.com>

Thanks, this has been fixed in
https://github.com/kdave/btrfs-progs/commit/3aa1bbdd89ee9c9c48d260a6192fae08328f1b2f

and the musl build check is now in place so the breakage should not
happen anymore. I'll do a release this week with the fix included.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: btrfs-progs: compile with musl libc
  2018-02-13 15:13 ` David Sterba
@ 2018-02-13 15:19   ` Dan Robertson
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Robertson @ 2018-02-13 15:19 UTC (permalink / raw)
  To: dsterba, linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

> Thanks, this has been fixed in
> https://github.com/kdave/btrfs-progs/commit/3aa1bbdd89ee9c9c48d260a6192fae08328f1b2f

Ah, my bad. Didn't check the dev branch. Thanks for the quick response!

Cheers,

Dan

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-13 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-13 13:25 btrfs-progs: compile with musl libc Dan Robertson
2018-02-13 15:13 ` David Sterba
2018-02-13 15:19   ` Dan Robertson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).