[opensuse-packaging] OBS build issue when introduce libiscsi to OBS
Hi experts, I find this mail list in the packaging training presentation, would you please help me solve a build problem in OBS? This is my first time introducing new package to OBS, I want to create a package for libiscsi, I did such things: 1 download libiscsi from github(https://github.com/sahlberg/libiscsi), remove .git and gitignore. 2 tar the source folder,get libiscsi-1.15.0.tar.gz. Use libiscsi/packaging/RPM/makerpms.sh to generate the spec file. 3 upload the tar file and spec file to my branch My branch is : https://build.opensuse.org/package/show/home:LSZhu/libiscsi When build, get an error in the build log: 79s] Processing files: libiscsi-testsuite-1.15.0-6.1.x86_64 [ 79s] error: File not found: /home/abuild/rpmbuild/BUILDROOT/libiscsi-1.15.0-6.1.x86_64/usr/bin/iscsi-test-cu What I tried: I have tried to delete iscsi-test-cu from spec file, because I did not install it when I build locally using "make". I tried to change some path Not working, this is my first time packaging. What I know for sure is, if I try to run "./autogen, ./configure and make" I can make it. Any help are quite welcome, thanks for your time! Thanks for your help BR Zhu Lingshan
Hi Zhu, I always like to see brave people set off for a new adventure. I'm glad you're working on your first packaging adventure. And you're doing great so far. I actually haven't looked specifically at the cause of your problem; I haven't looked at the content of the sources and the details of the build process. But what I recommend that you do now -- before asking one of your friendly packaging buddies for help -- is to look at what others have already done. For example: osc search libiscsi You will see that there are a few other attempts to package libiscsi already. Those other copies of the package, from other similar packagers, should be very helpful for you. I suspect that you will find an answer to the specific question that you have, as well as answers to future questions. I don't know exactly your motivation for wanting to build libiscsi, but it's possible that you simply want to have the end-result: a usable RPM package. If that's your goal, you might just want to take the RPMs from one of these other prjects. That's what's so remarkably helpful about OBS: sharing knowledge, sharing results, and reducing work. If one of your objectives is simply to learn how to package, you're doing a great job getting started. The examples from the other existing libiscsi packages should be a great guide for you.
On 11/19/2015 at 02:58 AM, Zhu Lingshan <lszhu@suse.com> wrote: Hi experts,
I find this mail list in the packaging training presentation, would you please help me solve a build problem in OBS? This is my first time introducing new package to OBS, I want to create a package for libiscsi, I did such things:
1 download libiscsi from github(https://github.com/sahlberg/libiscsi), remove .git and gitignore. 2 tar the source folder,get libiscsi-1.15.0.tar.gz. Use libiscsi/packaging/RPM/makerpms.sh to generate the spec file. 3 upload the tar file and spec file to my branch
My branch is : https://build.opensuse.org/package/show/home:LSZhu/libiscsi
When build, get an error in the build log:
79s] Processing files: libiscsi-testsuite-1.15.0-6.1.x86_64 [ 79s] error: File not found: /home/abuild/rpmbuild/BUILDROOT/libiscsi-1.15.0-6.1.x86_64/usr/bin/iscsi-tes t-cu
What I tried: I have tried to delete iscsi-test-cu from spec file, because I did not install it when I build locally using "make". I tried to change some path
Not working, this is my first time packaging.
What I know for sure is, if I try to run "./autogen, ./configure and make" I can make it.
Any help are quite welcome, thanks for your time!
Thanks for your help BR Zhu Lingshan
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2015-11-19 10:58, Zhu Lingshan wrote:
This is my first time introducing new package to OBS, I want to create a package for libiscsi, I did such things:
1 download libiscsi from github(https://github.com/sahlberg/libiscsi), remove .git and gitignore. 2 tar the source folder,get libiscsi-1.15.0.tar.gz. Use libiscsi/packaging/RPM/makerpms.sh to generate the spec file.
Github already creates tarballs which you can just download, and then specify as Source: line in the .spec file, the following URL https://github.com/sahlberg/libiscsi/archive/1.15.0.tar.gz I am sending you a SR that also includes the shared library packaging guideline implementation and so on. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Jan Engelhardt <jengelh@inai.de> writes:
Github already creates tarballs which you can just download, and then specify as Source: line in the .spec file, the following URL
https://github.com/sahlberg/libiscsi/archive/1.15.0.tar.gz#/libiscsi-1.15.0.... to give it a sensible name. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Monday 23 of November 2015 13:28:03 Jan Engelhardt wrote:
On Thursday 2015-11-19 10:58, Zhu Lingshan wrote:
This is my first time introducing new package to OBS, I want to create a package for libiscsi, I did such things:
1 download libiscsi from github(https://github.com/sahlberg/libiscsi), remove .git and gitignore. 2 tar the source folder,get libiscsi-1.15.0.tar.gz. Use libiscsi/packaging/RPM/makerpms.sh to generate the spec file.
Github already creates tarballs which you can just download, and then specify as Source: line in the .spec file, the following URL
https://github.com/sahlberg/libiscsi/archive/1.15.0.tar.gz
I am sending you a SR that also includes the shared library packaging guideline implementation and so on. So
so is there - https://build.opensuse.org/request/show/345865 - in other words you did not only got advice but also member of openSUSE community helped you - so my qyestion is: what are you waiting for? Cheers Martin
Sorry I replied Jan but not CC the mail list. The reason is I still need more time to merge the patch. It is a proposal and requirement from virtualization team to introduce libiscsi to SLES. That's why I created the package in OBS first. Then I will port the package to IBS, so I can not always use tarball from github in the patch, we should always review any changes in IBS to keep the quality of code. But I will merge the patch once the package in IBS done Thanks Jan ! Thanks, BR Zhu Lingshan On 11/25/2015 08:01 PM, Martin Pluskal wrote:
On Monday 23 of November 2015 13:28:03 Jan Engelhardt wrote:
On Thursday 2015-11-19 10:58, Zhu Lingshan wrote:
This is my first time introducing new package to OBS, I want to create a package for libiscsi, I did such things:
1 download libiscsi from github(https://github.com/sahlberg/libiscsi), remove .git and gitignore. 2 tar the source folder,get libiscsi-1.15.0.tar.gz. Use libiscsi/packaging/RPM/makerpms.sh to generate the spec file. Github already creates tarballs which you can just download, and then specify as Source: line in the .spec file, the following URL
https://github.com/sahlberg/libiscsi/archive/1.15.0.tar.gz
I am sending you a SR that also includes the shared library packaging guideline implementation and so on. So
so is there - https://build.opensuse.org/request/show/345865 - in other words you did not only got advice but also member of openSUSE community helped you - so my qyestion is: what are you waiting for?
Cheers
Martin
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2015-11-26 04:06, Zhu Lingshan wrote:
It [libiscsi] is a proposal and requirement from virtualization team to introduce libiscsi to SLES. That's why I created the package in OBS first. Then I will port the package to IBS, so I can not always use tarball from github in the patch
What precludes you from using the github tar? (I'll speculate that there might be some file with licensing issues in the tar..) The Build Service is indifferent to what files you give it, it is just a comparatively plain storage tank. As such, you can always replace the tar at any time in the process with a copy of what you need; this is largely independent of the .spec contents. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dne 26.11.2015 v 4:06 Zhu Lingshan napsal(a):
Sorry I replied Jan but not CC the mail list. The reason is I still need more time to merge the patch. I am not sure I follow you here It is a proposal and requirement from virtualization team to introduce libiscsi to SLES. It is requirement for all SLE packages that they are also present if openSUSE That's why I created the package in OBS first. Then I will port the package to IBS, so I can not always use tarball from github in the patch, we should always review any changes in IBS to keep the quality of code. But I will merge the patch once the package in IBS done Again I am not sure I follow
Meanwhile https://build.opensuse.org/request/show/346519 got accepted to Tumbleweed Cheers Martin Pluskal
participants (6)
-
Andreas Schwab
-
Craig Gardner
-
Jan Engelhardt
-
Martin Pluskal
-
Martin Pluskal
-
Zhu Lingshan