[opensuse-buildservice] can't get layering to work
In my home project (home:rockowitz), I have 2 packages: ddcutil-test and ddcui-test. I want the application built in ddcui-test to use the library and development packages built in ddcutil.test. I've found a couple pieces of documentation that say I should add a repository element under the main <package> element, e.g. From the openSUSE:Build Service tutorial (https://en.opensuse.org/openSUSE:Build_Service_Tutorial): <repository name="openSUSE_Factory"> <path project="openSUSE:Factory" repository="standard" /> <arch>x86_64</arch> <arch>i586</arch> </repository> The example in the API documentation at https://build.opensuse.org/apidocs/project.xml shows something similar: <project name="superkde"> ... <repository name="kde4:factory" rebuild="transitive"> <path project="kde4" repository="factory"/> <releasetarget project="kde4" repository="snapshot" trigger="manual"/> <arch>i386</arch> <arch>x86_64</arch> </repository> </project> But when I try to include a <repository> element within <project> in my metadata file, I receive the following error when saving it: Error while saving the Meta file: package validation error: 4:0: ERROR: Element package has extra content: repository. Even something as simple the following triggers the error. <package name="ddcui-test" project="home:rockowitz"> <title>Test builds of ddcui</title> <description>For testing OBS builds of ddcui. Not for public use.</description> <repository></repository> </package> What am I missing? Sanford -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Tue, Nov 5, 2019 at 12:46 PM Sanford Rockowitz
In my home project (home:rockowitz), I have 2 packages: ddcutil-test and ddcui-test. I want the application built in ddcui-test to use the library and development packages built in ddcutil.test. I've found a couple pieces of documentation that say I should add a repository element under the main <package> element, e.g.
From the openSUSE:Build Service tutorial (https://en.opensuse.org/openSUSE:Build_Service_Tutorial):
<repository name="openSUSE_Factory"> <path project="openSUSE:Factory" repository="standard" /> <arch>x86_64</arch> <arch>i586</arch> </repository>
The example in the API documentation at https://build.opensuse.org/apidocs/project.xml shows something similar:
<project name="superkde"> ... <repository name="kde4:factory" rebuild="transitive"> <path project="kde4" repository="factory"/> <releasetarget project="kde4" repository="snapshot" trigger="manual"/> <arch>i386</arch> <arch>x86_64</arch> </repository> </project>
But when I try to include a <repository> element within <project> in my metadata file, I receive the following error when saving it:
Error while saving the Meta file: package validation error: 4:0: ERROR: Element package has extra content: repository.
Even something as simple the following triggers the error.
<package name="ddcui-test" project="home:rockowitz"> <title>Test builds of ddcui</title> <description>For testing OBS builds of ddcui. Not for public use.</description> <repository></repository> </package>
What am I missing?
Non-admins are not allowed to add custom repository sources. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Nov 05 2019, Sanford Rockowitz wrote:
I've found a couple pieces of documentation that say I should add a repository element under the main <package> element, e.g.
Where did you find that? <repository> is not valid inside the <package> element. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
See the original post which includes the location of an example: https://build.opensuse.org/apidocs/project.xml If <repository> is not valid inside the <package> element, where does it go? Trying to add it after </package> fails as well. Sanford On 11/05/2019 01:20 PM, Andreas Schwab wrote:
On Nov 05 2019, Sanford Rockowitz wrote:
I've found a couple pieces of documentation that say I should add a repository element under the main <package> element, e.g. Where did you find that? <repository> is not valid inside the <package> element.
Andreas.
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Nov 05 2019, Sanford Rockowitz wrote:
That is about <project>. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 05.11.19 um 18:46 schrieb Sanford Rockowitz:
In my home project (home:rockowitz), I have 2 packages: ddcutil-test and ddcui-test. I want the application built in ddcui-test to use the library and development packages built in ddcutil.test. I've found a couple pieces of documentation that say I should add a repository element under the main <package> element, e.g.
[snip]
But when I try to include a <repository> element within <project> in my metadata file, I receive the following error when saving it:
Hi, your packages live in the same project and as such use the same repository. So ddcui builds in that project will use the ddcutil builds from the project. Your problem is a different one: the ddcutil build and the ddcutil-test builds overwrite each other *because* they are in the same repository. You should rather create a subproject for those test builds. Greetings, Stephan -- Lighten up, just enjoy life, smile more, laugh more, and don't get so worked up about things. Kenneth Branagh -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Neal Gompa
-
Sanford Rockowitz
-
Stephan Kulow