Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is it possible to extract ebuilds from debian db ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Apr 11, 2008 12:15 pm    Post subject: is it possible to extract ebuilds from debian db ? Reply with quote

is it possible to extract informations about ebuilds from the debian ports db ?

to have the the right/last patch to apply, when gentoo portage sometimes simply forget to update his ebuils, should be a nice idea =P
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Fri Apr 11, 2008 1:58 pm    Post subject: Reply with quote

well, i believe the debian software repository consists of packages, not ports, right?
the *bsds are built upon ports.
i think that this would only be partly of use, since by far not all patches that either debian or the bsds use can be applied to gentoo and vice versa.
the next thing is that debian follows a different philosophy than gentoo, they mostly use quite old versions of software packages and rewrite patches of newer versions to use them on there old versions. this does not comply very good with gentoo.

here are some bytes of information of a debian package
Code:
Package: apache2
Version: 2.2.3-4+etch4
Section: web
Priority: optional
Architecture: all
Depends: apache2-mpm-worker (>= 2.2.3-4+etch4) | apache2-mpm-prefork (>= 2.2.3-4+etch4) | apache2-mpm-event (>= 2.2.3-4+etch4)
Installed-Size: 64
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Description: Next generation, scalable, extendable web server
 Apache v2 is the next generation of the omnipresent Apache web server. This
 version - a total rewrite - introduces many new improvements, such as
 threading, a new API, IPv6 support, request/response filtering, and more.

so... the description could be useable, but all the dependencies cannot be used, everything depends on the underlying system and versioning, where debian has a much wider base then gentoo which is quite slim.

so... you could for sure write some kind of conversion tool that translates the debian packages to ebuilds, but that would mean you have to
* process the whole tree of debian packages
* displace the portage tree with that
* make heavy modifications to portage
* use only binary software (which is kind of weird on gentoo :wink: )
* ...

i am not sure if the benefits of such a projet would compensate the drawbacks and the effort.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Apr 11, 2008 2:29 pm    Post subject: Reply with quote

In Debian/Ubuntu's patches, there's often a debian/patches/series or "00list" file containing the list of patches, which is easy to parse usually:
Code:
  for _f in $(cat debian/patches/00list) ; do
    patch -Np1 -i debian/patches/${_f} || return 1
  done

Obviously, Gentoo would use its "epatch" command there :wink:

Then again, sometimes it contains commented-out patches and p1/p0 for the patchlevel, which are much trickier to parse.
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Apr 11, 2008 10:25 pm    Post subject: Reply with quote

I am very interested to debian patches ... i think i will concentrate myself about extracting informations about patches, and forcing a new version of emerge to use them.

For example, the gentoo libxcb.ebuild is still unpatched .... this mean gentoo is 6 mounts later respect debian/ubuntu/slackware .... this caused me 1 week to understand where was the problem: and the problem was into a still not existing patch applied to the libxcb ebuild ...

using the debian db i can understand what i have to modify to have my problem fixed: this is my goal, to have updated information extracted from the most updated linux distribution

gentoo is the best distribution i can use, i love it, but it is not so used, so reasonably you have to aspect the it is not so updated as debian
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Fri Apr 11, 2008 10:39 pm    Post subject: Reply with quote

ddc wrote:
I am very interested to debian patches ... i think i will concentrate myself about extracting informations about patches, and forcing a new version of emerge to use them.

For example, the gentoo libxcb.ebuild is still unpatched .... this mean gentoo is 6 mounts later respect debian/ubuntu/slackware .... this caused me 1 week to understand where was the problem: and the problem was into a still not existing patch applied to the libxcb ebuild ...

using the debian db i can understand what i have to modify to have my problem fixed: this is my goal, to have updated information extracted from the most updated linux distribution

gentoo is the best distribution i can use, i love it, but it is not so used, so reasonably you have to aspect the it is not so updated as debian


This is plainly not doable. If you are really that worried then update the ebuild, and submit it to bugzilla so the version can be bumped. It's far easier.

I can't understand why to look into an external solution when the native one is so easy, obvious, and quick.

Second, you can't just take the debian patches and apply them blindly. Because gentoo is not debian, and the packages are not the same.

If you disagree with the policy that gentoo uses for a given ebuild, you can use your own overlay. It takes two minutes to grab the patch, write the epatch line and do ebuild <file> manifest. You can emerge it now. Using a debian package into gentoo would be MUCH more difficult. We all know what the words "binary dependency hell" means.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Apr 12, 2008 11:09 am    Post subject: Reply with quote

i92guboj wrote:

