What happened with Gambas IDE?

Discussions Regarding Software

Moderator: Moderators

What happened with Gambas IDE?

Postby raregazz » Sat Apr 17, 2010 5:57

Gambas IDE 2.16 is in the repos but nothing happens when installs in Sabayon 5.2. :shock:

Spanish forum doesn't know anything, please tell me how to install this app.

http://forum.sabayon.org/viewtopic.php?f=83&t=20252&sid=af21ae9b2506f7566325f4fb108dbf2e

Thanks in advance.
raregazz
Baby Hen
 
Posts: 9
Joined: Sat Apr 03, 2010 1:58

Re: What happened with Gambas IDE?

Postby Fitzcarraldo » Sat Apr 17, 2010 9:20

Hola, raregazz. ¿Que tal?

The Portage maintainers pulled the Gambas ebuild from Portage. :(

However, you can get the latest ebuild as follows:

Download the ebuild for gambas-2.16.0.ebuild from the following mirror:

http://piotrkosoft.net/pub/mirrors/gent ... 6.0.ebuild

Then go to the Gentoo Bugzilla Bug Report No. 302136 page and download the diff file gambas-2.20.0.ebuild.diff and use it to create the new ebuild for version 2.20.0 in a local overlay:

/usr/local/portage/dev-lang/gambas/gambas-2.20.0.ebuild

Then download from the same Gentoo Bugzilla page the file gambas-2.20.0-FLAGS.patch and put it in the directory:

/usr/local/portage/dev-lang/gambas/files/

Then create a manifest for the package using the ebuild command, and finally merge the package using the emerge command. Don't forget to do an emerge --sync && layman -S beforehand.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: What happened with Gambas IDE?

Postby raregazz » Sat Apr 17, 2010 19:38

Hello Fitzcarraldo.

I downloaded the file http://piotrkosoft.net/pub/mirrors/gentoo-portage/dev-util/gambas/gambas-2.16.0.ebuild and the diff file with the patch, but I don't know how to do to make the new ebuild for version 2.20.0 in a local overlay.

I make the /usr/local/portage/dev-lang/gambas/ directory and I put the 3 files inside.

Code: Select all
raregazz-laptop gambas # ls
files  gambas-2.16.0.ebuild  gambas-2.20.0.ebuild.diff  Manifest
raregazz-laptop gambas #


I add this line to make.conf

Code: Select all
PORTDIR_OVERLAY="/usr/local/portage"


I create de manifest with

Code: Select all
raregazz-laptop gambas # ebuild gambas-2.16.0.ebuild manifest


Also...
Code: Select all
emerge --sync && layman -S



and then, I don't know more to do... :cry: (How should I create the gambas-2.20.0.ebuild?)

Code: Select all
raregazz-laptop gambas # emerge -pv gambas
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-lang/gambas-2.16.0  USE="bzip2 gtk opengl pcre pdf sdl svg v4l xml zlib -corba -curl -debug -doc -examples -firebird -mysql -odbc -postgres -qt3 -smtp -sqlite -sqlite3" 0 kB [1]                                                                                           

Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage

!!! The following installed packages are masked:
- net-wireless/broadcom-sta-5.60.48.36 (masked by: Broadcom license(s))
A copy of the 'Broadcom' license is located at '/usr/portage/licenses/Broadcom'.

- dev-java/sun-jre-bin-1.6.0.19 (masked by: dlj-1.1 license(s))
A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.

- games-fps/quake3-data-1.32b (masked by: Q3AEULA license(s))
A copy of the 'Q3AEULA' license is located at '/usr/portage/licenses/Q3AEULA'.

- dev-java/sun-jdk-1.6.0.19 (masked by: dlj-1.1 license(s))
- games-fps/enemy-territory-2.60b (masked by: RTCW-ETEULA license(s))
A copy of the 'RTCW-ETEULA' license is located at '/usr/portage/licenses/RTCW-ETEULA'.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

raregazz-laptop gambas #



Many thanks and sorry for my poor English
Last edited by raregazz on Sat Apr 17, 2010 20:34, edited 1 time in total.
raregazz
Baby Hen
 
Posts: 9
Joined: Sat Apr 03, 2010 1:58

Re: What happened with Gambas IDE?

Postby Fitzcarraldo » Sat Apr 17, 2010 20:33

Well, you could have used Google to find out how to apply a diff file, which is what I have just done now. Actually, if you look inside the diff file, this particular diff file is so simple that you could edit the ebuild file manually. See the line with the minus sign in front of it? That means "replace this line in gambas-2.16.0.ebuild with the line after it here with the plus sign in front of it". See the the line with the plus sign in front of it? That means "put this line in gambas-2.16.0.ebuild to replace the line shown here with the minus sign in front of it".

But, to do it automatically (I'm assuming you downloaded the files to your Desktop), you could use the commands:

Code: Select all
# cd /home/raregazz/Desktop
# patch < gambas-2.20.0.ebuild.diff
# mv gambas-2.16.0.ebuild gambas-2.20.0.ebuild

Delete the diff file that you copied to the /usr/local/portage/dev-lang/gambas/ directory, as that should not be there. The purpose of the diff file is to show the difference between the files gambas-2.16.0.ebuild and gambas-2.20.0.ebuild.

You need to build the latest version of Gambas (gambas-2.20.0) so why did you create a manifest for the old version 2.16.0?

Here's what you should have done after you created the file gambas-2.20.0.ebuild, either by manually editing it or by applying the diff file, assuming the files are on your Desktop:

Code: Select all
# mkdir -p /usr/local/portage/dev-lang/gambas/files/
# cp /home/raregazz/Desktop/gambas-2.20.0.ebuild /usr/local/portage/dev-lang/gambas/
# cp /home/raregazz/Desktop/gambas-2.20.0-FLAGS.patch /usr/local/portage/dev-lang/gambas/files/
# cd /usr/local/portage/dev-lang/gambas
# ebuild gambas-2.20.0.ebuild manifest
# emerge -1v gambas

Before you do the above, make sure that the file /etc/make.conf contains the line:

Code: Select all
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/"

While you're at it, also add the following line in case Gambas requires a licence agreement:

Code: Select all
ACCEPT_LICENSE="*"

And, just to get rid of Portage's nagging about a missing name for your local overlay:

Code: Select all
# mkdir /usr/local/portage/profiles
# echo "local_overlay" > /usr/local/portage/profiles/repo_name


I have not tried to build Gambas myself, so I don't know if it will build.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: What happened with Gambas IDE?

Postby raregazz » Sat Apr 17, 2010 21:05

Thanks for yor reply and sorry for "diff patch".

I' ve make all you said but impossible to install.

Code: Select all
raregazz-laptop gambas # emerge -1v gambas


This is the log file...


Code: Select all
[33;01m* Please fix your ebuild to not inherit the deprecated qt3.eclass
 * CPV:  dev-lang/gambas-2.20.0
 * REPO:
 * USE:  bzip2 elibc_glibc gtk kernel_linux opengl pcre pdf sdl svg userland_GNU v4l x86 xml zlib
 *
 * The Gambas IDE currently cannot be be build without Qt being enabled.
 *
 * You are using the USE flag gtk, but not qt3.  Attempting to use GTK instead
 * of Qt for certain components.  This is considered EXPERIMENTAL and the
 * resulting components may not function.
 *
>>> Unpacking source...
>>> Unpacking gambas2-2.20.0.tar.bz2 to /var/tmp/portage/dev-lang/gambas-2.20.0/work
>>> Source unpacked in /var/tmp/portage/dev-lang/gambas-2.20.0/work
>>> Preparing source in /var/tmp/portage/dev-lang/gambas-2.20.0/work/gambas2-2.20.0 ...
 * Applying sed no-Qt-use-GTK-workaround-patch (EXPERIMENTAL) ...
  [ ok ]
 * Applying sed no-automagic-patch ...
  [ ok ]

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/local/portage/dev-lang/gambas/files/gambas-2.8.0-libtool.patch
 *   ( gambas-2.8.0-libtool.patch )

 * ERROR: dev-lang/gambas-2.20.0 failed:
 *   Cannot find $EPATCH_SOURCE!
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_prepare
 *   environment, line 3123:  Called epatch '/usr/local/portage/dev-lang/gambas/files/gambas-2.8.0-libtool.patch'
 *   environment, line 1727:  Called die
 * The specific snippet of code:
 *               die "Cannot find \$EPATCH_SOURCE!";
 *
 * If you need support, post the output of 'emerge --info =dev-lang/gambas-2.20.0',
 * the complete build log and the output of 'emerge -pqv =dev-lang/gambas-2.20.0'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/lib/entropy/logs/dev-lang:gambas-2.20.0:20100417-194306.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gambas-2.20.0/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/gambas-2.20.0/work/gambas2-2.20.0'


And downloading and copying the file gambas-2.8.0-libtool.patch in files directory...

Code: Select all
 * Please fix your ebuild to not inherit the deprecated qt3.eclass
 * CPV:  dev-lang/gambas-2.20.0
 * REPO:
 * USE:  bzip2 elibc_glibc gtk kernel_linux opengl pcre pdf sdl svg userland_GNU v4l x86 xml zlib
 *
 * The Gambas IDE currently cannot be be build without Qt being enabled.
 *
 * You are using the USE flag gtk, but not qt3.  Attempting to use GTK instead
 * of Qt for certain components.  This is considered EXPERIMENTAL and the
 * resulting components may not function.
 *
>>> Unpacking source...
>>> Unpacking gambas2-2.20.0.tar.bz2 to /var/tmp/portage/dev-lang/gambas-2.20.0/work
>>> Source unpacked in /var/tmp/portage/dev-lang/gambas-2.20.0/work
>>> Preparing source in /var/tmp/portage/dev-lang/gambas-2.20.0/work/gambas2-2.20.0 ...
 * Applying sed no-Qt-use-GTK-workaround-patch (EXPERIMENTAL) ...
  [ ok ]
 * Applying sed no-automagic-patch ...
  [ ok ]
 * Applying gambas-2.8.0-libtool.patch ...

 * Failed Patch: gambas-2.8.0-libtool.patch !
 *  ( /usr/local/portage/dev-lang/gambas/files/gambas-2.8.0-libtool.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/dev-lang/gambas-2.20.0/temp/gambas-2.8.0-libtool.patch.out

 * ERROR: dev-lang/gambas-2.20.0 failed:
 *   Failed Patch: gambas-2.8.0-libtool.patch!
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_prepare
 *   environment, line 3123:  Called epatch '/usr/local/portage/dev-lang/gambas/files/gambas-2.8.0-libtool.patch'
 *   environment, line 1842:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =dev-lang/gambas-2.20.0',
 * the complete build log and the output of 'emerge -pqv =dev-lang/gambas-2.20.0'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/lib/entropy/logs/dev-lang:gambas-2.20.0:20100417-195817.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gambas-2.20.0/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/gambas-2.20.0/work/gambas2-2.20.0'


I am desperate, I don't know more to try.

Thanks man!
raregazz
Baby Hen
 
Posts: 9
Joined: Sat Apr 03, 2010 1:58

Re: What happened with Gambas IDE?

Postby Fitzcarraldo » Sat Apr 17, 2010 22:40

Just to see what happens, before we try to sort through the problem with the 2.20.0 version, try to build the 2.16.0 version using the original gambas-2.16.0.ebuild downloaded from the site I gave the link for earlier:

Code: Select all
# cd ebuild /usr/local/portage/dev-lang/gambas
# cp /home/raregazz/Desktop/gambas-2.16.0.ebuild /usr/local/portage/dev-lang/gambas/
# ebuild gambas-2.16.0.ebuild manifest
# emerge -1v gambas
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: What happened with Gambas IDE?

Postby Fitzcarraldo » Sat Apr 17, 2010 22:45

Looking quickly at your error messages, some other things to try:

Code: Select all
# USE="-gtk qt3" emerge -1v gambas

Code: Select all
# USE="-gtk" emerge -1v gambas

Code: Select all
# USE="-qt3" emerge -1v gambas

Code: Select all
# USE="qt3" emerge -1v gambas
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: What happened with Gambas IDE?

Postby Fitzcarraldo » Sat Apr 17, 2010 23:13

Looking at your error message again and Comment #6 in the Gentoo Bugzilla Report that I linked to earlier, you also have to switch off the xml USE flag, so add "-xml" into the list of USE flags before the emerge command.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: What happened with Gambas IDE?

Postby raregazz » Sun Apr 18, 2010 0:52

Thanks Fitzcarraldo for your answers...

I tried all possible combinations that you told but it's impossible.

Neither 2.16 , 2.20. I think that the problem resides in qt3 libraries that aren't available (¿incompatibility?) in Sabayon 5.2 version.

Otherwise many thanks for your comprehension and help.

I desist of installing this great IDE in Sabayon. The solution will be to install another distribution with VBox to work there with Gambas 2.20.

Thanks and best regards from Spain.
raregazz
Baby Hen
 
Posts: 9
Joined: Sat Apr 03, 2010 1:58

Re: What happened with Gambas IDE?

Postby Fitzcarraldo » Sun Apr 18, 2010 5:58

OK. Due to the Eyjafjallajokull volcano eruption I'm stuck half way around the world from home, so it's not a good time for me to look at it in more detail at the moment. When I eventually manage to get home I'll have another try, to see if I can find a way to get it to build. Until then, saludos.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Next

Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest