From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Run ./nix/sync-with-upstream after pull! Date: Thu, 19 Dec 2013 00:31:59 +0100 Message-ID: <20131218233159.GA12553@debian> References: <87eh5921yu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtQb3-0007cg-UL for guix-devel@gnu.org; Wed, 18 Dec 2013 18:32:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtQax-0008EK-Ga for guix-devel@gnu.org; Wed, 18 Dec 2013 18:32:09 -0500 Content-Disposition: inline In-Reply-To: <87eh5921yu.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?iso-8859-15?Q?Court=E8s?= Cc: guix-devel@gnu.org On Thu, Dec 19, 2013 at 12:06:49AM +0100, Ludovic Courtès wrote: > Make sure to run ./nix/sync-with-upstream to fix that (this script has > an additional patch rule to fix that.) When doing this, I get: sync-with-upstream: `..' is not the valid top-level source directory When I do "cd nix; ./sync-with-upstream", I get: (lots of messages) `./libstore/pathlocks.hh' -> `../../nix/./libstore/pathlocks.hh' removed `../nix/libstore/schema.sql.hh' `../nix-upstream/COPYING' -> `../nix/COPYING' `../nix-upstream/AUTHORS' -> `../nix/AUTHORS' sed: can't read ../nix/libutil/hash.{cc,hh}: No such file or directory The files ../nix/libutil/hash.cc and ../nix/libutil/hash.hh exist, but apparently the command looks for a single file with { and } in its name. The following modification solves the problem: diff --git a/nix/sync-with-upstream b/nix/sync-with-upstream index bb3a68b..dc7a7e3 100755 --- a/nix/sync-with-upstream +++ b/nix/sync-with-upstream @@ -76,5 +76,7 @@ sed -i "$top_srcdir/nix/libstore/gc.cc" # context is expected to truly copy the underlying hash context. The copy # constructor cannot be used in 'Ctx' if that's a union, so turn it into a # structure (we can afford to two wasted words.) -sed -i "$top_srcdir/nix/libutil/hash".{cc,hh} \ +sed -i "$top_srcdir/nix/libutil/hash".cc \ + -e 's|union Ctx|struct Ctx|g' +sed -i "$top_srcdir/nix/libutil/hash".hh \ -e 's|union Ctx|struct Ctx|g' Andreas