LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Buildscripts for E17 on Slackware64 (https://www.linuxquestions.org/questions/slackware-14/buildscripts-for-e17-on-slackware64-772843/)

voyciz 12-01-2009 11:38 PM

Buildscripts for E17 on Slackware64
 
Well I really missed the eye candy of Enlightenment. It has let me down in the past, but I've heard that newer versions are more stable. Using the slackbuild scripts from slackbuilds.org, I couldn't get some of the packages to compile on Slack64-13. After tweaking it, it now works. The problem seems to be that for some reason it wants to look in /usr/lib for some libraries rather than /usr/lib64 and will complain about it being in the wrong format. I've just used rename and ln to create a messy workaround and get it to build. Modification of the evas, ecore, e_dbus, and enlightenment buildscripts was necessary. The modifications encompass the make statements, so you can delete the make statements from the slackbuilds and throw these lines in where they were.

For evas:
Code:

rename libX JUMPER /usr/lib/*
rename libfontconfig HOBO /usr/lib/*
rename libfreetype SUMO /usr/lib/*
rename libgnutls HAHA /usr/lib/*
rename libxml2 MAUI /usr/lib/*
rename libpangoft2-1.0.so FROGGY /usr/lib/*
rename libpangocairo-1.0.so DRUMS /usr/lib/*
rename libpango-1.0.so NANA /usr/lib/*
rename libgdk_pixbuf-2.0.so TED /usr/lib/*
rename libgio-2.0.so GEOLD /usr/lib/*
rename libcairo.so FLUFLAH /usr/lib/*
rename libpixman-1.so LUMAR /usr/lib/*
rename libxcb.so WHYME /usr/lib/*
rename libgobject-2.0.so NONO /usr/lib/*
rename libgmodule-2.0.so WHATTHE /usr/lib/*
rename libglib-2.0.so ORJO /usr/lib/*
rename libtiff.so MANA /usr/lib/*
for xlib in /usr/lib64/libX*.la; do
        ln -s $xlib /usr/lib/$(basename $xlib)
done
for olib in libfontconfig.la libfreetype.la libgnutls.la libpangoft2-1.0.so \
                libxml2.so libpangocairo-1.0.so libpango-1.0.so libgdk_pixbuf-2.0.so \
                libgio-2.0.so libcairo.so libpixman-1.so libxcb.so libgobject-2.0.so \
                libgmodule-2.0.so libglib-2.0.so libtiff.so; do
        ln -s /usr/lib64/$olib /usr/lib/$olib
done

make
make install DESTDIR=$PKG


rename MANA libtiff.so /usr/lib/*
rename ORJO libglib-2.0.so /usr/lib/*
rename WHATTHE libgmodule-2.0.so /usr/lib/*
rename WHYME libxcb.so /usr/lib/*
rename NONO libgobject-2.0.so /usr/lib/*
rename LUMAR libpixman-1.so /usr/lib/*
rename FLUFLAH libcairo.so /usr/lib/*
rename GEOLD libgio-2.0.so /usr/lib/*
rename TED libgdk_pixbuf-2.0.so /usr/lib/*
rename NANA libpango-1.0.so /usr/lib/*
rename DRUMS libpangocairo-1.0.so /usr/lib/*
rename FROGGY libpangoft2-1.0.so /usr/lib/*
rename MAUI libxml2 /usr/lib/*
rename HAHA libgnutls /usr/lib/*
rename SUMO libfreetype /usr/lib/*
rename JUMPER libX /usr/lib/*
rename HOBO libfontconfig /usr/lib/*

For ecore:
Code:

rename libX JUMPER /usr/lib/*
rename libfontconfig HOBO /usr/lib/*
rename libfreetype SUMO /usr/lib/*
rename libgnutls HAHA /usr/lib/*
rename libxml2 MAUI /usr/lib/*
rename libpangoft2-1.0.so FROGGY /usr/lib/*
rename libpangocairo-1.0.so DRUMS /usr/lib/*
rename libpango-1.0.so NANA /usr/lib/*
rename libgdk_pixbuf-2.0.so TED /usr/lib/*
rename libgio-2.0.so GEOLD /usr/lib/*
rename libcairo.so FLUFLAH /usr/lib/*
rename libpixman-1.so LUMAR /usr/lib/*
rename libxcb.so WHYME /usr/lib/*
rename libgobject-2.0.so NONO /usr/lib/*
rename libgmodule-2.0.so WHATTHE /usr/lib/*
rename libglib-2.0.so ORJO /usr/lib/*
rename libtiff.so MANA /usr/lib/*
for xlib in /usr/lib64/libX*.la; do
        ln -s $xlib /usr/lib/$(basename $xlib)
done
for olib in libfontconfig.la libfreetype.la libgnutls.la libpangoft2-1.0.so \
                libxml2.so libpangocairo-1.0.so libpango-1.0.so libgdk_pixbuf-2.0.so \
                libgio-2.0.so libcairo.so libpixman-1.so libxcb.so libgobject-2.0.so \
                libgmodule-2.0.so libglib-2.0.so libtiff.so; do
        ln -s /usr/lib64/$olib /usr/lib/$olib
done

make
make install DESTDIR=$PKG


rename MANA libtiff.so /usr/lib/*
rename ORJO libglib-2.0.so /usr/lib/*
rename WHATTHE libgmodule-2.0.so /usr/lib/*
rename WHYME libxcb.so /usr/lib/*
rename NONO libgobject-2.0.so /usr/lib/*
rename LUMAR libpixman-1.so /usr/lib/*
rename FLUFLAH libcairo.so /usr/lib/*
rename GEOLD libgio-2.0.so /usr/lib/*
rename TED libgdk_pixbuf-2.0.so /usr/lib/*
rename NANA libpango-1.0.so /usr/lib/*
rename DRUMS libpangocairo-1.0.so /usr/lib/*
rename FROGGY libpangoft2-1.0.so /usr/lib/*
rename MAUI libxml2 /usr/lib/*
rename HAHA libgnutls /usr/lib/*
rename SUMO libfreetype /usr/lib/*
rename JUMPER libX /usr/lib/*
rename HOBO libfontconfig /usr/lib/*

For e_dbus:
Code:

rename libdbus-1.so JAY /usr/lib/*
ln -s /usr/lib64/libdbus-1.so /usr/lib/libdbus-1.so

make
make install DESTDIR=$PKG

rename JAY libdbus-1.so /usr/lib/*

For enlightenment:
Code:

rename libdbus-1.so JAY /usr/lib/*
rename libasound.so WUMP /usr/lib/*
for olib in libdbus-1.so libasound.so; do
        ln -s /usr/lib64/$olib /usr/lib/$olib
done

make
make install DESTDIR=$PKG

rename JAY libdbus-1.so /usr/lib/*
rename WUMP libasound.so /usr/lib/*

Yeah it's kinda weird, but by doing this I now have e17 compiled and running on my slackware64 machine. How stable is it? Well, we'll find out :). If there is something incredibly simple that I'm missing that actually allows for doing this the proper way, please let me know!

Daedra 12-02-2009 12:34 AM

I had this problem with the multilib packages, there are a few packages (fontconfig, gtk+, glib... that I know of) that can cause the "symobls in wrong format" error since it finds the wrong 32bit libraries first. I just uninstalled the problem compat32 packages and then reinstalled them after I was done. I sent Alien Bob an email about this and I believe he is going to look into when he gets time.

voyciz 12-02-2009 09:14 AM

Well it has to be a problem with the software that we're building, doesn't it? I mean it should be looking in /usr/lib64 first I would think with LIBDIRSUFFIX set in the buildscript or LD_LIBRARY_PATH. And in the case of E17, I couldn't just remove the 32-bit libs, because when I did that, then it complained that they weren't there, that's why I had to use links.

voyciz 12-02-2009 09:50 AM

Hmmm...it appears I screwed up somewhere here. Many of my 32-bit libs are now missing and still appear as links to the 64-bit ones. Guess I'll have to reinstall those compat-32 packages. What a pain.


All times are GMT -5. The time now is 08:27 PM.