All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 11086] New: download/git submodule breaks on symlinked dl folder
Date: Mon, 11 Jun 2018 09:35:10 +0000	[thread overview]
Message-ID: <bug-11086-163@https.bugs.busybox.net/> (raw)

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

            Bug ID: 11086
           Summary: download/git submodule breaks on symlinked dl folder
           Product: buildroot
           Version: 2018.05
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: posted at heine.so
                CC: buildroot at uclibc.org
  Target Milestone: ---

Hi,

I'm not sure if this should be actually considered a bug but maybe this is
something which should be mentioned in the documentation.

I have been symlinking the /dl folder of Buildroot to keep a central cache of
downloads (I now know `export BR2_DL_DIR` might be better). This was no problem
before but I ran into a problem with a git download which uses a submodule. 

So my structure is like this

/foo/buildroot-2018.05
/foo/dl

the BR folder contains a symlink to the dl folder (doesn't matter if relativ or
absolute)

the checkout of the submodule fails with
fatal: Could not chdir to
'../../../../../../../../dl/my_project/git/dep/my_submodule': No such file or
directory

If I compare paths I notice one too many '../' in this. which relates to the dl
folder being one folder higher than the dl folder in BR.

(the entry in .git/modules/dep/my_submodule/config contains the false relative
worktree)

I imagine this would require some decent fiddeling to fix. So maybe a note
mentioning "you should no symlink the dl folder, use BR2_DL_DIR" would be
helpful.

Regards,
Michael

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

             reply	other threads:[~2018-06-11  9:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11  9:35 bugzilla at busybox.net [this message]
2018-06-11 20:10 ` [Buildroot] [Bug 11086] download/git submodule breaks on symlinked dl folder bugzilla at busybox.net
2018-11-18 18:39 ` bugzilla at busybox.net

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-11086-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --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 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.