Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Proper way to obtain source code for packages

  1. #1
    Join Date
    Dec 2010
    Location
    Columbia, SC
    Posts
    10

    Question Proper way to obtain source code for packages

    Hi all! I am a recently converted Ubuntu user ( well almost, still have Ubuntu on my workstation ). I was attempting to figure where Gnome's NetworkManager Applet was loading the panel icon images from which led me to attempt to figure out how to obtain the source for the binary package. I have had no luck so far. Here is what I have done up to this point.

    1. Enabled the OpenSUSE 11.3 Source Repository in YaST.
    2. Refreshed the Software Manager.
    3. Don't know what to do next

    What is the proper way to obtain source for installed packages ( or any package for that matter )?

    BTW, I did get the NM applet to pick up my custom icons through trial and error but I am interested expanding from my Java background by leaning to program for SUSE. So I'd really like to obtain the source code for the packages installed on my system.

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,789
    Blog Entries
    16

    Default Re: Proper way to obtain source code for packages

    You can browse the repos here
    Index of /distribution/11.3/repo
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Dec 2010
    Location
    Columbia, SC
    Posts
    10

    Default Re: Proper way to obtain source code for packages

    That's a step in the right direction, thanks. I was able to browse and find the source packages. However, even though I have the 11.3 source repository enabled, it does not show up in the list of repositories in the Software Manager program. I even gave the source repository a higher priority ( set priority to 98, all other repositories are 99 ) to see if that would help.

    Is this something that I will have to learn the YaST command line for?

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,789
    Blog Entries
    16

    Default Re: Proper way to obtain source code for packages

    What exactly are you trying to do because it's not a normal line questioning.
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Dec 2010
    Location
    Columbia, SC
    Posts
    10

    Default Re: Proper way to obtain source code for packages

    Yeah, I could be confusing the actual question just because I am a newb . Let me ask a different question which may be easier to answer.

    Assume that I download this package: http://download.opensuse.org/source/....8-5.1.src.rpm
    What is the next step I should take in order to actually browse the source code? Should I install the RPM and then extract the source code?

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,661

    Default Re: Proper way to obtain source code for packages

    mjwalfredo wrote:

    >
    > Is this something that I will have to learn the YaST command line for?
    >
    >


    Whenever I install a source package I use zypper for this. The zypper option
    is si (source-install)
    For example
    Code:
    sudo zypper si <package-name>
    Of course you have to replace <package-name> with the real name of the
    package.
    I hope I did not completely missunderstand what you want.
    For proper package builds you should make yourself familiar with rpmbuild.

    --
    openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
    3600M | 4GB Ram

  7. #7
    Join Date
    Dec 2010
    Location
    Columbia, SC
    Posts
    10

    Default Re: Proper way to obtain source code for packages

    Okay, so I just install the source RPM?

    Now will installing as you outlined actually build the binary or does it just extract the source ( or are there different options to pass to zypper to control that? )

    Thanks!

  8. #8
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,789
    Blog Entries
    16

    Default Re: Proper way to obtain source code for packages

    Do you know about:
    https://build.opensuse.org/

    Consider asking at IRC #opensuse-buildservice
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,661

    Default AW: Proper way to obtain source code for packages

    zypper only installs the source it does not compile anything (the same as on debian/ubuntu if you install the source packages with apt-get/aptitude or synaptic).

    You will find the code in /usr/src/packages

  10. #10
    Join Date
    Dec 2010
    Location
    Columbia, SC
    Posts
    10

    Default Re: AW: Proper way to obtain source code for packages

    That's what I needed to know. Thanks!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •