From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18116 invoked by alias); 21 Apr 2019 21:32:33 -0000 Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org Received: (qmail 18108 invoked by uid 89); 21 Apr 2019 21:32:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,HK_OBFDOM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=web-based, webbased, href, january X-HELO: mail-wr1-f66.google.com Received: from mail-wr1-f66.google.com (HELO mail-wr1-f66.google.com) (209.85.221.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Apr 2019 21:32:31 +0000 Received: by mail-wr1-f66.google.com with SMTP id f14so13156730wrj.5 for ; Sun, 21 Apr 2019 14:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ObE83moNEIZftVGHe8Nir+JdGso/1Iua8clhrR2kCOc=; b=EKogs7ijTkxh9cZqMN843LssHryXaIRrmtzTzpAXuEzL29UU+jqv8M3Z4LAklNplZx mvuvpNuJnnN87y+4gRnz+RcvuJqzv1PFb4sgn+uMEaWznmYh+Pi/WPhoFfHbIsJKHsBM UnfOBZ6d9eJAV+rFcQJxMlo/S9QBLhTYSj9b3AdtntrLeGq1uw0hfmnn0tig4pBOebrY lHbJnYPVH1qEaMKNgCby1siPC51eqF51ovM0voj96aqYgkjVdw/whf1vyzPEwP2uJAZ9 QmSIqz8QlgysASAKpwhPac8R5KPIiT9wKxAqtaIfkWV1d3fhT3lk01rHRM1v+CsBAo4i /Etg== Return-Path: Received: from localhost (host109-148-134-137.range109-148.btcentralplus.com. [109.148.134.137]) by smtp.gmail.com with ESMTPSA id m14sm2150005wru.51.2019.04.21.14.32.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Apr 2019 14:32:28 -0700 (PDT) Date: Sun, 21 Apr 2019 21:32:00 -0000 From: Andrew Burgess To: "Frank Ch. Eigler" Cc: cgen@sourceware.org, nickc@redhat.com Subject: Re: Converting CGEN from CVS to git Message-ID: <20190421213226.GC2737@embecosm.com> References: <20190131195017.GB17699@embecosm.com> <878sywvnqx.fsf@redhat.com> <20190204163344.GA2829@embecosm.com> <20190303223840.GA1576@redhat.com> <20190306132831.GC10887@embecosm.com> <20190327143240.GZ10887@embecosm.com> <20190327200946.GA18828@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190327200946.GA18828@redhat.com> X-Fortune: One thought driven home is better than three left on base. X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2019-q2/txt/msg00006.txt.bz2 * Frank Ch. Eigler [2019-03-27 16:09:46 -0400]: > Hi, Andrew - > > > > The mail is here, this describes the process I went through and > > > some of the choices I made. > > > https://www.sourceware.org/ml/cgen/2019-q1/msg00000.html > > > The link to my conversion is here: > > > git@github.com:T-J-Teru/cgen.git > > > git@github.com:T-J-Teru/cgen-2-git.git > > OK, those look OK. With respect to email addresses, retaining > as a fallback is fine. > > > How would you feel if I reached out to the sourceware overseers list > > to get an empty git repository setup (I guess that's the right place > > to ask)? > > I set up this for us/you now, and have given you cgen group membership. > You should be able to commit your work to ssh://sourceware.org/git/cgen.git/ > and take it forward. Thanks for taking the initiative! I have now pushed both the master and 1.1 branch (the only remaining branches) to the new git repository. This was based on a conversion I just performed, but as the last change I see in CVS was Alan's update of the copyright dates in January, this new conversion is mostly unchanged from my original proposal - I did update some of the email addresses used. What I think needs to happen next: - Maybe someone can confirm that they can checkout the new repository, and even better test it. Instructions for how I've been testing this against binutils-gdb are below. Then, - If this is possible it would be great to make the old CVS read-only so nobody accidentally commits anything there. I don't have permissions to do anything like this, finally - Update the web pages to point at the new git repository. I have a patch for this below, and I _might_ even be able to commit it. I wont know until I try I guess. Thanks, Andrew --- How to test with binutils-gdb ============================= There are two methods for using cgen with binutils-gdb, I call these in-tree and out-of-tree. The in-tree is the old-school way, and should probably be discouraged; this involves checking out cgen into the binutils-gdb source tree, something like: mkdir -p cgen-test/build cd cgen-test git clone git://sourceware.org/git/binutils-gdb.git cd binutils-gdb git clone git://sourceware.org/git/cgen.git cd ../build ../binutils-gdb/configure --enable-cgen-maint=yes --enable-targets=all make all-opcodes all-sim This should work fine, with the only drawback being that the cgen repository is living in the middle of our binutils-gdb checkout. The (IMHO) better way to make use of cgen is out-of-tree; this involves checking out cgen into a separate directory then telling binutils-gdb where to find it at configure time, something like this: mkdir -p cgen-test/build cd cgen-test git clone git://sourceware.org/git/binutils-gdb.git git clone git://sourceware.org/git/cgen.git cd build ../binutils-gdb/configure --enable-cgen-maint=$(cd ../cgen && pwd) --enable-targets=all make all-opcodes all-sim This should give identical results to the first method, but with the benefit that binutils-gdb and cgen are now separate source trees. If anyone sees anything unexpected then please let me know. --- Below is the patch for the htdocs CVS repository for review: - Update repository details from CVS to git Updates the details of how to find the repository from CVS to git. I've also removed reference to the snapshots as these no longer seem to be generated. 2019-04-21 Andrew Burgess * index.html: Update repository details from CVS to git. Index: index.html =================================================================== RCS file: /cvs/cgen/htdocs/index.html,v retrieving revision 1.27 diff -u -p -r1.27 index.html --- index.html 29 Aug 2011 17:34:25 -0000 1.27 +++ index.html 21 Apr 2019 21:05:28 -0000 @@ -68,28 +68,26 @@ connecting.

You can access the development source tree a couple of different ways.

-
Anonymous CVS read-only access
+
Read-only git access
-  cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src login
-  {enter "anoncvs" as the password}
-  cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src co cgen
+    git clone git://sourceware.org/git/cgen.git
   
-
Read-only web-based CVS access
+
Read-write git access (CGEN developers only)
- You can browse the source code using the cvsweb - interface. +
+    git clone ssh://sourceware.org/git/cgen.git
+  
-
CVS snapshots
+
Read-only web-based git access
- Periodically, snapshots of a complete anonymous CVS working tree are - archived here. + You can browse the source code using the gitweb + interface.
-

Bug reports and patches