Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339055 - net-misc/rabbitmq-server installs libraries in a non-standard folder
Summary: net-misc/rabbitmq-server installs libraries in a non-standard folder
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 18:01 UTC by Vincent de Phily
Modified: 2011-04-07 15:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix rabbitmq install path (rabbitmq-server-2.1.0.ebuild,2.22 KB, text/plain)
2010-09-28 18:06 UTC, Vincent de Phily
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent de Phily 2010-09-28 18:01:17 UTC
This is a re-submit from part of my patch from bug#192278. It fell out of my radar because I was using a custom ebuild all along, but it is still valid.



Reproducible: Always

Steps to Reproduce:
erl -noinput -eval "io:format(\"~s\", [code:lib_dir('rabbitmq-server')])." -s erlang halt

Actual Results:  
{"init terminating in do_boot",{badarg,[{io,format,[<0.24.0>,"~s",[{error,bad_name}]]},{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Expected Results:  
/usr/lib64/erlang/lib/rabbitmq_server-2.1.0

The erlang convention for library names requires underscores instead of hyphens. If it isn't respected at the filename layer, calls to code:lib_dir/1 or -include_lib() do not work.
Comment 1 Vincent de Phily 2010-09-28 18:06:32 UTC
Created attachment 248926 [details]
fix rabbitmq install path

--- /usr/portage/net-misc/rabbitmq-server/rabbitmq-server-2.1.0.ebuild  2010-09-19 10:35:51.000000000 +0200
+++ /usr/local/portage/net-misc/rabbitmq-server/rabbitmq-server-2.1.0.ebuild    2010-09-28 17:54:54.749379410 +0200
@@ -35,7 +35,7 @@
 
 src_install() {
        # erlang module
-       local targetdir="/usr/$(get_libdir)/erlang/lib/${P}"                                                                                                                                  
+       local targetdir="/usr/$(get_libdir)/erlang/lib/rabbitmq_server-${PV}"                                                                                                                 
                                                                                                                                                                                              
        einfo "Setting correct RABBITMQ_HOME in scripts"                                                                                                                                      
        sed -e "s:^RABBITMQ_HOME=.*:RABBITMQ_HOME=\"${targetdir}\":g" \
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2011-04-07 15:23:30 UTC
fixed in 2.4.0, thanks