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

Warning on openSUSE Tumbleweed #323

Open
Eiji7 opened this issue Aug 26, 2019 · 9 comments
Open

Warning on openSUSE Tumbleweed #323

Eiji7 opened this issue Aug 26, 2019 · 9 comments

Comments

@Eiji7
Copy link

Eiji7 commented Aug 26, 2019

Hey, I'm using asdf for managing multiple versions of development software. It uses this project and on openSUSE distribution there is one small problem. Luckily it does not stops building process, but still shows a warning which is really confusing:

WARNING: It appears a required development package 'openssl-devel' is not installed.

I have found that this message comes from:

kerl/kerl

Lines 371 to 389 in a0f4789

_rpm_is_installed() {
rpm --quiet -q "$1" >/dev/null 2>&1
}
_check_rpm() {
required='
openssl-devel
make
automake
autoconf
ncurses-devel
gcc
'
for pkg in $required; do
if ! _rpm_is_installed "$pkg"; then
echo "WARNING: It appears a required development package '$pkg' is not installed."
fi
done
}

To understand what is going wrong on openSUSE simply let me show you my output:

$ rpm -q openssl-devel
pakiet openssl-devel nie jest zainstalowany
# message in Polish that such package is not installed
$ rpm -q libopenssl-devel
libopenssl-devel-1.1.1c-1.1.noarch

Finally to confirm that such package just does not exists here is a search result:

$ zypper search openssl-devel
Wczytywanie danych repozytorium...
# Loading repository data ...
Odczytywanie zainstalowanych pakietów...
# Reading installed packages ...

S  | Nazwa                 | Podsumowanie                                          | Typ   
---+-----------------------+-------------------------------------------------------+-------
i+ | libopenssl-devel      | Include Files and Libraries mandatory for Development | pakiet
   | xmlsec1-openssl-devel | OpenSSL crypto plugin for XML Security Library        | pakiet

# Nazwa -> Name
# Podsumowanie -> Summary
# Typ -> Type
# pakiet -> package

Do you think that you can add a special check for this case? Please look that it's not a distribution which nobody knows about. Following Distrowatch openSUSE is 10th of most popular distributions and also 4 of 62 Independent distributions.

@jadeallenx
Copy link
Collaborator

Thanks for the report. This is a "best effort" warning because over the years we've had quite a lot of tickets filed because people don't have such and such a Linux dependency installed prior to building Erlang.

@k-cross
Copy link

k-cross commented May 5, 2020

I just ran into this myself updating from asdf to 22.3.3 from 22.3. It's possible I upgraded something that caused a conflict but I certainly have the libopenssl-devel installed. Wondering what a workaround might be.

@oshanz
Copy link

oshanz commented Jul 15, 2021

kerl/kerl

Line 472 in 3a3f96f

openssl-devel

suse doesn't have a openssl-devel package. it is named as libopenssl-devel

image

@crownedgrouse
Copy link
Contributor

Can you please provide what uname -s provide on opensuse ?
So a workaround can be done on requirement ?

1 similar comment
@crownedgrouse
Copy link
Contributor

Can you please provide what uname -s provide on opensuse ?
So a workaround can be done on requirement ?

@oshanz
Copy link

oshanz commented May 22, 2022

$ uname -a
Linux localhost.localdomain 5.17.4-1-default #1 SMP PREEMPT Wed Apr 20 07:43:03 UTC 2022 (75e9961) x86_64 x86_64 x86_64 GNU/Linux


$ lsb_release -ir
Distributor ID: openSUSE
Release:        20220428

@crownedgrouse
Copy link
Contributor

can you test this dev branch : https://github.com/crownedgrouse/kerl/tree/feature/opensuse_workaround ?
before I propose a PR, as I do not have an opensuse machine right now.

@oshanz
Copy link

oshanz commented Jan 27, 2024

I've tested using a suse container image (https://github.com/oshanz/test-kerl-suse) and warning are working correctly. thanks for the fix @crownedgrouse 🚀

The asdf_26.2.1 build has been deleted
Extracting source code
Building Erlang/OTP 26.2.1 (asdf_26.2.1), please wait...
WARNING: It appears a required development package 'libopenssl-devel' is not installed.
WARNING: It appears a required development package 'make' is not installed.
WARNING: It appears a required development package 'automake' is not installed.
WARNING: It appears a required development package 'autoconf' is not installed.
WARNING: It appears a required development package 'ncurses-devel' is not installed.
WARNING: It appears a required development package 'gcc' is not installed.
Build failed.
checking for cc... no
checking for cl.exe... no
checking for clang... no

@crownedgrouse
Copy link
Contributor

Huhh. I admit I totally forgot this two years old subject . I will propose a PR then...

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 a pull request may close this issue.

5 participants