unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31247: fetching an svn repository always results in a different hash
@ 2018-04-23 15:44 julien lepiller
  2018-04-23 18:41 ` Leo Famulari
  2019-04-05 12:54 ` Julien Lepiller
  0 siblings, 2 replies; 5+ messages in thread
From: julien lepiller @ 2018-04-23 15:44 UTC (permalink / raw)
  To: 31247

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+)))

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31247: fetching an svn repository always results in a different hash
  2018-04-23 15:44 bug#31247: fetching an svn repository always results in a different hash julien lepiller
@ 2018-04-23 18:41 ` Leo Famulari
  2018-04-24 20:40   ` Julien Lepiller
  2019-04-05 12:54 ` Julien Lepiller
  1 sibling, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2018-04-23 18:41 UTC (permalink / raw)
  To: julien lepiller; +Cc: 31247

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31247: fetching an svn repository always results in a different hash
  2018-04-23 18:41 ` Leo Famulari
@ 2018-04-24 20:40   ` Julien Lepiller
  2018-04-24 20:56     ` Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Lepiller @ 2018-04-24 20:40 UTC (permalink / raw)
  To: 31247

Le Mon, 23 Apr 2018 14:41:53 -0400,
Leo Famulari <leo@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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31247: fetching an svn repository always results in a different hash
  2018-04-24 20:40   ` Julien Lepiller
@ 2018-04-24 20:56     ` Danny Milosavljevic
  0 siblings, 0 replies; 5+ messages in thread
From: Danny Milosavljevic @ 2018-04-24 20:56 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 31247

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

Hi Julien,

On Tue, 24 Apr 2018 22:40:21 +0200
Julien Lepiller <julien@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.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31247: fetching an svn repository always results in a different hash
  2018-04-23 15:44 bug#31247: fetching an svn repository always results in a different hash julien lepiller
  2018-04-23 18:41 ` Leo Famulari
@ 2019-04-05 12:54 ` Julien Lepiller
  1 sibling, 0 replies; 5+ messages in thread
From: Julien Lepiller @ 2019-04-05 12:54 UTC (permalink / raw)
  To: 31247-done

This is now fixed on master. Closing.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-05 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-23 15:44 bug#31247: fetching an svn repository always results in a different hash julien lepiller
2018-04-23 18:41 ` Leo Famulari
2018-04-24 20:40   ` Julien Lepiller
2018-04-24 20:56     ` Danny Milosavljevic
2019-04-05 12:54 ` Julien Lepiller

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).