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

Invalid rpm/podman.spec file when building from source #23969

Closed
joshmcorreia opened this issue Sep 16, 2024 · 4 comments
Closed

Invalid rpm/podman.spec file when building from source #23969

joshmcorreia opened this issue Sep 16, 2024 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@joshmcorreia
Copy link

joshmcorreia commented Sep 16, 2024

Issue Description

The rpm/podman.spec file is not a valid spec file according to dnf builddep. I'm following the instructions at https://podman.io/docs/installation#building-from-source.

Steps to reproduce the issue

Steps to reproduce the issue:

# git clone https://github.com/containers/podman.git
# cd podman
# dnf -y builddep rpm/podman.spec --enablerepo=codeready-builder-for-rhel-$(rpm --eval %{?rhel})-$(uname -m)-rpms
Updating Subscription Management repositories.
Last metadata expiration check: 1:43:08 ago on Mon Sep 16 11:52:10 2024.
RPM: error: %changelog entries must start with *
Failed to open: 'rpm/podman.spec', not a valid spec file: can't parse specfile

Error: Some packages could not be found.

Describe the results you received

Unable to build from source on RHEL8.

Describe the results you expected

I expect to be able to build from source on RHEL8.

podman info output

N/A - happens before even running podman

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.8 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.8 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"

Additional information

N/A

@joshmcorreia joshmcorreia added the kind/bug Categorizes issue or PR as related to a bug. label Sep 16, 2024
@rhatdan
Copy link
Member

rhatdan commented Sep 16, 2024

@lsm5 PTAL

@lsm5
Copy link
Member

lsm5 commented Sep 17, 2024

@joshmcorreia Current main branch will have trouble building on rhel8 because of lack of rpmautospec support on rhel8 (there may be other issues, but that's the issue as seen in your error log). You can get around that by changing the %changelog section to look like:

%changelog
* Mon May 01 2023 Foo Bar <foobar@example.com>
- Placeholder changelog for envs that are not autochangelog-ready

The doc you mentioned needs to be updated to get rid of rhel8 as rhel8 is no longer under active development. I'd recommend switching to rhel9 / centos stream 9 or higher or Fedora.

Closing...

@lsm5 lsm5 closed this as completed Sep 17, 2024
@joshmcorreia
Copy link
Author

joshmcorreia commented Sep 17, 2024

The doc you mentioned needs to be updated to get rid of rhel8 as rhel8 is no longer under active development.

RHEL8 has maintenance support until 5/31/2029 which is still used in production by a ton of organizations. Does podman only support active development OSs?

@rhatdan
Copy link
Member

rhatdan commented Sep 17, 2024

RHEL8 is supported only for CVE Back ports at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants