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

2015-05-06 Thread Ron
Indeed hard to find official documentation about this subject.

I have found this though:

Package names (both source and binary, see Package, Section 5.6.7)
must consist only of lower case letters (a-z), digits (0-9), plus (+)
and minus (-) signs, and periods (.). They must be at least two
characters long and must start with an alphanumeric character.

source: 
https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Source

Regards,
Ron.

2015-05-06 1:25 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:
 Le 05/05/2015 23:28, Willy@develop a écrit :
 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).



 It seems that rpm or deb packages usually cannot handle characters that
 are not a letter or a digit. I didn't find any documentation that tells
 me exactly which characters are really allowed in a package name.

 Maybe I should prevent that by automatically replace these characters by
 something else when making the package.

 Anyway, it's better to use only digits and letters in your project name!

 Regards,

 --
 Benoît Minisini

 --
 One dashboard for servers and applications across Physical-Virtual-Cloud
 Widest out-of-the-box monitoring support with 50+ applications
 Performance metrics, stats and reports that give you Actionable Insights
 Deep dive visibility with transaction tracing using APM Insight.
 http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications

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

2015-05-06 Thread Willy@develop
On wo, 2015-05-06 at 08:26 +0200, Ron wrote:
 Indeed hard to find official documentation about this subject.
 
 I have found this though:
 
 Package names (both source and binary, see Package, Section 5.6.7)
 must consist only of lower case letters (a-z), digits (0-9), plus (+)
 and minus (-) signs, and periods (.). They must be at least two
 characters long and must start with an alphanumeric character.
 
 source: 
 https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Source
 
 Regards,
 Ron.

As I stated in the original mail. Deb packages (both the ones for Debian
as for Mint/Ubuntu) package fine with a + in the package name.
There is no problem there.

It is packaging rpm's with the added + in the package name that gives
trouble. No + in the name, no problem, rpm packages build just fine.

In the error output you can see this:
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

The single quotes in the path name around the project name MyBox+ seem
to cause the trouble.

I don't know if Gambas adds them (the single quotes) before passing the
command to the rpm package builder or if the rpm package builder itself
throws them in and next can't cope with it.

If Gambas adds them it surly can be fixed, but if the rpm builder (an
external process I presume) does this then this is not a Gambas problem.


-- 
Kind regards,

Willy (aka gbWilly)

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





--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2015-05-05 Thread Benoît Minisini
Le 05/05/2015 23:28, Willy@develop a écrit :
 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).



It seems that rpm or deb packages usually cannot handle characters that 
are not a letter or a digit. I didn't find any documentation that tells 
me exactly which characters are really allowed in a package name.

Maybe I should prevent that by automatically replace these characters by 
something else when making the package.

Anyway, it's better to use only digits and letters in your project name!

Regards,

-- 
Benoît Minisini

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user