All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Different site methods for the main package and patches
@ 2014-03-24  0:47 Frank Hunleth
  2014-03-26 17:46 ` Arnout Vandecappelle
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Hunleth @ 2014-03-24  0:47 UTC (permalink / raw)
  To: buildroot

I've run into an issue where I'd like to retrieve a package using git
and then patch it using a diff file from another site. In my case, the
package is the Linux kernel.

This is possible to reproduce using the raspberrypi_defconfig and
adding the BR2_LINUX_KERNEL_PATCH line below. Here are the relevant
lines:

BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/raspberrypi/linux.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="3bff11d4d4b8dc28cb9ce81449c989466ba27198"
BR2_LINUX_KERNEL_PATCH="http://download.filesystems.org/unionfs/unionfs-2.x-latest/unionfs-2.5.12_for_3.10.21.diff.gz"

The call that fails is in package/pkg-download.mk in DOWNLOAD_INNER.
There's a test whether LINUX_SITE_METHOD is defined (which it is) and
to use it for the $scheme. This is correct to download the kernel, but
incorrect when going through the kernel patches. If I could undefine
LINUX_SITE_METHOD, my use case would work since the method would be
determined via the URI, but obviously other use cases would break.

For patches, I'd almost think that the <package>_SITE_METHOD shouldn't
be used at all, since multiple patches could be specified that come
from different places. I don't know what the ramifications of that
change would be, though, or if there's a simpler solution.

Any ideas?

Thanks,
Frank

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

end of thread, other threads:[~2014-03-26 23:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-24  0:47 [Buildroot] Different site methods for the main package and patches Frank Hunleth
2014-03-26 17:46 ` Arnout Vandecappelle
2014-03-26 22:37   ` Thomas Petazzoni
2014-03-26 22:42     ` Peter Korsgaard
2014-03-26 23:00       ` rjbarnet at rockwellcollins.com
2014-03-26 23:26       ` Thomas Petazzoni
2014-03-26 23:34         ` Peter Korsgaard

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.