Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Diffs for big packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
yagami
Apprentice
Apprentice


Joined: 12 May 2002
Posts: 269
Location: Leiria, Portugal

PostPosted: Sun May 12, 2002 9:27 pm    Post subject: Diffs for big packages Reply with quote

From a distribution that works with source code , one of the biggest advantages of source code is that it can be modified, and then recompiled.

I mean , it would be great , if ( to make it easier ) in particular big packages like mozilla , X , etc , there would be diffs available from the latest version.

This would not have to be automated .... we would get them from the ftp mirrors , would apply the diffs ourselves , recompile , put them in /usr/portage/distfiles and then emerge .... as longe as there were the diffs ( kinda like there is in debian , which there is the original tar.gz and then the diff to what changes debian made)

but i am talking also about versions.... , it would be great , ( exemple) mozilla rc1 .....probably the diff from rc1 to rc2 is just a few megs ( if that much)... i would not have to redownload 30 megs .

this would also make it easier on bandwith from gentoo.

Just someone making the diffs available for the big packages somewhere would be nice , and much more efficient ( the way linux kernel patches works is great)

please could someone say if this is reasenable or is just to much to ask...
Back to top
View user's profile Send private message
ProGuy
n00b
n00b


Joined: 14 Apr 2002
Posts: 17
Location: Denmark

PostPosted: Mon May 20, 2002 12:44 pm    Post subject: Reply with quote

Sounds interresting. It seems like many big projects are doing diffs themselves, so they do allready exist, it's just a question of using them.

I'm not quite sure how hard it would be to build it into Portage, but I would say it could be done (I might add, that I am in no way familiar with the Portage code).
If we could specify the diff (DIFF) in the ebuild file, it would just be a question of checking if (DIFF_FROM) exists, and download the diff, extract the old sources (DIFF_FROM), and apply the diff.

This surely could be done in a more advanced way, allowing multiple diffs., but this is what I could think of within 5 minutes ;)
_________________
//ProGuy
Back to top
View user's profile Send private message
stroke
n00b
n00b


Joined: 13 May 2002
Posts: 36
Location: Italy

PostPosted: Thu May 23, 2002 6:51 pm    Post subject: Reply with quote

That would be great !
Also I think it won't be difficult at all to implement/code that.
Back to top
View user's profile Send private message
heim
n00b
n00b


Joined: 31 May 2002
Posts: 5

PostPosted: Fri May 31, 2002 5:33 pm    Post subject: diffs Reply with quote

this could be done with the current system, on a per ebuild basis.

one way would be by setting SRC_URI like this:
Code:

SRC_URI="ftp://ftp.mozilla.org/pub/mozilla/releases/${PN}${MY_PV1}/src/"
cd /usr/portage/distfiles/
moz=`ls mozilla-source*|tail -n1`
if [ -a /usr/portage/distfiles/${moz} ]
then
SRC_URI="${SRC_URI}${moz}"
else
SRC_URI="${SRC_URI}${PN}-source-${MY_PV1}.tar.bz2"
fi


then, in src_unpack() download the diff, and apply it.
the md5sum for ${moz} would also need to be added to the digest.

not very nice, but it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum