From patchwork Wed Nov 7 16:17:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 994363 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gateworks.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gateworks-com.20150623.gappssmtp.com header.i=@gateworks-com.20150623.gappssmtp.com header.b="HNAvC4RB"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42qsDx6czmz9sCQ for ; Thu, 8 Nov 2018 03:24:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4D20385C1D; Wed, 7 Nov 2018 16:24:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n5AmLu6_ggD0; Wed, 7 Nov 2018 16:24:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5B75A85BD3; Wed, 7 Nov 2018 16:24:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 39C811BF38E for ; Wed, 7 Nov 2018 16:24:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3700A8695B for ; Wed, 7 Nov 2018 16:24:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GWbDFzHMU95a for ; Wed, 7 Nov 2018 16:24:09 +0000 (UTC) X-Greylist: delayed 00:05:16 by SQLgrey-1.7.6 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id DF87D86940 for ; Wed, 7 Nov 2018 16:24:08 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id a8-v6so16254660wmf.1 for ; Wed, 07 Nov 2018 08:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=XMMhfX18krWCFs/Zz4MHH39atpIAkHHSHWlt23NwtAA=; b=HNAvC4RBcTKwqMyIY9E5INO2oUN4HYIeQFHgtxQ0MUC5ILgJtTC7mFDOtYYLpZIGxw Izy7KXkIEpNJoV1HM3QczdgJYl6xbT78JTszeFQAs9V8T/Cj2yRuggAdMbTO5rCyleTu 6pgh0PqXqafclzSDeGPPI7ORqDxGLgVMThMkOtuktffhjzR/nousvMCr1O3X1sHo+gRL CHUzbPtKV85orMJpryP2Eei2ayGwYLDiexGUVLz9hOTIR5i6oO3AOSnD2LF0VXmTVwG2 Ztw/S1Y8a4hdWwl1UFrg91PNP7ozqsfLn4c5zN1WvENUqblfi44MkWzIAetge26OXOsp buiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XMMhfX18krWCFs/Zz4MHH39atpIAkHHSHWlt23NwtAA=; b=RnrLHAjOHLbats1cNnnHDLTm6uYfPbLddfmdwpRD9mLstzDw1hZ7se+86XUM5wRZfl cScLl/GgqmHDwBCsXtw39NTR8z7fU85aoEJVCnYdjb+pyfAV2e9LOYwf/AjLhCSBRxfk ajMz9A2mW1m3VKM1M6PEz+a26wWlEoAuQun87jv3KpTwWc9RhVqZnBHekytItDPREpMM tV/hHA6mSrHdSfMy9xkhQxQVHgpcKGmTJ5ESbUKWeTS8Hp3f3IQVZcUydftP8YCAEeyi Mb5fBscd/u2ec6oQVVDp06E2OhyX9NrMxJYiLtsL36mFzYrGxxwfyLAYJZsiNM0X44lQ qi6A== X-Gm-Message-State: AGRZ1gL9ubKaaQD9WwYmA48qa6cJ2xnrI6S3lUaVq5ZvPM+BXOwO6rbB aKJ5WEejlXr9dvM4FC4cBCqMTXkU8u84ecYSXzImnG4DOlk= X-Google-Smtp-Source: AJdET5fcWL/xGP43LInLyZBiG0U69XyeDFxhLSwDH7SDuY3vTSwmmZIafILL4i4xoDn2n1o1zekFHpMFspFfFoVkza0= X-Received: by 2002:a1c:8c53:: with SMTP id o80-v6mr748257wmd.30.1541607530178; Wed, 07 Nov 2018 08:18:50 -0800 (PST) MIME-Version: 1.0 From: Tim Harvey Date: Wed, 7 Nov 2018 08:17:47 -0800 Message-ID: To: buildroot@busybox.net Subject: [Buildroot] Altering a package to pull from GIT X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Greetings, I'm trying to alter the openocd package to pull code from a specific git sha. Looking over the manual and searching a bit it seems like the following is the thing to do: # 0002-configure-enable-build-on-uclinux.patch patches configure.ac In other words _SITE needs to be the git:// URL and _VERSION should be the branch/tag/sha. However when I build I get: >>> openocd da4b2d5beb Extracting bzcat /usr/src/ventana/buildroot/dl/openocd/openocd-da4b2d5beb.tar.bz2 | tar --s trip-components=1 -C /usr/src/ventana/buildroot/output/build/openocd-da4b2d5beb -xf - bzcat: /usr/src/ventana/buildroot/dl/openocd/openocd-da4b2d5beb.tar.bz2 is not a bzip2 file. tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors package/pkg-generic.mk:160: recipe for target '/usr/src/ventana/buildroot/output /build/openocd-da4b2d5beb/.stamp_extracted' failed make[1]: *** [/usr/src/ventana/buildroot/output/build/openocd-da4b2d5beb/.stamp_ extracted] Error 2 Makefile:84: recipe for target '_all' failed make: *** [_all] Error 2 I thought it was the fact there was an openocd.hash but removing it still fails. Any ideas? Best regards, Tim diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk index 548d8b8..76594fe 100644 --- a/package/openocd/openocd.mk +++ b/package/openocd/openocd.mk @@ -4,9 +4,10 @@ # ################################################################################ -OPENOCD_VERSION = 0.10.0 +OPENOCD_VERSION = da4b2d5beb OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2 -OPENOCD_SITE = http://sourceforge.net/projects/openocd/files/openocd/$(OPENOCD_VERSION) +OPENOCD_SITE = git://git.code.sf.net/p/openocd/code +OPENCOD_SITE_METHOD = git OPENOCD_LICENSE = GPL-2.0+ OPENOCD_LICENSE_FILES = COPYING