[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] Re: Debian stuff
From:       José "L. Redrejo" =?ISO-8859-1?Q?Rodr=EDguez?= <jredrejo () meri
Date:       2004-09-19 17:04:22
Message-ID: 1095613462.6960.71.camel () tablet-jl ! itais ! net
[Download RAW message or body]

El dom, 19-09-2004 a las 16:06, Benoit Minisini escribió:

> > > Ask me every question you need! But I think we should stay on the=20
> > > mailing-list, because what we say can interest other people.
> >
> > I also want to fix the debian packages creation from gambas ide (Project
> > ->Make installation Package) that doesn't work at all. Tell me if
> > somebody has already begun to do that work, and if you think I will have
> > time enough to do it before the 1.0 release.
> 
> What are the problems exactly ?

Well, it tries to make Mandrake packages when you select to make Debian
packages. As an example, I have tried to package the DataReportExample
included in gambas. This is the log that appears in the packaging
window:

#############################
Creating package for Debian.
Initializing ~/RPM directory.
Creating source package.
Creating .spec file.
Creating RPM packages.
The package build has failed.

Executing(%prep): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask
022 + cd /home/jose/RPM/BUILD + rm -rf
/home/jose/RPM/tmp/datareportexample-buildroot + cd /home/jose/RPM/BUILD
+ rm -rf DataReportExample + /usr/bin/bzip2 -dc
/home/jose/RPM/SOURCES/datareportexample-0.0.tar.bz2 + tar -xf - +
STATUS=0 + '[' 0 -ne 0 ']' + cd DataReportExample + exit 0
Executing(%build): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208 + umask
022 + cd /home/jose/RPM/BUILD + cd DataReportExample + /usr/bin/gbc -a
-p OK + gba +


############################

And after that a message saying that "The package build has failed"
In the terminal where I open gambas from, I can see many more messages:
##########################################
Executing(%prep): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208
+ umask 022
+ cd /home/jose/RPM/BUILD
+ rm -rf /home/jose/RPM/tmp/datareportexample-buildroot
+ cd /home/jose/RPM/BUILD
+ rm -rf DataReportExample
+ /usr/bin/bzip2 -dc
/home/jose/RPM/SOURCES/datareportexample-0.0.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd DataReportExample
+ exit 0
Executing(%build): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208
+ umask 022
+ cd /home/jose/RPM/BUILD
+ cd DataReportExample
+ /usr/bin/gbc -a -p
OK
+ gba
+ exit 0
Executing(%install): /bin/sh -e /home/jose/RPM/tmp/rpm-tmp.58208
+ umask 022
+ cd /home/jose/RPM/BUILD
+ cd DataReportExample
+ install -d /home/jose/RPM/tmp/datareportexample-buildroot/usr/bin
+ install -p DataReportExample
/home/jose/RPM/tmp/datareportexample-buildroot/us
r/bin/datareportexample
+ install -d
/home/jose/RPM/tmp/datareportexample-buildroot//usr/share/pixmaps
+ install -p .icon/32.png
/home/jose/RPM/tmp/datareportexample-buildroot//usr/sh
are/pixmaps/datareportexample.png
+ install -d
/home/jose/RPM/tmp/datareportexample-buildroot//usr/lib/menu
+ cat
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: datareportexample-0.0-1
error: File not found:
/home/jose/RPM/tmp/datareportexample-buildroot/usr/share/
menu/datareportexample
Requires: gambas-runtime >= 0.95 gambas-runtime <= 1.0 gambas-gb-db >=
0.95 gamb as-gb-db <= 1.0 gambas-gb-qt >= 0.95 gambas-gb-qt <= 1.0
gambas-gb-qt-ext >= 0.9 5 gambas-gb-qt-ext <= 1.0 gambas-gb-qt-kde >=
0.95 gambas-gb-qt-kde <= 1.0 gamba s-gb-qt-kde-html >= 0.95
gambas-gb-qt-kde-html <= 1.0


RPM build errors:
    File not found:
/home/jose/RPM/tmp/datareportexample-buildroot/usr/share/men
u/datareportexample
###########################################

More information: I asked gambas to build the packages in a directory
called /home/jose/instal, but it  uses /home/jose/RPM. On the other
hand, this is not the structure for Debian packages. I haven't tested
this feature in previous versions of gambas, so I don't know if this is
a new bug  or Debian packages have never been done. I don't know too
much about RPM packaging, but looking at Package.module in gambas
sources it looks quite different of what deb packages need to be built.

I have seen that you try to build debian packages using alien after
generating rpm packages, but this uses to fail because  all the tools to
build a rpm package are  needed. Those tools are not installed in a
debian system by default (debian rpm package exists and it has most of
them as brp-compress, brp-..., but they are not enough as I see) , so
maybe it would be easy to build debian packages in a Mandrake box, but
not in a Debian box, what makes not too much sense.
Reading the above logs I can also check two things more: the name of the
standard debian packages has to be those you put in Mandrake (no problem
with that, I have also finished them) and the 
/home/jose/RPM/tmp/datareportexample-buildroot/usr/share/menu directory
hasn't been created, I haven't been able to find how or where it should
have been created.

I hope this will help to find out the problem. 
Regards.





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic