All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 12191] New: cmake BUILDDIR
@ 2019-09-05 17:31 bugzilla at busybox.net
  2019-09-05 18:48 ` [Buildroot] [Bug 12191] " bugzilla at busybox.net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2019-09-05 17:31 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12191

            Bug ID: 12191
           Summary: cmake BUILDDIR
           Product: buildroot
           Version: 2019.02.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: harshavardhan.bokil at gmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

I am building a cmake package that strictly does not allow in source build,
output/build/$(PKG_NAME)-$(PKG_VERSION)/buildroot-build is rejected. Suggest
this change which solves the problem

--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -66,9 +66,9 @@


 ifeq ($$($(3)_SUPPORTS_IN_SOURCE_BUILD),YES)
-$(2)_BUILDDIR                  = $$($(2)_SRCDIR)
-else
-$(2)_BUILDDIR                  = $$($(2)_SRCDIR)/buildroot-build
+$(2)_BUILDDIR                  ?= $$($(2)_SRCDIR)
+else
+$(2)_BUILDDIR                  ?= $$($(2)_SRCDIR)/buildroot-build
 endif

 #

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 12191] cmake BUILDDIR
  2019-09-05 17:31 [Buildroot] [Bug 12191] New: cmake BUILDDIR bugzilla at busybox.net
@ 2019-09-05 18:48 ` bugzilla at busybox.net
  2019-09-05 20:40 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2019-09-05 18:48 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12191

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Could you submit this as a proper patch to the mailing list, with an update to
the Buildroot manual ? Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 12191] cmake BUILDDIR
  2019-09-05 17:31 [Buildroot] [Bug 12191] New: cmake BUILDDIR bugzilla at busybox.net
  2019-09-05 18:48 ` [Buildroot] [Bug 12191] " bugzilla at busybox.net
@ 2019-09-05 20:40 ` bugzilla at busybox.net
  2019-09-06  1:21 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2019-09-05 20:40 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12191

Harsh Bokil <harshavardhan.bokil@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harshavardhan.bokil at gmail.c
                   |                            |om

--- Comment #2 from Harsh Bokil <harshavardhan.bokil@gmail.com> ---
Created attachment 8241
  --> https://bugs.busybox.net/attachment.cgi?id=8241&action=edit
Allow custom _BUILDDIR for cmake packages

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 12191] cmake BUILDDIR
  2019-09-05 17:31 [Buildroot] [Bug 12191] New: cmake BUILDDIR bugzilla at busybox.net
  2019-09-05 18:48 ` [Buildroot] [Bug 12191] " bugzilla at busybox.net
  2019-09-05 20:40 ` bugzilla at busybox.net
@ 2019-09-06  1:21 ` bugzilla at busybox.net
  2019-09-08 15:45 ` bugzilla at busybox.net
  2019-09-08 16:39 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2019-09-06  1:21 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12191

--- Comment #3 from Harsh Bokil <harshavardhan.bokil@gmail.com> ---
(In reply to Thomas Petazzoni from comment #1)
Attached here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 12191] cmake BUILDDIR
  2019-09-05 17:31 [Buildroot] [Bug 12191] New: cmake BUILDDIR bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2019-09-06  1:21 ` bugzilla at busybox.net
@ 2019-09-08 15:45 ` bugzilla at busybox.net
  2019-09-08 16:39 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2019-09-08 15:45 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12191

--- Comment #4 from Arnout Vandecappelle <arnout@mind.be> ---
> --- a/package/pkg-cmake.mk
> +++ b/package/pkg-cmake.mk
> @@ -66,9 +66,9 @@
>  
>  
>  ifeq ($$($(3)_SUPPORTS_IN_SOURCE_BUILD),YES)
> -$(2)_BUILDDIR			= $$($(2)_SRCDIR)
> -else
> -$(2)_BUILDDIR			= $$($(2)_SRCDIR)/buildroot-build
> +$(2)_BUILDDIR			?= $$($(2)_SRCDIR)
> +else
> +$(2)_BUILDDIR			?= $$($(2)_SRCDIR)/buildroot-build
>  endif

I am not at all happy with this approach.

First of all, it becomes unnecessary if/when the separate-source-and-build-dir
series finally gets merged.

Second, the approach taken by pkg-cmake is already kind of awkward IMO;
allowing individual packages to override BUILDDIR makes it worse.

Third, it breaks a couple of things, e.g. <pkg>-dirclean.

Finally, the problem is really with the package itself, there should be no
reason at all to reject output/build/$(PKG_NAME)-$(PKG_VERSION)/buildroot-build
as the build directory. So just patch the package and whatever check it does,
replace it with a check that CMAKE_SOURCE_DIR != CMAKE_BINARY_DIR.

Failing that, I would be more in favour in advancing the
separate-source-and-build-dir approach.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 12191] cmake BUILDDIR
  2019-09-05 17:31 [Buildroot] [Bug 12191] New: cmake BUILDDIR bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2019-09-08 15:45 ` bugzilla at busybox.net
@ 2019-09-08 16:39 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2019-09-08 16:39 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=12191

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #5 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
I agree that fixing the package seems like a much better option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2019-09-08 16:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-05 17:31 [Buildroot] [Bug 12191] New: cmake BUILDDIR bugzilla at busybox.net
2019-09-05 18:48 ` [Buildroot] [Bug 12191] " bugzilla at busybox.net
2019-09-05 20:40 ` bugzilla at busybox.net
2019-09-06  1:21 ` bugzilla at busybox.net
2019-09-08 15:45 ` bugzilla at busybox.net
2019-09-08 16:39 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.