View previous topic :: View next topic |
Author |
Message |
yagami Apprentice
Joined: 12 May 2002 Posts: 269 Location: Leiria, Portugal
|
Posted: Sun May 12, 2002 9:27 pm Post subject: Diffs for big packages |
|
|
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 |
|
|
ProGuy n00b
Joined: 14 Apr 2002 Posts: 17 Location: Denmark
|
Posted: Mon May 20, 2002 12:44 pm Post subject: |
|
|
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 |
|
|
stroke n00b
Joined: 13 May 2002 Posts: 36 Location: Italy
|
Posted: Thu May 23, 2002 6:51 pm Post subject: |
|
|
That would be great !
Also I think it won't be difficult at all to implement/code that. |
|
Back to top |
|
|
heim n00b
Joined: 31 May 2002 Posts: 5
|
Posted: Fri May 31, 2002 5:33 pm Post subject: diffs |
|
|
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 |
|
|
|
|
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
|
|