I can't understand why to look into an external solution when the native one is so easy, obvious, and quick.


personally, I have been using gentoo since 2005, i support ppc, hppa and mips, and every time i used gentoo i found it may be easy, it is no so obvious, and is not so quick. I find gentoo is so slow and complicated about ebuilds, bugs and related.


however ... give a look into the uclibc ebuild ... frustrating at all (please read how poor is the ebuild about the endianess)

(also i find frustration with the gentoo crossdev, while debian crosscompilng tools are excellent and i have a lot of fun
but this is not in-topic)


i92guboj wrote:

Second, you can't just take the debian patches and apply them blindly. Because gentoo is not debian, and the packages are not the same.
If you disagree with the policy that gentoo uses for a given ebuild, you can use your own overlay.


exactly what I am doing now: my own overlay, extracting debian patches and informations from his db, using them (when it is possible)
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sat Apr 12, 2008 12:35 pm    Post subject: Reply with quote

this is a quite interesting thread. ddc... now, do you like gentoo you don't you? i don't get it. you say that you use gentoo since years on different platforms, but in the next sentence you tell us about all the drawbacks of gentoo. why?

i think you have basically 2 choices:

* improve the ebuilds where you see need for it
* move to a distribution that better fits your needs

i agree with i92guboj, using a modified ebuild with a overlay is quite easy nowadays, this is gonna be the best way to get your desired patches into gentoo. and if you provide a well done modified version on b.g.o., your modifications see a good change to be integrated in the main distribution very soon (at least ~ keyworded).
if you know some places where patches from other distributions can be applied to gentoo ebuilds then it is your change to improve gentoo and get reputation for that.
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Apr 12, 2008 12:50 pm    Post subject: Reply with quote

the story is easy

alex.blackbit wrote:

* move to a distribution that better fits your needs


there is no other distribution that better fits my needs
(there is no choice: gentoo is the best "meta distribution" in supporting different platforms)


alex.blackbit wrote:

* improve the ebuilds where you see need for it


so i'd better improve the ebuilds where i need for it

=P
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sat Apr 12, 2008 12:54 pm    Post subject: Reply with quote

good anser, ddc. :)
do you have a url to the patch you would like to see in xcb?
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Apr 12, 2008 11:45 pm    Post subject: Reply with quote

alex.blackbit wrote:
good anser, ddc. :)
do you have a url to the patch you would like to see in xcb?


i googled and found a good patch for the libxcb (that i reported into the quote), i integrated it into the source and posted the patched ebuild sources to this forum

lx11-libs/libcxb https://forums.gentoo.org/viewtopic-t-677549.html <------ patch source included
sci-electronics/systemc https://forums.gentoo.org/viewtopic-t-675566.html <------ patch source not included, sorry i personally modified applicatin's sources but i haven't invoked the diff yet =P


the libxcb patch fix a lot of issue with java
what i modified into systemc simply makes you able to emerge and use it on your ppc machine =P
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun Apr 13, 2008 3:17 pm    Post subject: Reply with quote

bugs.gentoo.org is a better place to post improved ebuilds.
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat May 03, 2008 3:16 pm    Post subject: Reply with quote

ummm http://www.ututo.org/www/?lang=EN&lang=EN seems to be a distro based on gentoo
and it seem to have a GUI to emerge


also ... it seems it has been partially inspired by debian


very interesting, i have to check it out
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun May 04, 2008 4:27 am    Post subject: Reply with quote

very interesting. i didn't know that. some things on that website are in english though, so i do not understand everything.

but gentoo has some graphical portage frontends too: app-portage/himerge, app-portage/kuroo, app-portage/porthole.
i don't know if this overlaps with the tools that ututo provides.

attention: use http://kuroo.org , http://www.kuroo.org does not work.
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


Joined: 30 Jun 2002
Posts: 2803
Location: Richmond, BC, Canada

PostPosted: Mon May 05, 2008 11:36 pm    Post subject: Reply with quote

From what I saw it only has kuroo.

Also, in gentoo there is also portato which is another gtk frontend to portage. He has taken a slightly different approach than we have done for porthole.

Also try installing porthole and test it on ppc. You might actually like it. If it works (it should) then let them know on this bug so they can add the ppc keyword again.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue May 06, 2008 12:07 am    Post subject: Reply with quote

right, i forgot portato.
the only ppc machine i have available is a ibm rs/6000 7248-100. i will not install gentoo on it, since it is really slow compared to my dual xeon workstation.
well, i could set up distcc and crossdev, but i don't have the time for that at the moment.
maybe post your wish in the ppc forum.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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