[opensuse-buildservice] importing a new distro
Hi, What is the scheduler trying to tell me with 'no build type defined or detected' while importing a new distro and trying to start a first build? Distro is rpm based and prjconf 'Preinstall:' is adequate to get the rpm running. Binaries are imported OK. Repotype is defined as well as few mandatory rpm macros in the prjconf. Hmm? -- Janne -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thu, Jun 04, 2015 at 01:57:44PM -0700, Janne Karhunen wrote:
Hi,
What is the scheduler trying to tell me with 'no build type defined or detected' while importing a new distro and trying to start a first build?
Distro is rpm based and prjconf 'Preinstall:' is adequate to get the rpm running. Binaries are imported OK. Repotype is defined as well as few mandatory rpm macros in the prjconf. Hmm?
If the prjconf does not define a build type, the code in Build.pm tries to guess it from the preinstall packages: if (grep {$_ eq 'rpm'} @{$config->{'preinstall'} || []}) { $config->{'type'} = 'spec'; } elsif (grep {$_ eq 'debianutils'} @{$config->{'preinstall'} || []}) { $config->{'type'} = 'dsc'; } elsif (grep {$_ eq 'pacman'} @{$config->{'preinstall'} || []}) { $config->{'type'} = 'arch'; } else { $config->{'type'} = 'UNDEFINED'; } So your preinstall definition does not seem to include 'rpm' itself. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Jun 5, 2015 at 2:33 AM, Michael Schroeder
If the prjconf does not define a build type,
How would this get defined? I can't see anything from any prjconf that could be related.
the code in Build.pm tries to guess it from the preinstall packages:
if (grep {$_ eq 'rpm'} @{$config->{'preinstall'} || []}) { $config->{'type'} = 'spec'; } elsif (grep {$_ eq 'debianutils'} @{$config->{'preinstall'} || []}) { $config->{'type'} = 'dsc'; } elsif (grep {$_ eq 'pacman'} @{$config->{'preinstall'} || []}) { $config->{'type'} = 'arch'; } else { $config->{'type'} = 'UNDEFINED'; }
So your preinstall definition does not seem to include 'rpm' itself.
It does actually, it's my experimental distro generated by Yocto that I'm trying to import. Manually installing Preinstall: packages into a directory will give me a functional rpm. Although must admit it is rpm5 rpm for now.. ... Preinstall: rpm rpm-build rpm-common rpm-libs ... -- Janne -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Janne Karhunen
-
Michael Schroeder