Customization for nginx
Hi
With jethro, I used to use the following .bbappend to use my config for nginx:
<file name="nginx_1.9.5.bbappend">FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
</file>
My nginx.conf was inside the corresponding files directory.
Since krogoth, which uses nginx 1.9.14, this does not seem to work any more. My config file is not used any more. The .bbappend file how has the name nginx_1.9.14.bbappend of course.
What could be the reason for this?
Or, alternatively: where can I debug this?
Signature · 2 lines
Greetings Elias
This is not an answer to your question but it can be helpful:
You can use a wildcard for version in your bbappend file. If you rename it to:
nginx_1.9.%.bbappend
this will work for both 1.9.5 and 1.9.14.
For debugging I can give you a hint:
try using "-v" switch for bitbake when baking your nginx recipe- this stands for "verbose".
Best regards,
Piotr Lewicki
Quoted 19 lines · Elias Diem
Hi
With jethro, I used to use the following .bbappend to use my config for nginx:
<file name="nginx_1.9.5.bbappend">
FILESEXTRAPATHS_prepend:= "${THISDIR}/files:"</file>
My nginx.conf was inside the corresponding files directory.
Since krogoth, which uses nginx 1.9.14, this does not seem to work any more. My config file is not used any more. The .bbappend file how has the name nginx_1.9.14.bbappend of course.
What could be the reason for this?
Or, alternatively: where can I debug this?
Hi Piotr
Quoted 7 lines · piotr.lewicki
This is not an answer to your question but it can be helpful:
You can use a wildcard for version in your bbappend file. If you rename it to:nginx_1.9.%.bbappend
this will work for both 1.9.5 and 1.9.14.
Thanks for this hint.
I realized that krogoth delivers two recipes for nginx:
1.9.14 and 1.8.1
And it picks 1.8.1. That's why it does not work.
Now I tried to set
PREFERRED_PROVIDER_nginx = "nginx-1.9.14"
But this does not seem to work.
How do you prefer a provider out of two different versions of a package?
Signature · 2 lines
Greetings Elias
"How do you prefer a provider out of two different versions of a package?"
PREFERRED_VERSION
http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#var-PREFERRED_VERSION
________________________________
Notice to recipient: This email is meant for only the intended recipient of the transmission, and may be a communication privileged by law, subject to export control restrictions or that otherwise contains proprietary information. If you receive this email by mistake, please notify us immediately by replying to this message and then destroy it and do not review, disclose, copy or distribute it. Thank you in advance for your cooperation.
Hi Virgil
Quoted 4 lines · Virgil
"How do you prefer a provider out of two different versions of a package?"
PREFERRED_VERSION
http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#var-PREFERRED_VERSION
Thanks. Worked fine.
Signature · 2 lines
Greetings Elias