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

Fix bootup git warnings on arch #17645

Merged

Conversation

adfoster-r7
Copy link
Contributor

@adfoster-r7 adfoster-r7 commented Feb 15, 2023

closes #17604

Verification

Run arch:

docker run -it archlinux /bin/bash

Install metasploit / vim:

echo y | pacman -Sy metasploit
echo y | pacman -Sy vim

Before

Bootup warnings:

[root@61c1980f91fb /]# msfconsole -qx 'version; exit'
error: unable to normalize alternate object path: /srcdest/metasploit-framework/objects
Framework: 6.2.36-dev-bca8374
Console  : 6.2.36-dev-bca8374

After

After manually patching the PR changes with vim /opt/metasploit/lib/metasploit/framework/version.rb; No warnings:

[root@3cf8733a3890 /]# msfconsole -qx 'version; exit'
Framework: 6.2.36-dev-bca8374
Console  : 6.2.36-dev-bca8374

@sempervictus
Copy link
Contributor

Thanks!
There's an active effort by the maintainers right now to re-do how gems (including those in std) are packaged for Arch which is holding up the interpreter version @ 3.0.x - spoke w/ relevant party in IRC recently, they're hoping to have 3.1 by March with 3.2 to follow soon after.

@gwillcox-r7 gwillcox-r7 self-assigned this Feb 15, 2023
@gwillcox-r7
Copy link
Contributor

Before:

[root@bb3ce153ce1a /]# msfconsole -qx 'version; exit'
error: unable to normalize alternate object path: /srcdest/metasploit-framework/objects
Framework: 6.2.36-dev-bca8374
Console  : 6.2.36-dev-bca8374
[root@bb3ce153ce1a /]# 

@gwillcox-r7
Copy link
Contributor

After:

[root@bb3ce153ce1a /]# msfconsole -qx 'version; exit'
Framework: 6.2.36-dev-bca8374
Console  : 6.2.36-dev-bca8374
[root@bb3ce153ce1a /]# 

@gwillcox-r7 gwillcox-r7 added bug rn-fix release notes fix labels Feb 15, 2023
@gwillcox-r7 gwillcox-r7 merged commit b89602b into rapid7:master Feb 15, 2023
@gwillcox-r7
Copy link
Contributor

gwillcox-r7 commented Feb 15, 2023

Release Notes

Fixes a bug that caused warnings to be output on Arch Linux environments when starting msfconsole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rn-fix release notes fix
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Load packages in metasploit arch linux
3 participants