Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RabbitMQ 3.12.x compatibility #62

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

lukebakken
Copy link
Collaborator

@lukebakken lukebakken commented Dec 9, 2023

Fixes #61

Update erlang.mk and rabbitmq-components.mk

@lukebakken lukebakken added this to the 1.2.0 milestone Dec 9, 2023
@lukebakken lukebakken self-assigned this Dec 9, 2023
@lukebakken
Copy link
Collaborator Author

cc @essen @lhoguin @michaelklishin

I'm having an issue after updating erlang.mk and rabbitmq-components.mk from the v3.12.x branch of rabbitmq/rabbitmq-server. The build process is trying to generate CLI scripts and deps/rabbitmq_cli is not present. Seems like a step that shouldn't be happening:

make-output.txt

gmake[1]: Leaving directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/rabbit_common'
gmake[1]: Entering directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/amqp_client'
 DEPEND amqp_client.d
 ERLC   amqp_auth_mechanisms.erl amqp_channel.erl amqp_channel_sup.erl amqp_channel_sup_sup.erl amqp_channels_manager.erl amqp_client.erl amqp_connection.erl amqp_connection_sup.erl amqp_connection_type_sup.erl amqp_direct_connection.erl amqp_direct_consumer.erl amqp_gen_connection.erl amqp_gen_consumer.erl amqp_main_reader.erl amqp_network_connection.erl amqp_rpc_client.erl amqp_rpc_server.erl amqp_selective_consumer.erl amqp_ssl.erl amqp_sup.erl amqp_uri.erl amqp_util.erl rabbit_routing_util.erl uri_parser.erl
 APP    amqp_client
 GEN    install-cli-scripts
 GEN    install-cli-escripts
gmake[2]: Entering directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/amqp_client'
gmake[2]: *** /home/lbakken/development/gotthardp/rabbitmq-email/deps/rabbitmq_cli: No such file or directory.  Stop.
gmake[2]: Leaving directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/amqp_client'
gmake[1]: *** [/home/lbakken/development/gotthardp/rabbitmq-email/deps/rabbit_common/mk/rabbitmq-dist.mk:290: install-cli-escripts] Error 2
gmake[1]: Leaving directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/amqp_client'
gmake: *** [erlang.mk:3750: deps] Error 2

@lukebakken
Copy link
Collaborator Author

Aha, it is this commit that is causing this issue:

rabbitmq/rabbitmq-server@d24315d

cc @dumbbell

@lukebakken
Copy link
Collaborator Author

@dumbbell Changing that line back to dist results in this error:

lbakken@PROKOFIEV ~/development/gotthardp/rabbitmq-email (rabbitmq-server-v3.12.x=)
$ make
erlang.mk:4854: warning: overriding recipe for target '/home/lbakken/development/gotthardp/rabbitmq-email/deps/amqp_client'
erlang.mk:4392: warning: ignoring old recipe for target '/home/lbakken/development/gotthardp/rabbitmq-email/deps/amqp_client'
erlang.mk:4854: warning: overriding recipe for target '/home/lbakken/development/gotthardp/rabbitmq-email/deps/eiconv'
erlang.mk:4392: warning: ignoring old recipe for target '/home/lbakken/development/gotthardp/rabbitmq-email/deps/eiconv'
gmake[1]: Entering directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/rabbit_common'
 DEPEND rabbit_common.d
gmake[1]: Leaving directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/rabbit_common'
gmake[1]: Entering directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/amqp_client'
 DEPEND amqp_client.d
gmake[1]: Leaving directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/amqp_client'
gmake[1]: Entering directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/rabbit'
 DEP    rabbitmq_cli (rabbitmq-server-v3.12.x)
ln -s /home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/rabbitmq_cli /home/lbakken/development/gotthardp/rabbitmq-email/deps/rabbitmq_cli;
 DEP    rabbitmq_prelaunch ()
Error: Unknown or invalid dependency: rabbitmq_prelaunch.
gmake[1]: *** [../../erlang.mk:4396: /home/lbakken/development/gotthardp/rabbitmq-email/deps/rabbitmq_prelaunch] Error 78
gmake[1]: Leaving directory '/home/lbakken/development/gotthardp/rabbitmq-email/.erlang.mk/rabbitmq-server/deps/rabbit'
gmake: *** [erlang.mk:3750: deps] Error 2

Fixes #61

Update erlang.mk and rabbitmq-components.mk
@lukebakken lukebakken force-pushed the rabbitmq-server-v3.12.x branch from 71d563f to 59f777f Compare December 9, 2023 21:55
@dumbbell
Copy link
Collaborator

I don't know how plugins should be compiled nowadays after the switch to the monorepository in rabbitmq-server, but I'm not sure it is still possible to build it outside of the rabbitmq-server umbrella. Rin may know, but I can't ping her from this issue apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error
2 participants