Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] taskd: add patch to fix musl build issue
@ 2016-05-07  7:17 Thomas Petazzoni
  2016-06-15 23:44 ` Ben Boeckel
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-05-07  7:17 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=54aa927a42eba7d0ceacce25f699c6b2ae2479dd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

taskd checks for `get_current_dir_name` but forgets to add a `cmakedefine`
in cmake.h.in, so `HAVE_GET_CURRENT_DIR_NAME` is always undefined.

CMake detects correctly that the musl C library defines `get_current_dir_name`.
However, as `HAVE_GET_CURRENT_DIR_NAME` is not set, the block of code evaluated
cannot be compiled as musl does not define `PATH_MAX`.

Reported upstream:
https://bug.tasktools.org/browse/TD-120

Fixes:
http://autobuild.buildroot.net/results/121/121aa15235e06c80d65428626da5a2da9d11c9ba/

Signed-off-by: J??rg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 ...ing-cmakedefine-HAVE_GET_CURRENT_DIR_NAME.patch | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/package/taskd/0001-Fix-missing-cmakedefine-HAVE_GET_CURRENT_DIR_NAME.patch b/package/taskd/0001-Fix-missing-cmakedefine-HAVE_GET_CURRENT_DIR_NAME.patch
new file mode 100644
index 0000000..960c71b
--- /dev/null
+++ b/package/taskd/0001-Fix-missing-cmakedefine-HAVE_GET_CURRENT_DIR_NAME.patch
@@ -0,0 +1,28 @@
+From b067ab9bf667bb9257bb9eeaa6bf25f9a1a17f06 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
+Date: Fri, 6 May 2016 23:35:42 +0200
+Subject: [PATCH] Fix missing cmakedefine HAVE_GET_CURRENT_DIR_NAME
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: J??rg Krause <joerg.krause@embedded.rocks>
+---
+ cmake.h.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cmake.h.in b/cmake.h.in
+index 4124ce9..0b8f9d0 100644
+--- a/cmake.h.in
++++ b/cmake.h.in
+@@ -51,6 +51,7 @@
+ #cmakedefine HAVE_ST_BIRTHTIME
+ 
+ /* Functions */
++#cmakedefine HAVE_GET_CURRENT_DIR_NAME
+ #cmakedefine HAVE_TIMEGM
+ #cmakedefine HAVE_UUID_UNPARSE_LOWER
+ 
+-- 
+2.8.2
+

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

* [Buildroot] [git commit] taskd: add patch to fix musl build issue
  2016-05-07  7:17 [Buildroot] [git commit] taskd: add patch to fix musl build issue Thomas Petazzoni
@ 2016-06-15 23:44 ` Ben Boeckel
  2016-06-17  1:02   ` Ben Boeckel
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Boeckel @ 2016-06-15 23:44 UTC (permalink / raw)
  To: buildroot

On Sat, 07 May, 2016 at 07:17:00 GMT, Thomas Petazzoni wrote:
> taskd checks for `get_current_dir_name` but forgets to add a `cmakedefine`
> in cmake.h.in, so `HAVE_GET_CURRENT_DIR_NAME` is always undefined.
>
> CMake detects correctly that the musl C library defines `get_current_dir_name`.
> However, as `HAVE_GET_CURRENT_DIR_NAME` is not set, the block of code evaluated
> cannot be compiled as musl does not define `PATH_MAX`.
>
> Reported upstream:
> https://bug.tasktools.org/browse/TD-120

I didn't see the patch on the issue, so I sent it to the development
list:

    https://groups.google.com/forum/#!topic/taskwarrior-dev/bxIftgz-hBI

--Ben

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

* [Buildroot] [git commit] taskd: add patch to fix musl build issue
  2016-06-15 23:44 ` Ben Boeckel
@ 2016-06-17  1:02   ` Ben Boeckel
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Boeckel @ 2016-06-17  1:02 UTC (permalink / raw)
  To: buildroot

On Wed, 15 Jun, 2016 at 23:44:00 GMT, Ben Boeckel wrote:
>     https://groups.google.com/forum/#!topic/taskwarrior-dev/bxIftgz-hBI

Upstream has applied the patch. The next release should be 1.2.0, but I
don't know of a timeline.

--Ben

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

end of thread, other threads:[~2016-06-17  1:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-07  7:17 [Buildroot] [git commit] taskd: add patch to fix musl build issue Thomas Petazzoni
2016-06-15 23:44 ` Ben Boeckel
2016-06-17  1:02   ` Ben Boeckel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox