[Gambas-user] Bug in IDE packager for rpm packages

Willy@...3475... willy at ...3474...
Tue May 5 23:28:05 CEST 2015


Hi,

A user on the Gambas forum reported having trouble making rpm packages
using IDE.

We had some discussion on the topic to check if all requirements where
installed to build rpm packages on Ubuntu. They where but when making
packages for one of the rpm distro's Gambas threw an error.

I managed isolate the cause of the problem being the name used in the
project. The persons project was named ListBox+.

Seems the added + to the project name turns out to be a problem for
making rpm packages (deb packages build just fine).

I tried and succeeded in replicating the error as follows:
I opened a new empty qt4 project and named it MyBox+.
Next I tried making a  rpm package for Fedora.

This is the error returned:

========================================

Pakket aanmaken voor Fedora / RedHat / CentOS.

========================================

Gereed maken ~/RPM map.
Broncode pakket aanmaken.
.spec bestand aanmaken.
Pakket aanmaken...

rpmbuild -ba '/home/willy/RPM/SPECS/mybox+.spec'
Executing(%prep): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.pebI7j
+ umask 022
+ cd /home/willy/RPM/BUILD
+ rm -rf /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386
+ cd /home/willy/RPM/BUILD
+ rm -rf MyBox+
+ + /bin/tar -xf -
/bin/bzip2 -dc /home/willy/RPM/SOURCES/mybox+-0.0.1.tar.bz2
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd MyBox+
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.DojBTv
+ umask 022
+ cd /home/willy/RPM/BUILD
+ cd MyBox+
+ /usr/bin/gbc3 -e -a -g -x
OK
+ gba3
+ exit 0
Executing(%install): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.uHcvWH
+ umask 022
+ cd /home/willy/RPM/BUILD
+ cd MyBox+
+ install -d /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386//usr/bin
+ install -p MyBox+.gambas /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/bin/MyBox+
+ install -d /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/share/pixmaps
+ install -d /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/share/applications
+ install -p .icon/48.png /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/share/pixmaps/MyBox+.png
+ cat
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: mybox+-0.0.1-1.noarch
error: File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/bin/'MyBox+'
error: File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png


RPM build errors:
    File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/bin/'MyBox+'
    File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png

Het pakket maken is mislukt.
Package.MakeRpmPackage.1420: 'rpmbuild' heeft de volgende foutcode
teruggestuurd: 1

==============End of error report=============

My impression is that the added single quotes to the project name
confuse the rpm builder (see lines after above RPM build errors)

Note that I can make rpm packages from Gambas IDE for other projects
(without the added + to the project name).


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org








More information about the User mailing list