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

make rpm fails in RHEL8 #261

Closed
aylons opened this issue Mar 29, 2022 · 3 comments · Fixed by #262
Closed

make rpm fails in RHEL8 #261

aylons opened this issue Mar 29, 2022 · 3 comments · Fixed by #262

Comments

@aylons
Copy link

aylons commented Mar 29, 2022

I was able to install with traditional make install, however.

The command was make PYTHON=python3 rpm



error: parse error in expression
error: /home/xxxx/ipbus-software/uhal/log/rpm/cactuscore-uhal-log.spec:136: bad %if condition
make[2]: *** [/home/xxx/ipbus-software/uhal/config/mfRPMRules.mk:24: _rpmbuild] Error 1

Relevant part of mentioned file is:

%if %{defined _build_debuginfo_package}
# Temporary workaround for subpackages not being built on CentOS8
%if %{_os} != centos8
%files debuginfo
%defattr(-,root,root,-)
%endif

/usr/lib/debug
/usr/src/debug
%endif

The system is a RHEL 8 running python 3.6.8.

tswilliams added a commit that referenced this issue Mar 30, 2022
…ix to standard '.el8' from RPM dist variable. Fixes #261
@tswilliams
Copy link
Collaborator

Hi @aylons

I've implemented a fix in branch bug/rhel8-rpmbuild-error. This resolves the problem locally for me. Could you try again using that branch? If that works for you, I'll merge and create a new tag.

Cheers,
Tom

@aylons
Copy link
Author

aylons commented Mar 31, 2022

Seems to have worked. As a double check, this is the result of yum localinstall find . -iname "*.rpm"


===================================================================================================================================================================================================================
 Package                                                    Architecture                             Version                                                  Repository                                      Size
===================================================================================================================================================================================================================
Installing:
 cactuscore-uhal-grammars                                   x86_64                                   2.8.3-1.el8.gcc8_5_0                                     @commandline                                   3.7 M
 cactuscore-uhal-log                                        x86_64                                   2.8.3-1.el8.gcc8_5_0                                     @commandline                                   136 k
 cactuscore-uhal-tests                                      x86_64                                   2.8.3-1.el8.gcc8_5_0                                     @commandline                                    16 M
 cactuscore-uhal-uhal                                       x86_64                                   2.8.3-1.el8.gcc8_5_0                                     @commandline                                    12 M

@tswilliams
Copy link
Collaborator

Thanks for the feedback. The yum localinstall output that you quoted looks good. I've now included this change in the v2.8.3 tag.

@tswilliams tswilliams added this to the v.2.8.3 release milestone Apr 4, 2022
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.

2 participants