From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6655243553863630848 X-Received: by 2002:a7b:c045:: with SMTP id u5mr740343wmc.17.1549563585355; Thu, 07 Feb 2019 10:19:45 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:20c8:: with SMTP id g191ls414634wmg.4.gmail; Thu, 07 Feb 2019 10:19:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IZvOI13gCV862rSLDa3iYy8MOPL2CBj0SxsoqYekklW2cC8Zabl1JQ5UCY73aegQh7jCqhI X-Received: by 2002:a1c:4442:: with SMTP id r63mr751668wma.23.1549563584907; Thu, 07 Feb 2019 10:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549563584; cv=none; d=google.com; s=arc-20160816; b=yssGVkrpJSIPAyUlrXECppLwSPctbEpfBtTx8akqLZo+aD5x8CgBr4vlJjZuC7HkQ3 AFpLbNbUKu4K6mc/et6/vJSi+18C+a9lpnpScDJAfLXry0iptcVcNCiOY9Jln56ThSAm yBdtbVzh9w2xqF0IyQq6Pwiim/sDyTbNqMbh77anChDABY7X4HQDEHy1/t/auHB2Mkzv UrKtOsbs3JcXwxBzVMoGZDS0rjuIMM1pNA4fXTL9U2QplB7AzU3JqZib6zCG3NKaC6t8 syv3AIcc4KqIUTsfxeI1aC3zhn1sNoX2Dpzws8m3czPX00vIlljPk5/MInhUVmFXbi86 OT9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=1M/uPI+5GeDs0mIthDwG4UBGIuaHwxp5JqTMvhqNtc0=; b=o2gV/OeU2duKNGDu9qs9DjEpTGJPkVQV04MYTR9+mf7bY66v/PEZYUabGat1mZT5M0 IAPMAYWQx6IIjvZF74ZU3u1kY52S6UIxRYc4TQMc17eMn0HoL9qyh05Id4PwPWUBLgvV wu1yB7fPmgbfKdAC4NQ8/dqumXf8erwyUlFcH5oeDmzc651/TCFnpUnpL0iD4iMjvatx zDf3xpppbU2Xjmnnmt2vB9U843wayRnGS53E7HZVv1TpOQTdgMzBcH4v8YxxOqLD9yaH okWs/9RiqUszGo2sBnSl36EMJoa/ChdCWk3NcEw3ad+GcWJC8vVyKvSLyKhSs8+2UjyT vpsA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id t23si684412wmt.1.2019.02.07.10.19.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 10:19:44 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x17IJi6p019546 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 7 Feb 2019 19:19:44 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.156]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x17IJfeG004461; Thu, 7 Feb 2019 19:19:41 +0100 Date: Thu, 7 Feb 2019 19:19:41 +0100 From: Henning Schild To: "[ext] Lisicki, Raphael" Cc: "isar-users@googlegroups.com" Subject: Re: do_adjust_git in dpkg-base.class Message-ID: <20190207191941.52a473a5@md1za8fc.ad001.siemens.net> In-Reply-To: References: X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: T+TZurjh/3D8 Am Thu, 7 Feb 2019 13:03:58 +0000 schrieb "[ext] Lisicki, Raphael" : > Hello everybody, > > the function do_adjust_git in dpkg-base.class breaks git for all > operations outside of the buildchroot. E.g. it is not possible to use > git in a prepare_build command, as it is not yet done in the > buildchroot, but the git adjustment has already been done. I would > suggest to move the call to do_adjust_git into dpkg_do_mounts and > maybe even undo it afterwards, so that targets that run after build > can also have access to a working git repo. Even if the patching was done later, you would see the same problem in the first rebuild. Since the patching does not get undone. If you need to use git you can enter the buildchroot and call it with "mount; sudo chroot -E ..." ... the repeating pattern. Or you might get away with "git -C somewhere/in/dldir" ... hack, or "git clone file://somewhere/in/dldir ${WORKDIR}/git_host". Now thinking about that we might enable adjust_git to keep a host copy for you, if you ask for it ... somehow. Or you write your own _prepend it with "cp -r git git_host" ;). Henning > Best regards > Raphael Lisicki >