nikhil anjane
nikhil anjane

Reputation: 1

Yocto project rabbitmq-server recipe build

I want to add rabbitmq-server recipe to my yocto project. As mentioned on http://layers.openembedded.org/ the rabbitmq-server is a part of meta-cloud-service/meta-opestack layer. I have cloned the layer in my project and added the required paths to bblayers.conf. Now, when I try to build the rabbitmq-server recipe by bitbake rabbitmq-server command, I get following response as error:

WARNING: base-files-3.0.14-r89 do_fetch: Failed to fetch URL file://nsswitch.conffile://print_issue.sh, attempting MIRRORS if available ERROR: base-files-3.0.14-r89 do_fetch: Fetcher failure: Unable to find file file://nsswitch.conffile://print_issue.sh anywhere.

ERROR: base-files-3.0.14-r89 do_fetch: Fetcher failure for URL: 'file://nsswitch.conffile://print_issue.sh'. Unable to fetch URL from any source. ERROR: base-files-3.0.14-r89 do_fetch: Function failed: base_do_fetch

Can anybody help me in solving this issue?

Upvotes: 0

Views: 846

Answers (2)

Topper
Topper

Reputation: 500

I use RabbitMQ but didn't manage to install it within meta-openstack. I did install all needed components with meta-erlang Note you should adjust version of erlang and elixir with somethink like follow code in your build/local.conf

PREFERRED_VERSION_erlang = "22%" #instead of latest v.23
PREFERRED_VERSION_erlang-native = "22%"

PREFERRED_VERSION_elixir = "1.10.0"
PREFERRED_VERSION_elixir-native = "1.10.0"

That way I've manage to install and use RabbitMQ-server v3.8.21-r1 even at Yocto 2.6 Thud which is fairly outdated.

Upvotes: 2

Jussi Kukkonen
Jussi Kukkonen

Reputation: 14587

Multiple layers are modifying the base-files recipe and together they are making a mess of it.

The meta-openstack SRC_URI modifications use this

SRC_URI += "file://nsswitch.conf"

This will ensure that a space is added before the added string, but does not leave an empty space after the string (like e.g. the original base-files recipe does).

After this another layer probably does

SRC_URI_append = "file://print_issue.sh \
                 "

or something like it, assuming there's a space in the end of SRC_URI, and the URLs get mushed together. One or both of the recipe modifications should be fixed so this does not happen.

Upvotes: 0

Related Questions