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

check_spec_files fails #1534

Open
rousku opened this issue Jan 18, 2024 · 2 comments
Open

check_spec_files fails #1534

rousku opened this issue Jan 18, 2024 · 2 comments
Labels

Comments

@rousku
Copy link

rousku commented Jan 18, 2024

Describe the bug

I'm trying to build packages, bu the check_spec_files step fails.

Reproduction steps

  1. git checkout 550a466
  2. sudo make packages-minimal

Expected behavior

Build passes

Additional context

Sanity check for all json files ...
Checking all python code is compilable ...

Creating staging folder and subitems...
Pulling toolchain XRPMS...
Pulling toolchain RPMS...
Checking spec file: SPECS/linux/linux-rt-drivers-intel-ice-1.9.11.spec

Some mentioned but unused files found in the spec.
If you think it's a false positive, try the following methods:

  • If you are using Photon OS, update rpm version to latest using tdnf and retry
  • If you are using any other distro, contact - 'sshedi@vmware.com'

--- List of errors in SPECS/linux/linux-rt-drivers-intel-ice-1.9.11.spec ---

--- List of unused files ---
List of unused files in: SPECS/linux
ice-1.9.11.tar.gz

Spec file check failed
Traceback (most recent call last):
File "/data/git/photon/build.py", line 1593, in main
attr = getattr(RpmBuildTarget(), configdict["targetName"])
File "/data/git/photon/build.py", line 634, in init
CheckTools.check_spec_files()
File "/data/git/photon/build.py", line 985, in check_spec_files
raise Exception("Spec file check failed")
Exception: Spec file check failed
make: *** [Makefile:6: packages-minimal] Error 1

@rousku rousku added the bug label Jan 18, 2024
@sshedi
Copy link
Contributor

sshedi commented Jan 18, 2024

What's the version of rpm you are using in your build host?
pastee the output of rpm -q rpm

@rousku
Copy link
Author

rousku commented Jan 19, 2024

I'm building on Ubuntu.

azureuser@armbuild:/data/git/photon$ rpm --version
RPM version 4.17.0

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

No branches or pull requests

2 participants