Bug 1334525 - Errors from /usr/lib/rpm/mpi.req during package build
Summary: Errors from /usr/lib/rpm/mpi.req during package build
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm-mpi-hooks
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1331789
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-09 22:04 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2016-05-12 20:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-12 20:37:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1334529 0 unspecified CLOSED Lmod error in tools/TermWidth.lua when terminal size is unknown 2021-02-22 00:41:40 UTC

Internal Links: 1334529

Description Dominik 'Rathann' Mierzejewski 2016-05-09 22:04:29 UTC
Description of problem:
After installing python3 into the buildroot to work around bug 1331789, I get these errors when building cp2k. I'm not sure if they're related, but they seem to come both from scripts provided by rpm-mpi-hooks and Lmod.

Version-Release number of selected component (if applicable):
rpm-mpi-hooks-3-6.fc24.noarch
Lmod-6.3.1-1.fc25.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Build current cp2k package from git master HEAD with mock -r fedora-rawhide-x86_64

Actual results:
When rpmbuild gets to extracting Provides/Requires, I see tons of the errors below, repeating over and over:
[...]
/usr/bin/lua: /usr/share/lmod/lmod/libexec/../tools/TermWidth.lua:69: bad argument #2 to 'tonumber' (number expected, got boolean)
stack traceback:
	[C]: in function 'tonumber'
	/usr/share/lmod/lmod/libexec/../tools/TermWidth.lua:69: in upvalue 'askSystem'
	/usr/share/lmod/lmod/libexec/../tools/TermWidth.lua:92: in function 'TermWidth'
	/usr/share/lmod/lmod/libexec/../tools/Banner.lua:54: in upvalue 'new'
	/usr/share/lmod/lmod/libexec/../tools/Banner.lua:65: in function 'Banner.banner'
	/usr/share/lmod/lmod/libexec/lmod:555: in function 'main'
	/usr/share/lmod/lmod/libexec/lmod:711: in main chunk
	[C]: in ?
/usr/share/lmod/lmod/init/sh: line 14: 80: command not found
/usr/lib/rpm/mpi.req: line 57: mpi_compiler_for_dir[${MPI_HOME}]: bad array subscript
[...]

Expected results:
No errors during build.

Comment 1 Dominik 'Rathann' Mierzejewski 2016-05-09 22:30:59 UTC
Please ignore the errors from lmod - that's a separate bug that can be worked around by (for example) setting the COLUMNS environment variable:
export COLUMNS=80

Comment 2 Sandro Mani 2016-05-10 07:33:26 UTC
Looks like ${MPI_HOME} is empty?

Comment 3 Sandro Mani 2016-05-12 20:37:04 UTC
I don't see any errors with rpm-mpi-hooks-4-1.fc25, assuming fixed.


Note You need to log in before you can comment on or make changes to this bug.