Re: [opensuse] How to build a package with additional options | YAST

Thank you very much guys.

I downloaded your curl package and I try to rebuild in my system to test the curl support for sftp protocol.

After some basics test, like login with another user different from root, curl works fine:
user01@OPENSUSE113:~> curl -V
curl 7.24.0 (x86_64-unknown-linux-gnu) libcurl/7.24.0 OpenSSL/1.0.0 zlib/1.2.3 libssh2/1.4.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz

Thank you for show me an example to use osc OBS, I'm reading about it.

I was trying to rebuild the package using osc to make it work with root user and I realized there is something wrong with my system.
I have a few options: upgrade my opensuse to 12.1 or studying and learn how to find out what went wrong, I like to choose the hard way.

I wrote to the curl list and Daniel Stenberg recommend to put --enable-debug --disable-shared in configure options to trace the error.

Advice/tips are welcome.


On Feb 20, 2012, at 12:19 PM, Greg Freemyer wrote:


That's a little tougher from the OBS side of things.

Since 11.3 is discontinued you can't just follow the steps I outlined.
i.e There is no longer a build target defined.

I can't even get a local build of curl from 11.3 to work for some
reason (out of date or missing keys it appears.)

So I just used the WebUI to branch a copy.

I didn't change anything yet, but per the specfile libssh2 should be supported:

New packages are still building on OBS, but once that is done in a few
minutes you should be able to download freshly rebuilt packages from:

If you would verify if those do or don't have libssh2 support, I can
help try to get you rpm's with the right support.

Good Luck

On Sun, Feb 19, 2012 at 10:20 PM, Luis Gonzalez <lgonzalezsa@xxxxxxxxx> wrote:
Thank you very much Greg!

About your first question, in my opensuse 12.1 installation its working, but in older installation of opensuse 11.3, my curl was not enabled by default with
I'm reading OSB today.

Thank you for your help.


On Feb 16, 2012, at 12:13 PM, Greg Freemyer wrote:

On Thu, Feb 16, 2012 at 11:20 AM, Luis Gonzalez <lgonzalezsa@xxxxxxxxx> wrote:
Hello list,

I'm trying to figure out, how can I build the curl package with the =
option "--with-libssh2" using YAST or another command line tool (CLI).
I can do this downloading, extracting and using the source code with =
well known procedures like configure make make install; but I want to =
know if OpenSuse have a CLI tool in similar way like Ubuntu do with =

I post the reference for Ubuntu: =

If someone knows how to do that without download the source, thank you =
very much.

OpenSuse rules!

Luis Gonzalez


First, are you sure it's not working now? If not, I suspect its a
bug, so you can throw that into bugzilla.

Anyway, using standard rpm cli tools, Anders is an expert on that and
he gave me the instructions years ago. I'm afraid I've misplaced them
by now.

These days, I use OBS to do the same thing. OBS is unique to opensuse
(with exceptions), so learning it has less use cases than the rpm cli
tools, but OBS is so much more functional than the rpm tools that it
is the way most opensuse maintainers do things now.

I just ran thru your situation as a test:

mkdir ~/obs
cd ~/obs
osc co openSUSE:12.1:Update curl
cd ~/obs/openSUSE:12.1:Update/curl
osc build

Will locally build the rpm as it exists in the update repo. It does
it inside a chroot jail, so it will download a lot of packages that
you already have. The copy it is getting is just for osc build to
use, and they are not shared with your main set of rpms that zypper

Normally to add a feature you can then edit the specfile and add
--with-libssh2 to the ./configure statement as an example.

But, looking at the curl specfile I see:

./configure \
--prefix=%{_prefix} \
--enable-ipv6 \
%if %{with openssl}
--with-ssl \
--with-ca-path=/etc/ssl/certs/ \
--without-ssl \
%if %{with mozilla_nss}
--with-nss \
--with-gssapi=/usr/lib/mit \
--libdir=%{_libdir} \
--enable-hidden-symbols \
--disable-static \

As you see --with-libssh2 is in the configure statement already, so it
should be in the official rpm.

I didn't do any testing to verify if it works or not.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
CNN/TruTV Aired Forensic Imaging Demo -

The Norcross Group
The Intersection of Evidence & Technology
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx