Author Topic: need help packaging aptanastudio  (Read 1419 times)

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
need help packaging aptanastudio
« on: February 02, 2012, 11:42:27 AM »
Hi guys,

i try to update aptanastudio. the package building works clearly but i cant install the package.

I think it have to do with this line in the spec file

Code: [Select]
#Get rid of this annoying lib requirement
%define _requires_exceptions libgtksuperwin.so\\|libgtkembedmoz.so\\|libxpcom.so \\|libc.so.6()(64bit)\\|libc.so.6(GLIBC_2.2.5)(64bit)\\|libc.so.6(GLIBC_2.4)(64bit)\\|libc.so.7()(64bit)\\|libdl.so.1\\|libdl.so.1()(64bit)\\|libm.so.5.2\\|libm.so.5.2()(64bit)\\|libm.so.6()(64bit)\\|libstdc++.so.50.0\\|libstdc++.so.50.0()(64bit)\\|libstdc++.so.6()(64bit)\\|libstdc++.so.6(GLIBCXX_3.4)(64bit)\\|libthr.so.3()(64bit)\\|libutil.so.1()(64bit)\\|libutil.so.1(GLIBC_2.2.5)(64bit)


if i try to install the package i got the following error

Code: [Select]
libstdc++.so.6(GLIBCXX_3.4.14)(64bit) is needed by aptanastudio-3.0.8-1ghostbunny2012.noarch

but i cant get this libs on an 32bit system so what should i do?

thanks in advance
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: need help packaging aptanastudio
« Reply #1 on: February 02, 2012, 08:42:54 PM »
Heya,

I am assuming you were building it on a 64-bit build environment because the libraries used are 64-bit. And I am guessing you were installing it to a 32-bit architecture? Are my assumptions correct?

Is the specfile you are using from a previous build that's already on the x86_64 repo (3.0.6)? It might help if you can compare that specfile with that from the 32-bit repo (3.0.1).

HTH
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
Re: need help packaging aptanastudio
« Reply #2 on: February 03, 2012, 02:41:26 AM »
HI archie,

i build it  and try to install it on a 32bit system, i dont have any 64bit maschine. And i think i downloaded the srpm from the pre version from the 32bit part of the nluug repo but i will check it again on sunday.

so i'm back on sunday have a nice weekend :D
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
Re: need help packaging aptanastudio
« Reply #3 on: February 05, 2012, 10:29:29 AM »
hi again,

back to build this package :D

i checked the srpm i used a base of the update. it is the 32bit srpm from version 3.0.1 and the spec file in this srpm contains this strange line with the 64bit libs.

should i remove all libs with the (64bit) tag?

greets
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: need help packaging aptanastudio
« Reply #4 on: February 05, 2012, 10:31:56 AM »
Maybe better you post your specfile  ::)

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
Re: need help packaging aptanastudio
« Reply #5 on: February 05, 2012, 11:18:15 AM »
your wish is my command ;D :D :P

Code: [Select]

#Get rid of this annoying lib requirement
%define _requires_exceptions libgtksuperwin.so\\|libgtkembedmoz.so\\|libxpcom.so \\|libc.so.6()(64bit)\\|libc.so.6(GLIBC_2.2.5)(64bit)\\|libc.so.6(GLIBC_2.4)(64bit)\\|libc.so.7()(64bit)\\|libdl.so.1\\|libdl.so.1()(64bit)\\|libm.so.5.2\\|libm.so.5.2()(64bit)\\|libm.so.6()(64bit)\\|libstdc++.so.50.0\\|libstdc++.so.50.0()(64bit)\\|libstdc++.so.6()(64bit)\\|libstdc++.so.6(GLIBCXX_3.4)(64bit)\\|libthr.so.3()(64bit)\\|libutil.so.1()(64bit)\\|libutil.so.1(GLIBC_2.2.5)(64bit)

Name: aptanastudio
Version: 3.0.8
Release: %mkrel 1
Summary: A java based web development environment
Summary(de): Eine Java basierte Web-Entwicklungsumgebung
Group:    Development/Other
License: GPL
URL:      http://www.aptana.com/
Source:  %name-%version.tar.xz
Source1: aptanastudio-48.png
Requires: java >= 1.5
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
Obsoletes: %name < %version

%description
Build web applications quickly and easily using the
industry’s leading web application IDE. Aptana Studio
harnesses the flexibility of Eclipse and focuses it
into a powerful web development engine.

%description -l de
Bauen Sie schnell und einfach Web-Awendungen mit der
führenden Web-Programm IDE. Aptana Studio nutzt die
Flexibilität von Eclipse und formt daraus eine
mächtig Webentwicklungsengine.

%prep

%setup -q -n aptanastudio

%install

export DONT_STRIP=1
rm -rf %{buildroot}

#folders
mkdir -p %{buildroot}/%{_libdir}/%{name}
mkdir -p %buildroot/%_datadir/pixmaps

#icon
install -m 644 %SOURCE1 %buildroot/%_datadir/pixmaps/%{name}.png

#transfer
cp -af * %{buildroot}/%{_libdir}/%{name}/


#xdg menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Aptana Studio
Comment=Java Ide Client
Comment[de]=Auf Eclipse basirende IDE zur Webentwicklung
Exec=%{_bindir}/%{name}
Icon=%_datadir/pixmaps/%{name}.png
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Development-Tools;
EOF

#make Excutable
mkdir -p %{buildroot}%{_bindir}
cat > $RPM_BUILD_ROOT%{_bindir}/%{name} << EOF
cd %{_libdir}/%{name}
./studio3
cd ..
EOF

chmod 0755 $RPM_BUILD_ROOT%{_bindir}/%{name}


%clean
rm -rf %{buildroot}

%post
%{update_desktop_database}

%postun
%{clean_desktop_database}


%files
%defattr(-,root,root,0755)
%_bindir/%name
%{_libdir}/%{name}/*
%_datadir/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%changelog
* Thu Feb 02 2012 ghostbunny <hmhaase at pclinuxosusers dot de> 3.0.6-1pclos2012
- 3.0.1
- added german summary, description and Comment in desktop file section
- renamed the spec file to correct application name (atpanastudio -> aptanastudio) :)

* Sun May 22 2011 Texstar <texstar at gmail.com> 3.0.1-1pclos2011
- 3.0.1

* Tue Nov 09 2010 Texstar <texstar at gmail.com> 2.0-1pclos2010
- create package


The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: need help packaging aptanastudio
« Reply #6 on: February 05, 2012, 11:54:48 AM »
I'm not sure, but will this work?

Code: [Select]
%ifarch x86_64
%define _requires_exceptions libgtksuperwin.so\\|libgtkembedmoz.so\\|libxpcom.so \\|libc.so.6()(64bit)\\|libc.so.6(GLIBC_2.2.5)(64bit)\\|libc.so.6(GLIBC_2.4)(64bit)\\|libc.so.7()(64bit)\\|libdl.so.1\\|libdl.so.1()(64bit)\\|libm.so.5.2\\|libm.so.5.2()(64bit)\\|libm.so.6()(64bit)\\|libstdc++.so.50.0\\|libstdc++.so.50.0()(64bit)\\|libstdc++.so.6()(64bit)\\|libstdc++.so.6(GLIBCXX_3.4)(64bit)\\|libthr.so.3()(64bit)\\|libutil.so.1()(64bit)\\|libutil.so.1(GLIBC_2.2.5)(64bit)
%else
%define _requires_exceptions libgtksuperwin.so\\|libgtkembedmoz.so\\|libxpcom.so \\|libc.so.6()\\|libc.so.6(GLIBC_2.2.5)\\|libc.so.6(GLIBC_2.4)\\|libc.so.7()\\|libdl.so.1\\|libdl.so.1()\\|libm.so.5.2\\|libm.so.5.2()\\|libm.so.6()\\|libstdc++.so.50.0\\|libstdc++.so.50.0()\\|libstdc++.so.6()\\|libstdc++.so.6(GLIBCXX_3.4)\\|libthr.so.3()\\|libutil.so.1()\\|libutil.so.1(GLIBC_2.2.5)
%endif

Good luck...

EDIT: corrected code
« Last Edit: February 05, 2012, 12:02:11 PM by Leiche »

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
Re: need help packaging aptanastudio
« Reply #7 on: February 05, 2012, 12:22:04 PM »
it does not help, i get the same error on installing like  before :(

compared the spec with the spec in the 64bit spec vor version 3.0.6 it is the same, there are no differences.

The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: need help packaging aptanastudio
« Reply #8 on: February 05, 2012, 12:33:05 PM »
Working here on a same issues for xnviewmp, when i get a solution i will post  ::)

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: need help packaging aptanastudio
« Reply #9 on: February 05, 2012, 02:04:00 PM »
But working fine for 32 bit?

Send it up if you corrected Versions number  ;D

For 64 bit, we will find a solution in next days...

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
Re: need help packaging aptanastudio
« Reply #10 on: February 05, 2012, 03:24:22 PM »
no i think you didnt understand something,

i have no 64bit maschine so i couldnt test on 64bit. im only working on 32bit and there it does not work, if you want you can check it for 64bit. but for 32bit it didnt work
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: need help packaging aptanastudio
« Reply #11 on: February 05, 2012, 03:40:40 PM »
ohhh, my mistake..., sorry

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: need help packaging aptanastudio
« Reply #12 on: February 06, 2012, 07:26:58 AM »
Heya ghostbunny.

Have you tried a build commenting out %define _requires_exceptions?

Code: [Select]
#define _requires_exceptions ...
I am on my 64-bit so I am unable to check if that will work but it is worth a try. Do not delete the define line but you can comment it out.

Good luck.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1161
Re: need help packaging aptanastudio
« Reply #13 on: February 06, 2012, 07:43:13 AM »
it becomes strange, i commented this line, but on installation says can't install because of missing libs

Code: [Select]

libc.so.6()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libc.so.6(GLIBC_2.2.5)(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libc.so.6(GLIBC_2.4)(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libc.so.7()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libdl.so.1 wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libdl.so.1()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libm.so.6()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libstdc++.so.6()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libstdc++.so.6(GLIBCXX_3.4.14)(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libstdc++.so.6(GLIBCXX_3.4)(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libthr.so.3()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libutil.so.1()(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch
libutil.so.1(GLIBC_2.2.5)(64bit) wird benötigt von aptanastudio-3.0.8-1ghostbunny2012.noarch

"wird benötigt von" means "is needed by"

The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: need help packaging aptanastudio
« Reply #14 on: February 06, 2012, 09:21:55 AM »
I'm sure that the %define _requires_exceptions is required because the source tarball has pre-built ELF executables in it (a mixture of 64 bit and 32 bit and other arches too).

Maybe a silly question but have you tried adding libstdc++.so.6(GLIBCXX_3.4.14)(64bit) to the list of exceptions?

However, it probably should be a requirement on 64 bit systems, so a solution like Leiche suggested may be necessary in the long run.

Terry

« Last Edit: June 02, 2012, 06:15:09 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|