Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PBM: kde-base/kdemultimedia-3.5.8-r1 fails xine check
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4345
Location: Spa (Belgium)

PostPosted: Fri Feb 15, 2008 11:06 pm    Post subject: PBM: kde-base/kdemultimedia-3.5.8-r1 fails xine check Reply with quote

Hi.

I've been had with the idea of upgrading KDE from 3.5.7 to 3.5.8. Package kdemultimedia fails with a strange error about checking xine. It pretends an adequate version xine was detected from xine-config --version but another xine version exists (random version number given each time):
emerge -uD kde:
*** 'xine-config --version' returned 1.1.10, but XINE (-1.0.248990528)
*** was found! If xine-config was correct, then it is best
*** to remove the old version of XINE. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If xine-config was wrong, set the environment variable XINE_CONFIG
*** to point to the correct copy of xine-config, and remove the file config.cache
*** before re-running configure

emerge -uD kde #second run:
*** 'xine-config --version' returned 1.1.10, but XINE (-1.0.2113453296)
*** was found! If xine-config was correct, then it is best
...

emerge -uD kde #third run:
*** 'xine-config --version' returned 1.1.10, but XINE (-1.0.-1641168832)
*** was found! If xine-config was correct, then it is best
...

equery l xine:
[I--] [  ] media-libs/xine-lib-1.1.10.1 (1)
[I--] [  ] media-video/xine-ui-0.99.5 (0)

Wtf???
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Fri Feb 15, 2008 11:40 pm    Post subject: Reply with quote

See if an env-update makes any difference.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4345
Location: Spa (Belgium)

PostPosted: Sat Feb 16, 2008 11:28 am    Post subject: Reply with quote

Hey, the inverted-avatar-day is over? ;-)

Hopeless wrote:
See if an env-update makes any difference.

No, it doesn't. I think it's a problem with int/longint in a C test program that is created and invoked during the ./configure phase. I got this problem on my Core2 Duo laptop but not on my AthlonXP. The former is 64bit and the second 32bit architecture.

/var/tmp/portage/kde-base/kdemultimedia-3.5.8-r1/work/kdemultimedia-3.5.8/xine_artsplugin/configure.in.in:
#include <xine.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int
main ()
{
  int major, minor, sub;
   char *tmp_version;

  system ("touch conf.xinetest");

  /* HP/UX 9 (%@#!) writes to sscanf strings */
  tmp_version = (char *) strdup("$min_xine_version");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &sub) != 3) {
     printf("%s, bad version string\n", "$min_xine_version");
     exit(1);
   }

  if ((XINE_MAJOR_VERSION != $xine_config_major_version) ||
      (XINE_MINOR_VERSION != $xine_config_minor_version) ||
      (XINE_SUB_VERSION != $xine_config_sub_version))
    {
      printf("\n*** 'xine-config --version' returned %d.%d.%d, but XINE (%d.%d.%d)\n",
             $xine_config_major_version, $xine_config_minor_version, $xine_config_sub_version,
             XINE_MAJOR_VERSION, XINE_MINOR_VERSION, XINE_SUB_VERSION);
      printf("*** was found! If xine-config was correct, then it is best\n");
      printf("*** to remove the old version of XINE. You may also be able to fix the error\n");
...
    }
  else
    {
...
    }
  return 1;
}

I think the problem lies either in the declaration of the "int" variables or in the "sscanf" instruction. (I think I remember scanf must use different format strings between 64- and 32- bit platforms as far as integers are concerned.)

EDIT: Here's my (rather dirty) workaround; I changed kdemultimedia-3.5.8-r1.ebuild as follows:
/usr/local/portage/kde-base/kdemultimedia/kdemultimedia-3.5.8-r1.ebuild:
...
        # fix bug 128884
        filter-flags -fomit-frame-pointer

        # Not used anymore and scheduled for removal.
        export DO_NOT_COMPILE="${DO_NOT_COMPILE} mpeglib mpeglib_artsplug"

        rm configure

        # Patch xine_artsplugin configure script
        epatch ${FILESDIR}/kdemultimedia-xine.patch

        kde_src_compile
}

And here's kdemultimedia-xine.patch:
/usr/local/portage/kde-base/kdemultimedia/files/kdemultimedia-xine.patch:
--- old/xine_artsplugin/configure.in.in 2008-02-16 01:21:12.000000000 +0100
+++ new/xine_artsplugin/configure.in.in 2008-02-16 01:21:21.000000000 +0100
@@ -1635,6 +1635,7 @@
    char *tmp_version;

   system ("touch conf.xinetest");
+  return 0;

   /* HP/UX 9 (%@#!) writes to sscanf strings */
   tmp_version = (char *) strdup("$min_xine_version");

Quite dirty for it bypasses Xine checks but after two hours crawling at night into the package files I wanted to have it on my machine, now! for I knew Xine was Ok ;-)

EDIT: Instead of the above hack copy the patch contents that schachti is referring to in the section below.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root”


Last edited by VinzC on Mon Feb 18, 2008 1:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
jbosmans
n00b
n00b


Joined: 16 Feb 2008
Posts: 1
Location: Leuven, Belgium

PostPosted: Sat Feb 16, 2008 1:20 pm    Post subject: Worked for me Reply with quote

Thanks VinzC, that did the trick for me
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Feb 16, 2008 1:25 pm    Post subject: Reply with quote

There is already a bug report in b.g.o; a patch is provided, too.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
wlchase
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 76
Location: Texas

PostPosted: Sun Feb 17, 2008 5:09 pm    Post subject: Reply with quote

Can somebody help me figure out how to apply this patch? I've tried:

Code:
patch -i kdemultimedia-3.5.8-xine-x.y.z.w.patch /usr/portage/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild


and

Code:
patch  /usr/portage/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild kdemultimedia-3.5.8-xine-x.y.z.w.patch


to no avail.

TIA!
Bill
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4345
Location: Spa (Belgium)

PostPosted: Mon Feb 18, 2008 1:22 pm    Post subject: Reply with quote

wlchase wrote:
Can somebody help me figure out how to apply this patch?

That involves creating an overlay tree for kdemultimedia. Basically
  1. Create directory /usr/local/portage/kde-base/kdemultimedia
  2. Edit /etc/make.conf and add variable PORTDIR_OVERLAY="/usr/local/portage"
  3. Copy kdemultimedia ebuild to the portage overlay (e.g. cp -a $(equery w kdemultimedia) /usr/local/portage/kde-base/kdemultimedia)
  4. Copy the patch into the ./files directory and add an epatch instruction to the ebuild.
This is a rough approach and quite summarized because you might miss several files from the ./files directory, where the ebuild lies.

I gave a hint in the ebuild excerpt I posted above. It's much simpler since you start with a copy of an original ebuild.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
figueroa
Apprentice
Apprentice


Joined: 14 Aug 2005
Posts: 182
Location: Ohio-USA

PostPosted: Tue Feb 19, 2008 9:56 pm    Post subject: kdemultimedia xine patch Reply with quote

There have been somewhat helpful hints in the right direction, but nothing has been complete, so here goes, with apologies for the plagiarism:

1. Ensure that your make.conf has the line PORTDIR_OVERLAY="/usr/local/portage"
2. Create directory /usr/local/portage/kde-base/kdemultimedia
3. Copy files in /usr/portage/kde-base/kdemultimedia into the new directory as follows:
cp -a /usr/portage/kde-base/kdemultimedia/* /usr/local/portage/kde-base/kdemultimedia
4. Get the patch using:
curl -o kdemultimedia-3.5.8-xine-x.y.z.w.patch 'http://bugs.gentoo.org/attachment.cgi?id=143457&action=view'
5. Copy kdemultimedia-3.5.8-xine-x.y.z.w.patch into /usr/local/portage/kde-base/kdemultimedia/files
6. Edit the ebuild kdemultimedia-3.5.8-r1.ebuild adding the line:
${FILESDIR}/kdemultimedia-3.5.8-xine-x.y.z.w.patch"
to the patches section of the ebuild, being sure that it ends with the double quote ("), removing the double quote from the line above it.
7. Add the newly edited ebuild to the digest with the right file size with:
ebuild /usr/local/portage/kde-base/kdemultimedia/kdemultimedia-3.5.8-r1.ebuild digest

You should now be able to emerge kdemultimedia.

Sometimes, the real veterans here don't realize how little we ordinary users really know.
_________________
Andy Figueroa
andy@andyfigueroa.net
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4345
Location: Spa (Belgium)

PostPosted: Tue Feb 19, 2008 11:06 pm    Post subject: Reply with quote

Just a side note: if I understood correctly you don't need to compute digests anymore with portage 2.1.4*. It has just entered the stable branch.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
figueroa
Apprentice
Apprentice


Joined: 14 Aug 2005
Posts: 182
Location: Ohio-USA

PostPosted: Tue Feb 19, 2008 11:20 pm    Post subject: Reply with quote

VinzC wrote:
Just a side note: if I understood correctly you don't need to compute digests anymore with portage 2.1.4*. It has just entered the stable branch.


I'm x86 stable with sys-apps/portage-2.1.4.4 installed. I definitely had to set the digest for the amended ebuild. Took me quite a bit to re-learn how to do too. I have mixed feelings about the feature. I'd probably shoot a hole in my foot without a little error checking.
_________________
Andy Figueroa
andy@andyfigueroa.net
Back to top
View user's profile Send private message
ekki_123
n00b
n00b


Joined: 04 Jun 2006
Posts: 54
Location: Herxheim, Deutschland

PostPosted: Wed Feb 20, 2008 5:53 pm    Post subject: Re: kdemultimedia xine patch Reply with quote

figueroa wrote:
There have been somewhat helpful hints in the right direction, but nothing has been complete, so here goes, with apologies for the plagiarism:

...

Sometimes, the real veterans here don't realize how little we ordinary users really know.


Indeed, that's the first time in 3 yrs Gentoo that I used something like an overlay :-)

Many thanks for the excellent help, figueroa.

Cheers,
Ekki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum