Re: Online source code browser

2010-11-20 Thread suvayu ali
On 19 November 2010 12:13, Robert Myers rbmyers...@gmail.com wrote:
 What's there is a g*dawful mess.  Is there an IDV that will help me
 make sense of al this?


I presume you mean IDE? If so, you can give the Emacs + CEDET[1] combo a try.

[1] bzr branch bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk cedet

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-19 Thread Robert Myers
On Sun, Nov 14, 2010 at 1:37 PM, stan gr...@q.com wrote:

 At this point the source will be unpacked in
 ~/rpmbuild/BUILD/package name
 You can then look at it with the editor of your choice.

Ummm... editor of my choice?  For some strange reason, I decided to
look at the source code for anaconda.

I figured that, if I could do what anaconda does, I could do anything.

Well, I followed your recipe, and, after installing a *very* long list
of implied dependencies, I managed to get something or other into the
BUILD directory.

What's there is a g*dawful mess.  Is there an IDV that will help me
make sense of al this?

The python eclipse plugin is version 0.0.1.  No thanks.  Any other suggestions?

Robert.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-19 Thread stan
On Fri, 19 Nov 2010 15:13:39 -0500
Robert Myers rbmyers...@gmail.com wrote:

 Ummm... editor of my choice?  For some strange reason, I decided to
 look at the source code for anaconda.
 
 I figured that, if I could do what anaconda does, I could do anything.

Yeah, anaconda and preupgrade are probably nascent expert systems.  I
haven't looked at anacond, yum was frightening enough for me. :-)
 
 Well, I followed your recipe, and, after installing a *very* long list
 of implied dependencies, I managed to get something or other into the
 BUILD directory.

When I am investigating python programs, I just go look at the
installed code since it is human readable.

On my F14 x86_64 system, when I run 
rpm -q --filesbypkg anaconda | less
I find that the main packages are in the directories
/usr/lib64/anaconda (init and loader)
/usr/lib64/python2.7/site-packages/pyanaconda (the bulk of anaconda)

I then browse through the categories I am interested in with vim and
python syntax highlighting.  

 
 What's there is a g*dawful mess.  Is there an IDV that will help me
 make sense of al this?

I'm not sure what IDV stands for (Integrated Development Viewer?), but
I give a suggestion below.  Check out the classes, etc.  They are
usually documented right in the code.

 
 The python eclipse plugin is version 0.0.1.  No thanks.  Any other
 suggestions?


If you go to 
http://www.python.org
on the main page there are links that eventually lead to all the
Integrated or GUI development environments.  You should be able to try
them (even the commercial products have stripped down free versions) to
see which one you like.

Maybe someone else will give a more helpful answer.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-17 Thread Bill Davidsen
stan wrote:
 On Sun, 14 Nov 2010 10:17:02 -0800
 JDjd1...@gmail.com  wrote:

 Is there an online source code browser for Fedora Packages?

 I've never heard of such a thing, and it would be a big project.  I
 hope someone knows of one, it would be convenient.

 As far as I'm aware, the way to do this is to create a build tree in
 your home directory,
 rpmdev-setuptree
 and then get the src.rpm package,
 yumdownloader --sourcepackage name
 and install it in the build tree, as a user.
 rpm -ivhpackage name
 Once this is done, move to the SPEC directory,
 cd ~/rpmbuild/SPEC
 and run the rpmbuild command to unpack everything.
 rpmbuild -bppackage name.spec
 At this point the source will be unpacked in
 ~/rpmbuild/BUILD/package name
 You can then look at it with the editor of your choice.

Thank you for the concise description of how to do this, I'm going to use it 
(with attribution) the next time someone hits me with how do I... on building 
from source.

-- 
Bill Davidsen david...@tmr.com
   We have more to fear from the bungling of the incompetent than from
the machinations of the wicked.  - from Slashdot
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-17 Thread stan
On Wed, 17 Nov 2010 14:30:22 -0500
Bill Davidsen david...@tmr.com wrote:

 stan wrote:
  On Sun, 14 Nov 2010 10:17:02 -0800
  JDjd1...@gmail.com  wrote:
 
  Is there an online source code browser for Fedora Packages?
 
  I've never heard of such a thing, and it would be a big project.  I
  hope someone knows of one, it would be convenient.
 
  As far as I'm aware, the way to do this is to create a build tree in
  your home directory,
  rpmdev-setuptree
  and then get the src.rpm package,
  yumdownloader --sourcepackage name
  and install it in the build tree, as a user.
  rpm -ivhpackage name
  Once this is done, move to the SPEC directory,
  cd ~/rpmbuild/SPEC
  and run the rpmbuild command to unpack everything.
  rpmbuild -bppackage name.spec
  At this point the source will be unpacked in
  ~/rpmbuild/BUILD/package name
  You can then look at it with the editor of your choice.
 
 Thank you for the concise description of how to do this, I'm going to
 use it (with attribution) the next time someone hits me with how do
 I... on building from source.
 
You're welcome, glad it was helpful.  It probably exists on the Fedora
wiki somewhere, though probably not so succinctly stated.  I do know the
compile a custom kernel page has a more detailed and involved
explanation.  I forgot to mention in the above that the patches that
fedora applies will be in the ~/rpmbuild/SOURCE directory after
unpacking.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-17 Thread Todd Zullinger
Hi Stan,

I think I can help simplify this a bit.

stan wrote:
 As far as I'm aware, the way to do this is to create a build tree in
 your home directory,
 rpmdev-setuptree

FWIW, this is not needed since rpm-4.6 (F10) as rpm now defaults to
using your home dir and creates these directories as needed.

 and then get the src.rpm package,
 yumdownloader --sourcepackage name
 and install it in the build tree, as a user.
 rpm -ivhpackage name
 Once this is done, move to the SPEC directory,
 cd ~/rpmbuild/SPEC
 and run the rpmbuild command to unpack everything.
 rpmbuild -bppackage name.spec
 At this point the source will be unpacked in
 ~/rpmbuild/BUILD/package name
 You can then look at it with the editor of your choice.

 Thank you for the concise description of how to do this, I'm going to
 use it (with attribution) the next time someone hits me with how do
 I... on building from source.

 You're welcome, glad it was helpful.  It probably exists on the Fedora
 wiki somewhere, though probably not so succinctly stated.  I do know the
 compile a custom kernel page has a more detailed and involved
 explanation.  I forgot to mention in the above that the patches that
 fedora applies will be in the ~/rpmbuild/SOURCE directory after
 unpacking.

On the whole, I'd avoid all of the manual work and just use fedpkg.
You can yum install it on Fedora and CentOS/RHEL.

# Clone the package, anonymously (drop the -a if you're in the fedora
# packager group).
fedpkg clone -a foo

# Change to the newly create package dir.
cd foo

# Have fedpkg download the source tarball(s) and extract it, applying
# any patches as well.
fedpkg prep

At this point, you will have the package source in a subdirectory,
typically %{name}-%{version}.  This will be the contents for rawhide.
If you wish to see a different release, use fedpkg switch-branch
prior to the fedpkg prep call (e.g. fedpkg switch-branch f14).

One nice thing (IMO) about this method is that all the patches and
source files are in one directory.  I always hated having things
spread out in rpm's default {BUILD,SOURCES,SPECS} dirs (and I setup an
~/.rpmmacros to not use that layout).

HTH,

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
This government never furthered any enterprise but by the alacrity
with which it got out of its way.
-- Henry David Thoreau in his essay, Civil Disobedience



pgpP3zlmaeeyh.pgp
Description: PGP signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-17 Thread stan
On Wed, 17 Nov 2010 17:22:19 -0500
Todd Zullinger t...@pobox.com wrote:

 I think I can help simplify this a bit.
 
 On the whole, I'd avoid all of the manual work and just use fedpkg.
 You can yum install it on Fedora and CentOS/RHEL.
 
 # Clone the package, anonymously (drop the -a if you're in the fedora
 # packager group).
 fedpkg clone -a foo
 
 # Change to the newly create package dir.
 cd foo
 
 # Have fedpkg download the source tarball(s) and extract it, applying
 # any patches as well.
 fedpkg prep
 
 At this point, you will have the package source in a subdirectory,
 typically %{name}-%{version}.  This will be the contents for rawhide.
 If you wish to see a different release, use fedpkg switch-branch
 prior to the fedpkg prep call (e.g. fedpkg switch-branch f14).
 
 One nice thing (IMO) about this method is that all the patches and
 source files are in one directory.  I always hated having things
 spread out in rpm's default {BUILD,SOURCES,SPECS} dirs (and I setup an
 ~/.rpmmacros to not use that layout).

I saw your post earlier.  But I'd never used fedpgk and familiarity
overruled the simplicity.  However, given your explanation, it looks
very simple and direct to use.  I'll give it a try the next time I'm
investigating a package.

Thanks.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Online source code browser

2010-11-14 Thread JD
Is there an online source code browser for Fedora Packages?

Thanx.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-14 Thread stan
On Sun, 14 Nov 2010 10:17:02 -0800
JD jd1...@gmail.com wrote:

 Is there an online source code browser for Fedora Packages?

I've never heard of such a thing, and it would be a big project.  I
hope someone knows of one, it would be convenient.

As far as I'm aware, the way to do this is to create a build tree in
your home directory,
rpmdev-setuptree
and then get the src.rpm package,
yumdownloader --source package name
and install it in the build tree, as a user.
rpm -ivh package name
Once this is done, move to the SPEC directory,
cd ~/rpmbuild/SPEC
and run the rpmbuild command to unpack everything.
rpmbuild -bp package name.spec
At this point the source will be unpacked in
~/rpmbuild/BUILD/package name
You can then look at it with the editor of your choice.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-14 Thread Todd Zullinger
JD wrote:
 Is there an online source code browser for Fedora Packages?

If you mean for the package spec files, patches, etc, then gitweb is
what you'd use:

http://pkgs.fedoraproject.org/gitweb/?p=puppet.git

Replace puppet with whatever package you want to view.

If you want to see the full source code for the package, with any
Fedora patches applied, then you want to use fedpkg to clone the
package repository and unpack it.  Something like 'yum install fedpkg'
and then:

fedpkg -a clone puppet
cd puppet
fedpkg prep

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
No one gets too old to learn a new way of being stupid.



pgpmDayF2IZGR.pgp
Description: PGP signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-14 Thread JD
On 11/14/2010 10:37 AM, stan wrote:
 On Sun, 14 Nov 2010 10:17:02 -0800
 JDjd1...@gmail.com  wrote:

 Is there an online source code browser for Fedora Packages?
 I've never heard of such a thing, and it would be a big project.  I
 hope someone knows of one, it would be convenient.

 As far as I'm aware, the way to do this is to create a build tree in
 your home directory,
 rpmdev-setuptree
 and then get the src.rpm package,
 yumdownloader --sourcepackage name
 and install it in the build tree, as a user.
 rpm -ivhpackage name
 Once this is done, move to the SPEC directory,
 cd ~/rpmbuild/SPEC
 and run the rpmbuild command to unpack everything.
 rpmbuild -bppackage name.spec
 At this point the source will be unpacked in
 ~/rpmbuild/BUILD/package name
 You can then look at it with the editor of your choice.
Right - except that requires googles of storage I do not have :)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-14 Thread JD
On 11/14/2010 10:53 AM, Todd Zullinger wrote:
 JD wrote:
 Is there an online source code browser for Fedora Packages?
 If you mean for the package spec files, patches, etc, then gitweb is
 what you'd use:

  http://pkgs.fedoraproject.org/gitweb/?p=puppet.git

 Replace puppet with whatever package you want to view.

 If you want to see the full source code for the package, with any
 Fedora patches applied, then you want to use fedpkg to clone the
 package repository and unpack it.  Something like 'yum install fedpkg'
 and then:

  fedpkg -a clone puppet
  cd puppet
  fedpkg prep

No - but thanks for the info.
I really wanted to look at the source code of not only
the pakchage (before patches applied by rpmbuild),
but also the patches themselves.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-14 Thread Todd Zullinger
JD wrote:
 On 11/14/2010 10:53 AM, Todd Zullinger wrote:
 JD wrote:
 Is there an online source code browser for Fedora Packages?
 If you mean for the package spec files, patches, etc, then gitweb is
 what you'd use:

  http://pkgs.fedoraproject.org/gitweb/?p=puppet.git

 Replace puppet with whatever package you want to view.

 If you want to see the full source code for the package, with any
 Fedora patches applied, then you want to use fedpkg to clone the
 package repository and unpack it.  Something like 'yum install fedpkg'
 and then:

  fedpkg -a clone puppet
  cd puppet
  fedpkg prep

 No - but thanks for the info.
 I really wanted to look at the source code of not only
 the pakchage (before patches applied by rpmbuild),
 but also the patches themselves.

That's what you get when you clone the package via fedpkg and run
prep.  It's similar to downloading the source rpm, installing it, and
running rpmbuild -bp -- with the benefit that you can easily check any
branch you want.

Any patches applied to the package will be in the git repo that fedpkg
clone creates.  So it sounds like exactly what you're asking for.  If
it's not, I'm clearly not understanding what you're after.

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
Politicians, Like Bombers, Seldom See Their Victims...
-- Dr. Donald Boudreaux, in his article, Losing Touch



pgpMM7fcB51Vw.pgp
Description: PGP signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Online source code browser

2010-11-14 Thread JD
On 11/14/2010 01:18 PM, Todd Zullinger wrote:
 JD wrote:
 On 11/14/2010 10:53 AM, Todd Zullinger wrote:
 JD wrote:
 Is there an online source code browser for Fedora Packages?
 If you mean for the package spec files, patches, etc, then gitweb is
 what you'd use:

   http://pkgs.fedoraproject.org/gitweb/?p=puppet.git

 Replace puppet with whatever package you want to view.

 If you want to see the full source code for the package, with any
 Fedora patches applied, then you want to use fedpkg to clone the
 package repository and unpack it.  Something like 'yum install fedpkg'
 and then:

   fedpkg -a clone puppet
   cd puppet
   fedpkg prep

 No - but thanks for the info.
 I really wanted to look at the source code of not only
 the pakchage (before patches applied by rpmbuild),
 but also the patches themselves.
 That's what you get when you clone the package via fedpkg and run
 prep.  It's similar to downloading the source rpm, installing it, and
 running rpmbuild -bp -- with the benefit that you can easily check any
 branch you want.

 Any patches applied to the package will be in the git repo that fedpkg
 clone creates.  So it sounds like exactly what you're asking for.  If
 it's not, I'm clearly not understanding what you're after.
You are right that what you suggest works;
but I really wanted to avoid using local storage.
That's why I would like to do it online.

Cheers,

JD

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines