All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 14656] New: Adding dependencies from an external tree does not work
Date: Wed, 09 Mar 2022 10:22:59 +0000	[thread overview]
Message-ID: <bug-14656-163@https.bugs.busybox.net/> (raw)

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

            Bug ID: 14656
           Summary: Adding dependencies from an external tree does not
                    work
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: dopsi@dopsi.ch
                CC: buildroot@uclibc.org
  Target Milestone: ---

When a dependency is added by a Makefile in an external tree to a package
present in the Buildroot tree, the dependency does not get built before the
package.

Detailled description:

When having the following in an external tree:

    FOO_DEPENDENCIES += bar

FOO_FINAL_ALL_DEPENDENCIES gets updated and will contain bar (as shown by
running make foo-show-depends) but this will not be reflected in the build
order (as shown in make foo-show-build-order).

In the package/pkg-generic.mk file [1] there is a call to patsubst that will
compute the prerequisites for foo-show-build-order.

When printing the output of pathsubst with

    echo $$(patsubst %,%-show-build-order,$$($(2)_FINAL_ALL_DEPENDENCIES))

the value is properly written out and will contain bar. However, the
prerequisite is not present when printing them out with

    echo $$^

[1] https://git.buildroot.org/buildroot/tree/package/pkg-generic.mk#n996

Links:
- first mailing list post:
https://lists.buildroot.org/pipermail/buildroot/2022-February/637237.html
- second mailing list post:
https://lists.buildroot.org/pipermail/buildroot/2022-March/638117.html
- minimal example: https://gitlab.com/dopsi/mve-br2-external-dep

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2022-03-09 10:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-09 10:22 bugzilla [this message]
2022-03-09 10:25 ` [Buildroot] [Bug 14656] Adding dependencies from an external tree does not work bugzilla
2022-03-09 20:14 ` bugzilla

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=bug-14656-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@uclibc.org \
    /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 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.