Jump to content

libdvdcss on SuSE ?


 Share

Recommended Posts

Ok I'm playing around on my laptop with sort of a SuSE beta. So apt-get for suse just wont due.

 

I need libdvdcss to play a dvd in kaffeine so I go to packman thats the best German translation I get from it.

 

 

 

If you load libdvdcss the tar.bz2-Datei into to nosrc.rpm suitable version from  videolan , copy from file/usr/src/packages/SOURCES /, load you nosrc.rpm down and you translate the library also RPM -- rebuild -- target=i686 libdvdcss*.nosrc.rpm. The finished RPMs is then under/to usr/src/packages/RPMS/i686 /, which can to be installed her as used.

So I go out get libdvdcss, compile it in /usr/src/packages/SOURCE and then

rpmbuild --rebuild --target=i686 libdvdcss*.nosrc.rpm

 

Get the following error

 

  RPM build errors:

   user manfred does not exist - using root

   user manfred does not exist - using root

   Bad exit status from /var/tmp/rpm-tmp.80416 (%install)

 

Contents of /var/tmp/rpm-tmp.80416

 

# more /var/tmp/rpm-tmp.80416

#!/bin/sh



 RPM_SOURCE_DIR="/usr/src/packages/SOURCES"

 RPM_BUILD_DIR="/usr/src/packages/BUILD"

 RPM_OPT_FLAGS="-O2 -g -march=i686 -mcpu=i686"

 RPM_ARCH="i386"

 RPM_OS="linux"

 export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS

 RPM_DOC_DIR="/usr/share/doc/packages"

 export RPM_DOC_DIR

 RPM_PACKAGE_NAME="libdvdcss2"

 RPM_PACKAGE_VERSION="1.2.8"

 RPM_PACKAGE_RELEASE="0.pm.1"

 export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE

 RPM_BUILD_ROOT="/var/tmp/libdvdcss2-1.2.8-0.pm.1-root"

 export RPM_BUILD_ROOT





 set -x

 umask 022

 cd /usr/src/packages/BUILD

cd libdvdcss-1.2.8

make DESTDIR=/var/tmp/libdvdcss2-1.2.8-0.pm.1-root install

cd /var/tmp/libdvdcss2-1.2.8-0.pm.1-root/usr/lib

ln -s libdvdcss.so.2 libdvdcss.so.1













       RPM_BUILD_ROOT="/var/tmp/libdvdcss2-1.2.8-0.pm.1-root"

       export RPM_BUILD_ROOT

       test -x /usr/sbin/Check -a $UID = 0 -o -x /usr/sbin/Check -a ! -z "$RPM_BUILD_ROOT" && {

           echo "I call /usr/sbin/Check..."

           /usr/sbin/Check

       }

   /usr/lib/rpm/brp-compress

 

Thoughts, feelings, anything?

Link to comment
Share on other sites

why make an rpm (well other than being able to install and uninstall easily) when you could probably just compile it with half the effort?

 

just make sure that where ever you prefix it to that that is in ld.so.conf.

 

EDIT: were you root when you went to build the rpm? rpms may need to be built as root (to ensure proper execution of the rpm buildscript and to get the proper permissions on your package files).

Link to comment
Share on other sites

you mean this source

 

tar -zxvf libdvdcss-1.2.8

cd libdvdcss-1.2.8

./configure --prefix=/usr

make

su

make install

 

then just stuff the directory in a "savedsource" dir so that you can uninstall it if need be with make uninstall. that is what i do on my mac and it works great (i need it on my mac for transcode btw and not for the native dvd player). as long as xine/mplayer/whatever has dvd support compiled in then you should be good to go from there.

 

edit: oh yeah and run ldconfig as root after too i suppose

Link to comment
Share on other sites

I already had built that one, it was libdvdcss"2" that it says it needs?

 

It wont read a dvd, says because of laws you have to do it your self, you thank that it needs a different library than that one?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...