Re: [opensuse] How to build a package with additional options | YAST
Hmmm... 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: https://build.opensuse.org/package/files?package=curl&project=home%3Agregfreemyer%3Abranches%3ADISCONTINUED%3AopenSUSE%3A11.3 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: http://software.opensuse.org/download.html?project=home:gregfreemyer:branches:DISCONTINUED:openSUSE:11.3&package=curl 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 Greg On Sun, Feb 19, 2012 at 10:20 PM, Luis Gonzalez <lgonzalezsa@gmail.com> 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.
Luis
On Feb 16, 2012, at 12:13 PM, Greg Freemyer wrote:
On Thu, Feb 16, 2012 at 11:20 AM, Luis Gonzalez <lgonzalezsa@gmail.com> 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 = dpkg-buildpackage.
I post the reference for Ubuntu: = http://iamnearlythere.com/add-sftp-capabilities-to-curl
If someone knows how to do that without download the source, thank you = very much.
OpenSuse rules!
Luis Gonzalez
Luis,
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 uses.
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/ \ %else --without-ssl \ %if %{with mozilla_nss} --with-nss \ %endif %endif --with-gssapi=/usr/lib/mit \ --with-libssh2\ --libdir=%{_libdir} \ --enable-hidden-symbols \ --disable-static \ --enable-ares ==
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.
HTH Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retriev... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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. Luis On Feb 20, 2012, at 12:19 PM, Greg Freemyer wrote:
Hmmm...
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: https://build.opensuse.org/package/files?package=curl&project=home%3Agregfreemyer%3Abranches%3ADISCONTINUED%3AopenSUSE%3A11.3
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 Greg
On Sun, Feb 19, 2012 at 10:20 PM, Luis Gonzalez <lgonzalezsa@gmail.com> 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.
Luis
On Feb 16, 2012, at 12:13 PM, Greg Freemyer wrote:
On Thu, Feb 16, 2012 at 11:20 AM, Luis Gonzalez <lgonzalezsa@gmail.com> 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 = dpkg-buildpackage.
I post the reference for Ubuntu: = http://iamnearlythere.com/add-sftp-capabilities-to-curl
If someone knows how to do that without download the source, thank you = very much.
OpenSuse rules!
Luis Gonzalez
Luis,
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 uses.
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/ \ %else --without-ssl \ %if %{with mozilla_nss} --with-nss \ %endif %endif --with-gssapi=/usr/lib/mit \ --with-libssh2\ --libdir=%{_libdir} \ --enable-hidden-symbols \ --disable-static \ --enable-ares ==
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.
HTH Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retriev...
The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Greg Freemyer
-
Luis Gonzalez