Has anyone had any success adding a source Repo? I’ve tried and keep getting an error that media.1 cannot be found. I’ve tried this mirror: Index of /Linux/opensuse/factory/repo/src as well as others. It has media.2. Anyone have any ideas about this? It would make grabbing build-deps a lot easier.
You don’t want the “src” repo unless you are intending on rebuilding the rpms. “src” is a source rpm that requires rebuilding with “rpm build --rebuild /packagename” and an install following that.
Here are the repos I have todate:
jim@linux-6ecz:~> zypper ls
| Alias | Name
| Enabled | Refresh | Type
—±----------------------------------------------±------------------------------------
----------±--------±--------±------
1 | Factory | Factory
| Yes | Yes | yast2
2 | Gnome | Gnome
| Yes | Yes | rpm-md
3 | KDE3/openSUSE_Factory/ | KDE3/openSUSE_Factory/
| Yes | Yes | rpm-md
4 | KDE4:/Community/openSUSE_Factory/ | KDE4:/Community/openSUSE_Factory/
| Yes | Yes | rpm-md
5 | KDE4:/Factory:/Desktop/openSUSE_Factory/ | KDE4:/Factory:/Desktop/openSUSE_Fact
ory/ | Yes | Yes | rpm-md
6 | KDE4:/Factory:/Extra-Apps/openSUSE_Factory/ | KDE4:/Factory:/Extra-Apps/openSUSE_F
actory/ | Yes | Yes | rpm-md
7 | KDE:/KDE3/openSUSE_Factory/ | KDE:/KDE3/openSUSE_Factory/
| No | No | rpm-md
8 | KDE:/KDE4:/Community/openSUSE_Factory/ | KDE:/KDE4:/Community/openSUSE_Factor
y/ | No | No | rpm-md
9 | KDE:/KDE4:/Factory:/Desktop/openSUSE_Factory/ | KDE:/KDE4:/Factory:/Desktop/openSUSE _Factory/ | No | No | rpm-md
10 | KDE:/KDE4:/Factory:/Extra-Apps | KDE:/KDE4:/Factory:/Extra-Apps | No | No | rpm-md
11 | Packman | Packman | Yes | Yes | rpm-md
12 | Smart | Smart | Yes | Yes | rpm-md
13 | Videoland | Videoland | Yes | Yes | rpm-md
14 | Wine | Wine | Yes | Yes | rpm-md
15 | anubisg1 | anubisg1 | Yes | Yes | rpm-md
16 | mozilla:/Factory/openSUSE_Factory/ | mozilla:/Factory/openSUSE_Factory/ | Yes | Yes | rpm-md
17 | non-oss | non-oss | Yes | Yes | yast2
18 | openSUSE-dvd 11.1-0 | openSUSE-dvd 11.1-0 | No | No | yast2
19 | update/11.1/_1 | update/11.1/ | Yes | Yes | rpm-md
jim@linux-6ecz:~>
oss is Index of /pub/opensuse/factory/repo/oss
non-oss is an 11.0 repo to get acroread, etc.; 11.1 is not up yet.
update/11.1 got me a zypper update.
use Additional YaST Package Repositories - openSUSE and Package Repositories - openSUSE to find the rest of those.
BTW, this AM there are some update rpms available in the Factory tree; looks like it has finally been sync’d to the build service.
I’ll wait until tomorrow & do a clean install of 11.1B3 and start over.
Good luck…
I don’t want to build an RPM but I do want to build an application from source. The best option I can find in zypper to help with this is the install-source or is, that way it downloads the source but also the build dependencies. Right now, I keep getting an error that the package I want (ktorrent) is not available, I know the binary version is (the one without DHT) and the one that keeps crashing if I enable watch folders (necessary when I have ted running in the background and I am out during the day and silently start grabbing torrents). The thing is I can’t seem to track down one of the dependencies, make keeps complaining about kdeui missing. In apt-get based distros I just use apt-get build-deps the closest equivalent I could find was “is” option on zypper.
Hi,
I would suggest to use suse’s build script instead of installing an source RPM, because build builds the RPM in a chroot environment so that on your system not all *-devel packages must be installed. Just download the source rpm insert your DVD (where you installed suse from) and run “build <src rpm>”. look into the man page how to specify the build root and how to specify where build can find the needed RPMs for building (not all devel packages are on the DVD).
hope this helps
Add the Packman repo
use his ktorrent - KDE BitTorrent Client
and add:
ktorrent-feature-dht - Virtual Package for ktorrent with DHT support
Virtual package that contains no files but explictly requires the Packman build of ktorrent, that includes DHT support.
Avoids accidental upgrading to a non-DHT-enabled build of ktorrent without warning the user.
then you should be in good shape; I think that’s what you are looking for;)
packman hasn’t build ktorrent-dht yet. i’ll give the build script a shot though, I don’t know anything about it yet. Thanks for the help.
The build source RPM is nice, but still not quite what I want and unfortunately the dvd also is missing some build dependencies and OpenSuse’s package is not the latest. I really just want the equivalent of the apt-get command ‘build-deps’ is there anything like this for OpenSuse?
found my answer, but leads back to original question! command is zypper si -d <packagename>. Package not found. Because I can’t load the src repo. I tried manually from src.rpm but it says the file cannot be found. Does anyone know why src repo can’t be added? it’s there, but it seems to have a dir media.2 instead of the necessary media.1.
If you build the src rpm with:
“rpmbuild --rebuild /pathtosrcrpm/packagename.src.rpm”
it will build the rpm & it shouldl be found in one of the folders in /usr/src/packages/RPMS/.
There, you can install it with yast or the command line’s “rpm -ihv /packagename.rpm” or “rpm -Uhv /packagename.rpm” if it’s an upgrade.
Good luck…
As a long time Debian sysadmin myself, I can feel the frustration brewing here. “My kingdom for apt-get build-dep!”
Here’s what I did, as I had to build mutt with smtp capability:
zypper ar Index of /distribution/11.0/repo/src-oss/suse srcoss
zypper update -r srcoss ← don’t think this is necessary, but it’s a habit…
zypper source-install -r srcoss mutt (See end of message for output)
I’m disappointed that this information is so hard to find on the OpenSuSE forums and wiki. Sometimes a provided RPM is not configured for the purpose we need. A howto for doing this, from soup to nuts, would be great.
Let me know if it works for you. It didn’t appear to get all the deps for me, but we’ll see.
I’m pleased with the progress the OpenSuSE community has made, especially with the package management and the deltas… That’s nice stuff. I also like the “image” installation pieces from the DVD. Speeds along installation for sure. Still prefer Debian (and Arch, FreeBSD, Slackware), partly because the documentation for re-building things is more readily accessible. Please prove me wrong, and show me that I’ve just over-looked it
I did see this:
SUSE Build Tutorial - openSUSE
Not quite a howto for those new to the SuSE way
Anyhoo, good luck
-Fordboy0
=== zypper output ===
Reading installed packages…
The following source package is going to be installed:
mutt
Overall download size: 2.3 M. After the operation, additional 2.4 M will be used.
Continue? [YES/no]:
Installing source package mutt-1.5.17-63.1
Source package mutt-1.5.17-63.1 successfully installed.
Thanks for the post. I haven’t tried your suggestion yet because I’d rather not mix the repos. I should probably just make a bug report about 11.1 not accepting src repos.
Well after trying the bug report method the response was that it’s not a valid repo. I can’t find a valid src 11.1 or factory repo though. I tried this one Index of /factory/repo/src too. Pretty frustrating. Anyway, thanks fordboy folowed your recommendation and got it built.