Re: [CinePaint] Cinepaint-1.0 / emerge fail on Gentoo (Sabayon overlay)

Peter Langfelder <[email protected]> Mon, 13 Feb 2012 09:04:05 -0800
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <CA+hbrhX+8PUiXdsfWV6K_e0tFoJ8xEmDw=hLcCToH=32ziqtAQ@mail.gmail.com>
I have observed this bug as well. My patch (see point 1 below) will
fix it but you will have to apply it to the source - I'm not sure how
to combine it with the emerge updater of gentoo. Here's what I wrote
recently:


1. Fix a compile error that related to a double definition of type
ImfHalf. I solved this by commenting out the duplicate definition in
lib/float16.h and including the appropriate header
../libhalf/cinepaint_half.h .

2. Disable the icc_examin plugin since I wasn't able to get rid of the
DSO error even after modifying Makefile.in. The icc_examin plugin also
fails to compile if FTGL development files are not present, even
though the configure script is silent about them.

3. Fix all other DSO errors by including the necessary libraries in
the LDADD macro in Makefile.in files. I have not changed the
Makefile.am files. I suppose this could be done as well since they
seem to be used during the autogen.sh step.

Here are the steps to compile cinepaint:

1. Download the cinepaint-1.0.tgz tarball and unpack it:

tar -xvzf cinepaint-1.0.tgz

2. Navigate to the directory cinepaint, run autogen.sh, then navigate back =
up.

cd cinepaint
bash autogen.sh
cd ..

3. Download my patch from
http://peterlangfelder.com/Software/cinepaint_1.0.0_patchForFedoraDSObreaka=
ge.patch

and save it in the same directory as the original tarball.

4. Apply the patch:

patch -p0 < cinepaint_1.0.0_patchForFedoraDSObreakage.patch

5. Navigate to the directory cinepaint and follow the standard
configure, make, make install steps.

cd cinepaint
./configure
make
sudo make install

On Mon, Feb 13, 2012 at 7:55 AM,  <[email protected]> wrote:
> Hello,
>
> I tried emerging cinepaint-1.0 from the sabayon overlay ebuild on gentoo =
but it failed.
> Below are some outputs. I can also provide the output of emerge --info =
=A0or complete build.log
> if it may help.
>
> Thanks,
> Yanick
>
> ----------------------------------------------------------
> emerge -pqv =3Dmedia-video/cinepaint-1.0
> [ebuild =A0N =A0 =A0] media-video/cinepaint-1.0 =A0USE=3D"-gutenprint -te=
xt"
> ----------------------------------------------------------
> ----------------------------------------------------------
> build.log
> *Package: =A0 =A0media-video/cinepaint-1.0
> *Repository: sabayon
> *Maintainer: [email protected]
> *USE: =A0 =A0 =A0 =A0amd64 elibc_glibc kernel_linux multilib userland_GNU
> *FEATURES: =A0 sandbox
>>>> Unpacking source...
>>>> Unpacking cinepaint-1.0.tgz to /var/tmp/portage/media-video/cinepaint-=
1.0/work
>>>> Source unpacked in /var/tmp/portage/media-video/cinepaint-1.0/work
>>>> Preparing source in /var/tmp/portage/media-video/cinepaint-1.0/work/ci=
nepaint ...
> Applying cinepaint-0.22.1-rpath.patch ...
> Applying cinepaint-1.0-libpng1.5.patch ...
> ...
> ...
> ...
> In file included from ../../lib/../lib/plugin_main.h:29,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from libtile.c:11:
> ../../lib/../lib/float16.h:48: error: redefinition of typedef 'ImfHalf'
> ../../libhalf/cinepaint_half.h:5: note: previous declaration of 'ImfHalf'=
 was here

---------------------------------------------------------------------------=
---
Try before you buy =3D See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2