{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/open-build-service/issues/1106","labels_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/1106/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/1106/comments","events_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/1106/events","html_url":"https://github.com/openSUSE/open-build-service/issues/1106","id":105176474,"number":1106,"title":"Things needed to make bs_srcserver recognize new recipe type","user":{"login":"jengelh","id":8861948,"avatar_url":"https://avatars.githubusercontent.com/u/8861948?v=3","gravatar_id":"","url":"https://api.github.com/users/jengelh","html_url":"https://github.com/jengelh","followers_url":"https://api.github.com/users/jengelh/followers","following_url":"https://api.github.com/users/jengelh/following{/other_user}","gists_url":"https://api.github.com/users/jengelh/gists{/gist_id}","starred_url":"https://api.github.com/users/jengelh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jengelh/subscriptions","organizations_url":"https://api.github.com/users/jengelh/orgs","repos_url":"https://api.github.com/users/jengelh/repos","events_url":"https://api.github.com/users/jengelh/events{/privacy}","received_events_url":"https://api.github.com/users/jengelh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T08:56:06Z","updated_at":"2015-09-10T07:57:34Z","closed_at":"2015-09-10T07:57:34Z","body":"In https://github.com/openSUSE/obs-build/pull/199 , recognition for a /build.collax$/ recipe file has been added. Despite this, `osc r` on a bspkg still yields \"broken: no spec/dsc/kiwi file\", so apparently bs_srcserver needs an additional change. Taking Arch Linux as an example to work off, I attempted to discover potential locations requiring change by looking for PKGBUILD:\r\n```\r\n$ grep -e PKGBUILD -A3 -B3\r\nsrc/backend/bs_sched-      } elsif ($info && $info->{'file'}) {\r\nsrc/backend/bs_sched-   if ($info->{'file'} =~ /\\.(spec|dsc|kiwi|livebuild)$/) {\r\nsrc/backend/bs_sched-     $packtype = $1;\r\nsrc/backend/bs_sched:   } elsif ($info->{'file'} =~ /PKGBUILD$/) {\r\nsrc/backend/bs_sched-     $packtype = 'arch';\r\nsrc/backend/bs_sched+   } elsif ($info->{'file'} =~ /build.collax$/) {\r\nsrc/backend/bs_sched+     $packtype = 'collax';\r\n--\r\nsrc/backend/bs_srcserver-  return @{$files{'_preinstallimage'}} if $ext ne 'kiwi' && keys(%files) == 1 && $files{'_preinstallimage'};\r\nsrc/backend/bs_srcserver-\r\nsrc/backend/bs_srcserver-  if ($ext eq 'arch') {\r\nsrc/backend/bs_srcserver:    return @{$files{'PKGBUILD'}} if $files{'PKGBUILD'};\r\nsrc/backend/bs_srcserver-    return (undef, undef);\r\nsrc/backend/bs_srcserver-  }\r\nsrc/backend/bs_srcserver-\r\n--\r\nsrc/backend/bs_worker-  push @d, map {\"RPMS/$_\"} sort(ls(\"$buildroot/.build.packages/RPMS\"));\r\nsrc/backend/bs_worker-  push @d, 'SRPMS';\r\nsrc/backend/bs_worker-  @d = ('DEBS') if $buildinfo->{'file'} =~ /\\.dsc$/;\r\nsrc/backend/bs_worker:  @d = ('ARCHPKGS') if $buildinfo->{'file'} =~ /PKGBUILD$/;\r\nsrc/backend/bs_worker-  @d = ('KIWI') if $buildinfo->{'file'} =~ /\\.kiwi$/;\r\nsrc/backend/bs_worker-  push @d, 'OTHER';\r\nsrc/backend/bs_worker-  for my $d ('.', @d) {\r\n```\r\nIn one instance, I added build.collax recognition, in the other, it did not seem necessary. However, bs_srcserver continues to ignore the recipe file. What else is needed?\r\nIt appears that bs_srcserver is not using obs-build's .pm modules to look for potential recipes."},"comment":{"url":"https://api.github.com/repos/openSUSE/open-build-service/issues/comments/139152593","html_url":"https://github.com/openSUSE/open-build-service/issues/1106#issuecomment-139152593","issue_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/1106","id":139152593,"user":{"login":"adrianschroeter","id":1067148,"avatar_url":"https://avatars.githubusercontent.com/u/1067148?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianschroeter","html_url":"https://github.com/adrianschroeter","followers_url":"https://api.github.com/users/adrianschroeter/followers","following_url":"https://api.github.com/users/adrianschroeter/following{/other_user}","gists_url":"https://api.github.com/users/adrianschroeter/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianschroeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianschroeter/subscriptions","organizations_url":"https://api.github.com/users/adrianschroeter/orgs","repos_url":"https://api.github.com/users/adrianschroeter/repos","events_url":"https://api.github.com/users/adrianschroeter/events{/privacy}","received_events_url":"https://api.github.com/users/adrianschroeter/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T07:57:34Z","updated_at":"2015-09-10T07:57:34Z","body":"bs_srcserver is using the build script parts below it's build/ directory. \"osc r\" reports only the scheduler state, better debug first with curl $src_server/getprojpack\r\n\r\nOr even with the \"obs_admin --parse-build-desc\" tool."}}