wacom-gui icon indicating copy to clipboard operation
wacom-gui copied to clipboard

rc19 rpmbuild issue

Open djjewell opened this issue 3 years ago • 3 comments

I'm trying to build an rpm of rc19 for RHEL 7.9 and the following python script fails to compile:

Compiling ~/rpmbuild/BUILDROOT/wacom-gui-0.3.0-rc19.x86_64/usr/local/wacom-gui/data/test_data_files.py ... File "/usr/local/wacom-gui/data/test_data_files.py", line 37 assert bus in ['usb', 'bluetooth', 'i2c', 'serial'], f'{tabletfile}: unknown bus type' ^ SyntaxError: invalid syntax error: Bad exit status from /var/tmp/rpm-tmp.gtSNow (%install)

djjewell avatar May 11 '21 22:05 djjewell

I should note that I've updated the spec file to build against libwacom-1.10 which I've been able to build an rpm for as well

djjewell avatar May 11 '21 22:05 djjewell

The "test_data_files.py" is part of the libwacom-1.10 file; it isn't required for the build to be successful though. To bypass this, you can just modify the spec file in the build section to remove the py file from the data directory:

%build
cd wacom-gui
rm -f *.pyc
rm -f *.ui
python -m compileall .
mv ../LICENSE .
mv ../README.md .
mv ../libwacom-%{libwacom_ver}/data .
rm -f data/Makefile.*
rm -f data/layouts/Makefile.*
rm -f data/*.py

tb2097 avatar May 12 '21 01:05 tb2097

Well that’s embarrassing. I’ll mention it in their git repo. Thanks On May 11, 2021, 6:02 PM -0700, tb2097 @.***>, wrote:

The "test_data_files.py" is part of the libwacom-1.10 file; it isn't required for the build to be successful though. To bypass this, you can just modify the spec file in the build section to remove the py file from the data directory: %build cd wacom-gui rm -f .pyc rm -f .ui python -m compileall . mv ../LICENSE . mv ../README.md . mv ../libwacom-%{libwacom_ver}/data . rm -f data/Makefile. rm -f data/layouts/Makefile. rm -f data/*.py — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

djjewell avatar May 12 '21 02:05 djjewell