Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330735 - Freenet is incompatible with >=ant-core-1.8
Summary: Freenet is incompatible with >=ant-core-1.8
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 353613
  Show dependency tree
 
Reported: 2010-08-01 18:06 UTC by Justus Ranvier
Modified: 2011-02-15 21:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justus Ranvier 2010-08-01 18:06:08 UTC
My node was experiencing a strange error in which the manifests of directory uploads were corrupted but single file uploads functioned correctly.

Troubleshooting with developer saces on the #freenet freenode channel revealed the problem to be ant-core-1.8. Freenet is developed with ant 1.7. 

Downgrading ant-core to ant-core-1.7.1-r4 resolved the upload problems.

Reproducible: Always

Steps to Reproduce:
Comment 1 Thomas Sachau gentoo-dev 2010-08-01 19:54:27 UTC
Fixed with freenet-0.7.5_p1263-r1
You will find it on your local rsync mirror in a few hours,
Comment 2 Justus Ranvier 2010-08-01 19:55:30 UTC
(In reply to comment #1)
> Fixed with freenet-0.7.5_p1263-r1
> You will find it on your local rsync mirror in a few hours,
> 

freenet-9999 as well?
Comment 3 Thomas Sachau gentoo-dev 2010-08-01 22:41:47 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Fixed with freenet-0.7.5_p1263-r1
> > You will find it on your local rsync mirror in a few hours,
> > 
> 
> freenet-9999 as well?
> 

Missed it, done now.

Be warned, this will only downgrade ant-core, but not other ant-* packages. You might have to do that with the help of package.mask (i had issues with ant-nodeps not being the same minor version as ant-core).
Comment 4 peter sheldon 2010-10-26 17:49:30 UTC
1293 has same problem with ant
Comment 5 Thomas Sachau gentoo-dev 2010-10-27 19:26:32 UTC
(In reply to comment #4)
> 1293 has same problem with ant
> 

Did you just want to report it or did you manually upgrade ant, also freenet requires 1.7* version of it?
Comment 6 Oleg 2010-12-05 10:49:54 UTC
I edit ebuild of net-p2p/freenet-0.7.5_p1308 and compile then with ant-core-1.8.1
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-02-04 10:02:07 UTC
This resolution is quite bad in the long term :( freenet should be made compatible with new ant. This also leads to bugs such as bug 353613 (which seems to me also to be a portage bug, I'm asking zmedico).

According to comment 6, ant-core-1.8.1 works ?
Comment 8 Thomas Sachau gentoo-dev 2011-02-06 01:48:59 UTC
No, nothing has changed on this topic.

ant-core-1.8* still causes corruption of directory uploads as reported originally.

This does of course not show up at compile time or when you download something else or just upload simple files, so while comment 6 is true (it does compile with ant-core-1.8*), it doesnt show, that the issue itself is fixed.

And since freenet (like many other java projects) also uses bundled jars including a bundled jar for ant-core, noone else does see this issue and fixing it isnt a high priority for upstream.
Comment 9 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-02-06 12:16:38 UTC
OK, I will try build it with 1.7.1 and 1.8.1 and diff the result... Could be some trivial fix in the end.
Comment 10 Thomas Sachau gentoo-dev 2011-02-13 11:11:20 UTC
After some talk on IRC, Caster and i got to the conclusion, that it might be the best for now to include a prebuilt ant.jar from ant-core-1.7.1.
Upstream of freenet is made aware of this problem, but since they ship their own jars with freenet and their binary blob hasnt been updated for a long time, i dont see a chance, this will change in the near future.
This change will remove the force on java team to keep an older version of ant-core in tree and to support it.

I removed the latest version of freenet depending on ant-core-1.7* today, so while the problem itself still exists and has to be fixed upstream, i hope this workaround is now accepted by involved parties.

Setting resolution to upstream, since they have to fix this finally.
Comment 11 Jouni Rinne 2011-02-15 19:39:40 UTC
Is freenet-0.7.5_p1352.ebuild still supposed to have =dev-java/ant-core-1.7* in CDEPEND?
Comment 12 Thomas Sachau gentoo-dev 2011-02-15 21:21:18 UTC
(In reply to comment #11)
> Is freenet-0.7.5_p1352.ebuild still supposed to have =dev-java/ant-core-1.7* in
> CDEPEND?
> 

Thanks for the catch, i missed the removal. Ebuilds are updated now and should be synced on your local mirror in a few hours.