[opensuse-buildservice] Need some help with project setup etc.
Hi, I could use some help with the build service. I would eventually like to get perlcritic working in OBS. percritic depends on various other modules, one of them being B-Keywords. B-Keywords is a simple Perl module, and thus I figured it would be a good place for me to start learning about the build service and how to use it. I've managed to create my home project and somehow I even managed to create a perlcritic sub-project. ALthough I am not sure how I did this. Now my questions: 1.) Since B-Keywords is just Perl how can I manage to create a noarch package? 2.) As far as I can tell perl-B-Keywords sits at the top level of my home project. However, I'd like it to be a sub-project. How can I move it to be a sub-project? 3.) On my local build I get the error "error: failed to stat /sys/kernel/debug: No such file or directory" what does this mean? 4.) On the server the build fails apparently due to: "perl-B-Keywords-1.09-3.1.i586.rpm: directories not owned by a package:", what does this mean and how can I fix it. The project is home:rjschwei (https://build.opensuse.org/project/show?project=home%3Arjschwei) Help is much appreciated. Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU Software Engineer Consultant LINUX rschweikert@novell.com 781-464-8147 Novell Making IT Work As One -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
I've managed to create my home project and somehow I even managed to create a perlcritic sub-project. ALthough I am not sure how I did this.
Now my questions: 1.) Since B-Keywords is just Perl how can I manage to create a noarch package? In the spec file "BuildArch: noarch" should do it. But note that not just the files but also the _file structure_ has to be noarch. I think
2.) As far as I can tell perl-B-Keywords sits at the top level of my home project. However, I'd like it to be a sub-project. How can I move it to be a sub-project? To create sub-projects of your home project it is easiest just to use
3.) On my local build I get the error "error: failed to stat /sys/kernel/debug: No such file or directory" what does this mean? This is just the build script doing routine checks, shouldn't be fatal. 4.) On the server the build fails apparently due to: "perl-B-Keywords-1.09-3.1.i586.rpm: directories not owned by a package:", what does this mean and how can I fix it. Everything on the system should be owned by some package or other. Your
Robert Schweikert wrote: the suse perl setup is arch-independent so you should be OK. the link in the webclient, otherwise to create use "osc meta -e prj". Use "osc copypac" or similar to move it to the new project (copy then delete). package creates the directory |/usr/lib/perl5/vendor_perl/5.10.0/B and so should own it, i.e. it should appear in your package filelist (possibly prefixed by %dir if you do not want to own other files in the directory).|
Help is much appreciated.
Thanks, Robert
Regards, Tejas -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, MasterPatricko wrote:
Robert Schweikert wrote:
I've managed to create my home project and somehow I even managed to create a perlcritic sub-project. ALthough I am not sure how I did this.
Now my questions: 1.) Since B-Keywords is just Perl how can I manage to create a noarch package?
In the spec file "BuildArch: noarch" should do it. But note that not just the files but also the _file structure_ has to be noarch. I think the suse perl setup is arch-independent so you should be OK.
Added this to my spec file
2.) As far as I can tell perl-B-Keywords sits at the top level of my home project. However, I'd like it to be a sub-project. How can I move it to be a sub-project?
To create sub-projects of your home project it is easiest just to use the link in the webclient, otherwise to create use "osc meta -e prj". Use "osc copypac" or similar to move it to the new project (copy then delete).
Thanks, got this to work and now have the structure I want.
3.) On my local build I get the error "error: failed to stat /sys/kernel/debug: No such file or directory" what does this mean?
This is just the build script doing routine checks, shouldn't be fatal.
4.) On the server the build fails apparently due to: "perl-B-Keywords-1.09-3.1.i586.rpm: directories not owned by a package:", what does this mean and how can I fix it.
Everything on the system should be owned by some package or other. Your package creates the directory |/usr/lib/perl5/vendor_perl/5.10.0/B and so should own it, i.e. it should appear in your package filelist (possibly prefixed by %dir if you do not want to own other files in the directory).|
Added the directory to the file list. Thanks for the help. Hopefully this will work now. Robert
Help is much appreciated.
Thanks, Robert
Regards,
Tejas
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Software Engineer Consultant LINUX rschweikert@novell.com 781-464-8147 Novell Making IT Work As One -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
MasterPatricko
-
Robert Schweikert