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

Q: unwind requires libc-devel, provided by which package in centos 8.2? #1122

Open
Haroldll opened this issue Apr 29, 2024 · 16 comments
Open

Comments

@Haroldll
Copy link

When installing the latest version of ganesha, the os reported an error:

1.177 Error:
1.177  Problem: conflicting requests
1.177   - nothing provides libc-devel needed by nfs-ganesha-utils

I found the corresponding code:

%if %{with unwind}
%if ( 0%{?rhel} && 0%{?rhel} < 8 )
Requires: libc6-dev
%else
Requires: libc-devel
%endif
%if ( 0%{?suse_version} )
Requires: glibc-devel
%endif
%endif

In centos 8.2, Requires is libc-devel, but I don't find this dependency in my os, only the glibc-devel provided by the glibc-devel-2.28 package is seen.
So, may I ask which rpm package provides libc-devel in centos 8.2?
Also, why is it nfs-ganesha-utils that needs this dependency?

@xiaods
Copy link

xiaods commented May 5, 2024

@Haroldll please provide your specific nfs-ganesha version use yum.

@Haroldll
Copy link
Author

Haroldll commented May 6, 2024

@Haroldll please provide your specific nfs-ganesha version use yum.

nfs-ganesha version is 6-dev.11.
nothing provides libc-devel needed by nfs-ganesha-utils-6-dev.11.el8.x86_64

@ffilz ffilz added the Analyzing label May 6, 2024
@kalebskeithley
Copy link
Contributor

How exactly did you install? With dnf install -y ...? Or with rpm -I ... ? Packages I presume you built from source?

@Haroldll
Copy link
Author

Haroldll commented May 7, 2024

How exactly did you install? With dnf install -y ...? Or with rpm -I ... ? Packages I presume you built from source?

Yes, build the rpm packages from source and then use rpm -ivh ... command to install

@xiaods
Copy link

xiaods commented May 7, 2024

https://cbs.centos.org/koji/buildinfo?buildID=51972#/ use this package to install

@Haroldll
Copy link
Author

Haroldll commented May 7, 2024

https://cbs.centos.org/koji/buildinfo?buildID=51972#/ use this package to install

nfs-ganesha-5.7-2.el8 is fine, but this version contains no modifications: 158f395

@xiaods
Copy link

xiaods commented May 7, 2024

https://cbs.centos.org/koji/buildinfo?buildID=51972#/ use this package to install

nfs-ganesha-5.7-2.el8 is fine, but this version contains no modifications: 158f395

ok. you only build rpm by yourself.

@kalebskeithley
Copy link
Contributor

If you're going to use rpm -ivh ... to install, then you have to install the dependencies yourself.

Or you could use dnf install ..., (or yum install ...) instead, which will automatically install any required dependencies.

If you're coming from the SUSE world, dnf/yum are analogous to zypper.

@xiaods
Copy link

xiaods commented May 7, 2024

When installing the latest version of ganesha, the os reported an error:

1.177 Error:
1.177  Problem: conflicting requests
1.177   - nothing provides libc-devel needed by nfs-ganesha-utils

I found the corresponding code:

%if %{with unwind}
%if ( 0%{?rhel} && 0%{?rhel} < 8 )
Requires: libc6-dev
%else
Requires: libc-devel
%endif
%if ( 0%{?suse_version} )
Requires: glibc-devel
%endif
%endif

In centos 8.2, Requires is libc-devel, but I don't find this dependency in my os, only the glibc-devel provided by the glibc-devel-2.28 package is seen. So, may I ask which rpm package provides libc-devel in centos 8.2? Also, why is it nfs-ganesha-utils that needs this dependency?

glibc-devel is new better version than libc-devel. nfs-ganesha-utils use some c calling, it maybe dependency with libc. directly use glibc-devel as soon as.

@Haroldll
Copy link
Author

Haroldll commented May 8, 2024

If you're going to use rpm -ivh ... to install, then you have to install the dependencies yourself.

Or you could use dnf install ..., (or yum install ...) instead, which will automatically install any required dependencies.

If you're coming from the SUSE world, dnf/yum are analogous to zypper.

yum install nfs-ganesha nfs-ganesha-utils
Last metadata expiration check: 0:00:26 ago on Wed 08 May 2024 06:51:22 AM UTC.
Error:
Problem: conflicting requests

  • nothing provides libc-devel needed by nfs-ganesha-utils-6-dev.11.el8.x86_64
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

yum can't find this dependency either.

@xiaods
Copy link

xiaods commented May 9, 2024

@Haroldll cloud you please share your spec, let me testing on my box. I suggest directly update spec to use glibc-devel replace libc-devel. the spec is out of date on centos8

@Haroldll
Copy link
Author

Haroldll commented May 9, 2024

@Haroldll cloud you please share your spec, let me testing on my box. I suggest directly update spec to use glibc-devel replace libc-devel. the spec is out of date on centos8

My spec is the community source code, unmodified, and I also think that libc-devel should be glibc-devel, since glibc-devel doesn't report dependency errors.

@xiaods
Copy link

xiaods commented May 9, 2024

@Haroldll cloud you please share your spec, let me testing on my box. I suggest directly update spec to use glibc-devel replace libc-devel. the spec is out of date on centos8

My spec is the community source code, unmodified, and I also think that libc-devel should be glibc-devel, since glibc-devel doesn't report dependency errors.

agree with your options. this is bug.

@kalebskeithley
Copy link
Contributor

When installing the latest version of ganesha, the os reported an error:

1.177 Error:
1.177  Problem: conflicting requests
1.177   - nothing provides libc-devel needed by nfs-ganesha-utils

I found the corresponding code:

%if %{with unwind}
%if ( 0%{?rhel} && 0%{?rhel} < 8 )
Requires: libc6-dev
%else
Requires: libc-devel
%endif
%if ( 0%{?suse_version} )
Requires: glibc-devel
%endif
%endif

In centos 8.2, Requires is libc-devel, but I don't find this dependency in my os, only the glibc-devel provided by the glibc-devel-2.28 package is seen. So, may I ask which rpm package provides libc-devel in centos 8.2? Also, why is it nfs-ganesha-utils that needs this dependency?

glibc-devel is new better version than libc-devel. nfs-ganesha-utils use some c calling, it maybe dependency with libc. directly use glibc-devel as soon as.

I don't know where the author of that change got those package names from.

I'd say that, across the board: rhel, centos, fedora, and suse, it should just be glibc-devel. Even on centos7 and rhel7. Probably even on rhel6/centos6, although I can't check. Looking back through Red Hat's build system there was a glibc-devel on rhel6 too.

@xiaods
Copy link

xiaods commented May 12, 2024

%if %{with unwind}
%if ( 0%{?rhel} && 0%{?rhel} < 8 )
Requires: libc6-dev
%else
Requires: libc-devel
%endif
%if ( 0%{?suse_version} )
Requires: glibc-devel
%endif
%endif

I seriously doubt that the nfs-ganesha.spec file you have comes from the SUSE community.

https://gist.github.com/trinhpham/b90f4b2741f01948f9165a13a0cfd986 sample setup scripts.

@kalebskeithley
Copy link
Contributor

https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1194649

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

No branches or pull requests

4 participants