[darcs-users] darcs patch: Add --debug-http flag to enable curl and... (and 3 more)

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Aug 12 20:21:45 UTC 2008


Le 12 août 08 à 16:27, David Roundy a écrit :

> On Mon, Aug 11, 2008 at 03:33:37PM -0700, Dmitry Kurochkin wrote:
>> Hi David.
>>
>> Here are few patches. The first should be good and I have sent you  
>> before. But
>> there was no reply.
>>
>> The last one is my effort to rework URL module to support multi  
>> threading. Actual
>> download is done in a separate thread. And result is reported  
>> through MVar's. I
>> would like to get comments on the idea in general and the  
>> implementation. Patch
>> was done on top of my previous "not so good" patches. I am not sure  
>> what is the
>> best way to fix this. Any advices?
>
> I've only glanced at this, but the ideas seem reasonable and I'm
> pushing it in (if it passes tests).



Hi,

I'd like to report a problem with current darcs. Since that patch:

   Tue Aug 12 00:12:09 CEST 2008  Dmitry Kurochkin <dmitry.kurochkin at gmail.com 
 >
     * Rework URL module for multi threading.

darcs is not able to retrieve itself:

   [glehmann at gbook src]$ rm -rf darcs-test/ && darcs/darcs get --lazy http://darcs.net 
  darcs-test
   This is the darcs darcs repository.
   **********************
   darcs: bug in darcs!
   URL.urlThread: same URLs with different parameters http://darcs.net/_darcs/pristine.hashed/0000001168-f3110304f05a902f430c7587f04e32378125cabe72bdd5e58125a9b252d29407 
  /Users/glehmann/src/darcs-test/_darcs/pristine.hashed/0000001168- 
f3110304f05a902f430c7587f04e32378125cabe72bdd5e58125a9b252d29407 at  
src/URL.hs:124 compiled Aug 12 2008 21:45:17
   I'm unable to check http://darcs.net/maintenance to see if this  
version is supported.
   If it is supported, please report this to bugs at darcs.net
   If possible include the output of 'darcs --exact-version'.

David's next patch:

   Tue Aug 12 16:12:20 CEST 2008  David Roundy <droundy at darcs.net>
     * fix breakage in URL.

doesn't make much difference:

   [glehmann at gbook src]$ rm -rf darcs-test/ && darcs/darcs get --lazy http://darcs.net 
  darcs-test
   This is the darcs darcs repository.
   **********************
   darcs: bug in darcs!
   URL.urlThread: same URLs with different parameters http://darcs.net/_darcs/pristine.hashed/0000000426-9948cc6c8c81b3e59139b58f83ed336364d32add7b919fca488a4afb20beefd8 
  /Users/glehmann/src/darcs-test/_darcs/pristine.hashed/ 
0000000426 
-9948cc6c8c81b3e59139b58f83ed336364d32add7b919fca488a4afb20beefd8 at  
src/URL.hs:125 compiled Aug 12 2008 21:49:35
   I'm unable to check http://darcs.net/maintenance to see if this  
version is supported.
   If it is supported, please report this to bugs at darcs.net
   If possible include the output of 'darcs --exact-version'.


This is on a mac os 10.5 intel using 6.8.2.
I get the same behavior with or without libcurl — excepted that the  
ctrl-c has much effect without libcurl.
And I can't build darcs with libwww:

[glehmann at gbook darcs]$ make -j2
perl release/determine_release_state.pl 2.0.2 > release/STATE
rm -f Main.hi Main.o
Linking darcs ...
[ghc] darcsman
compilation IS NOT required
compilation IS NOT required
Undefined symbols:
   "_libwww_last_url", referenced from:
       _r3aQ_info in URL.o
   "_libwww_enable_debug", referenced from:
       _URL_zdwccall3_info in URL.o
   "_libwww_wait_next_url", referenced from:
       _r3aO_info in URL.o
   "_libwww_request_url", referenced from:
       _r3aI_info in URL.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Undefined symbols:
   "_libwww_last_url", referenced from:
make: *** [darcsman] Error 1
make: *** Waiting for unfinished jobs....
       _r3aQ_info in URL.o
   "_libwww_enable_debug", referenced from:
       _URL_zdwccall3_info in URL.o
   "_libwww_wait_next_url", referenced from:
       _r3aO_info in URL.o
   "_libwww_request_url", referenced from:
       _r3aI_info in URL.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [darcs] Error 1

Regards,

Gaëtan

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.mandriva.org
http://www.itk.org  http://www.clavier-dvorak.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20080812/8cd8eb83/attachment.pgp 


More information about the darcs-users mailing list