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

Unversioned Obsoletes(..) in .spec file causes dnf builddep to segfault #1873

Closed
coffeejunk opened this issue Nov 19, 2024 · 1 comment
Closed

Comments

@coffeejunk
Copy link

An unversioned Obsoletes(..) in a .spec file causes dnf builddep to segfault:

unversioned:

# cat /root/rpmbuild/SPECS/sample.spec
Name:           hello_world
Version:        0.1.0
Release:        1%{?dist}
Summary:        sample

License:        MIT
URL:            https://github.com/rpm-software-management/dnf5

BuildArch:      noarch

Source0:        %{name}-%{version}.tar.gz

Obsoletes:      vim

%description
This is a demo


# dnf -y builddep /root/rpmbuild/SPECS/sample.spec
Updating and loading repositories:
Repositories loaded.
Segmentation fault (core dumped)

versioned:

# cat /root/rpmbuild/SPECS/sample.spec
Name:           hello_world
Version:        0.1.0
Release:        1%{?dist}
Summary:        sample

License:        MIT
URL:            https://github.com/rpm-software-management/dnf5

BuildArch:      noarch

Source0:        %{name}-%{version}.tar.gz

Obsoletes:      vim < 1

%description
This is a demo


# dnf -y builddep /root/rpmbuild/SPECS/sample.spec
Updating and loading repositories:
Repositories loaded.
Nothing to do.
@kontura
Copy link
Contributor

kontura commented Nov 20, 2024

Thanks for the report, I believe this is a duplicate of #1864.

It should be already fixed by: #1870.

I have just tested it with a local build that includes the most recent changes it is working.

@kontura kontura closed this as completed Nov 20, 2024
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

No branches or pull requests

2 participants