GNU bug report logs - #31247
fetching an svn repository always results in a different hash

Previous Next

Package: guix;

Reported by: julien lepiller <julien <at> lepiller.eu>

Date: Mon, 23 Apr 2018 15:45:01 UTC

Severity: normal

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31247 in the body.
You can then email your comments to 31247 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#31247; Package guix. (Mon, 23 Apr 2018 15:45:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to julien lepiller <julien <at> lepiller.eu>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 23 Apr 2018 15:45:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: julien lepiller <julien <at> lepiller.eu>
To: bug-guix <at> gnu.org
Subject: fetching an svn repository always results in a different hash
Date: Mon, 23 Apr 2018 17:44:08 +0200
Hi,

I'm trying to use svn-fetch in a new package, but I always get a 
different hash when I try to download the sources. I think this is due 
to fetching external resources. Here are two adresses that trigger this 
bug:

- http://svn.netlabs.org/repos/kbuild/trunk
- https://svn.openstreetmap.org/applications/editors/josm

Here is a package definition I try to use:

(define-public kbuild
  (package
    (name "kbuild")
    (version "0.1.9998")
    (source (origin
              (method svn-fetch)
              (uri (svn-reference
                     (url "http://svn.netlabs.org/repos/kbuild/trunk")
                     (revision 3025)))
              (file-name (string-append name "-" version))
              (sha256
               (base32
                
"1k7y2lqqhsfwfzzi7rms7a2kakimm7g46qa2gypkvzdd3drbpanj"))))
    (build-system gnu-build-system)
    (home-page "http://trac.netlabs.org/kbuild/wiki")
    (synopsis "Makefile framework")
    (description "kBuild is a makefile framework for writing simple 
makefiles
for complex tasks.")
    (license license:gpl3+)))




Information forwarded to bug-guix <at> gnu.org:
bug#31247; Package guix. (Mon, 23 Apr 2018 18:42:01 GMT) Full text and rfc822 format available.

Message #8 received at 31247 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: julien lepiller <julien <at> lepiller.eu>
Cc: 31247 <at> debbugs.gnu.org
Subject: Re: bug#31247: fetching an svn repository always results in a
 different hash
Date: Mon, 23 Apr 2018 14:41:53 -0400
[Message part 1 (text/plain, inline)]
On Mon, Apr 23, 2018 at 05:44:08PM +0200, julien lepiller wrote:
> Hi,
> 
> I'm trying to use svn-fetch in a new package, but I always get a different
> hash when I try to download the sources. I think this is due to fetching
> external resources. Here are two adresses that trigger this bug:

Can you try comparing the differences between the downloaded archives?
The diffoscope program will be useful.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31247; Package guix. (Tue, 24 Apr 2018 20:41:01 GMT) Full text and rfc822 format available.

Message #11 received at 31247 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: 31247 <at> debbugs.gnu.org
Subject: Re: bug#31247: fetching an svn repository always results in a
 different hash
Date: Tue, 24 Apr 2018 22:40:21 +0200
Le Mon, 23 Apr 2018 14:41:53 -0400,
Leo Famulari <leo <at> famulari.name> a écrit :

> On Mon, Apr 23, 2018 at 05:44:08PM +0200, julien lepiller wrote:
> > Hi,
> > 
> > I'm trying to use svn-fetch in a new package, but I always get a
> > different hash when I try to download the sources. I think this is
> > due to fetching external resources. Here are two adresses that
> > trigger this bug:  
> 
> Can you try comparing the differences between the downloaded archives?
> The diffoscope program will be useful.

There are differences in .svn/wc.db. The top .svn directory is removed,
but there are other .svn directories that are not removed and contain a
wc.db file. In my case, src/lib/kStuff/.svn is kept intact and differs
every time.




Information forwarded to bug-guix <at> gnu.org:
bug#31247; Package guix. (Tue, 24 Apr 2018 20:57:02 GMT) Full text and rfc822 format available.

Message #14 received at 31247 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 31247 <at> debbugs.gnu.org
Subject: Re: bug#31247: fetching an svn repository always results in a
 different hash
Date: Tue, 24 Apr 2018 22:56:41 +0200
[Message part 1 (text/plain, inline)]
Hi Julien,

On Tue, 24 Apr 2018 22:40:21 +0200
Julien Lepiller <julien <at> lepiller.eu> wrote:

> > > I'm trying to use svn-fetch in a new package, but I always get a
> > > different hash when I try to download the sources. I think this is
> > > due to fetching external resources. Here are two adresses that
> > > trigger this bug:    
> > 
> > Can you try comparing the differences between the downloaded archives?
> > The diffoscope program will be useful.  
> 
> There are differences in .svn/wc.db. The top .svn directory is removed,
> but there are other .svn directories that are not removed and contain a
> wc.db file. In my case, src/lib/kStuff/.svn is kept intact and differs
> every time.

I think we should change guix/build/svn.scm to also delete the other ".svn"
directories.

Those contain state that is not necessary for the build - and since it's
causing trouble, we can just remove them.
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Fri, 05 Apr 2019 12:55:02 GMT) Full text and rfc822 format available.

Notification sent to julien lepiller <julien <at> lepiller.eu>:
bug acknowledged by developer. (Fri, 05 Apr 2019 12:55:03 GMT) Full text and rfc822 format available.

Message #19 received at 31247-done <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: 31247-done <at> debbugs.gnu.org
Subject: Re: fetching an svn repository always results in a different hash
Date: Fri, 05 Apr 2019 14:54:28 +0200
This is now fixed on master. Closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 May 2019 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 352 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.