You are not logged in.

#1 2009-10-27 17:05:09

fourreux
Member
Registered: 2008-03-12
Posts: 56

which package provides ... ?

I just wanted to ask whether arch linux provides a search function/service to get the name of a package that provides a particular object/...

In my case I was using lxdvdrip which is provided by AUR. It obviously uses libdvdread.so.3

So I was cheking on debian.org which package provides it.

http://packages.debian.org/lenny/libdvdread3

So I installed it via http://www.schlunix.org/archlinux/extra … pkg.tar.gz

I'm just wondering if I could have done that another way using arch linux resourses.

thanx in advance

Offline

#2 2009-10-27 17:17:45

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: which package provides ... ?

you can use pkgfile to find which package provide a file. that is in pkgtools which is in community

> pkgfile libdvdread.so
extra/libdvdread

Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-10-27 17:29:02

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

well, but:

pkgfile libdvdread.so.3

does not give me any output, as libdvdread.so.3 is outdated and replaced by libdvdread.so.4

Offline

#4 2009-10-27 17:37:10

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: which package provides ... ?

fourreux wrote:

well, but:

pkgfile libdvdread.so.3

does not give me any output, as libdvdread.so.3 is outdated and replaced by libdvdread.so.4

pkgfile libdvdread.so will do the trick. This works because normally <some_package>.so is a symlink to whatever the current version is.

Offline

#5 2009-10-27 17:49:36

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

Ok. I tried that. But if I'm looking for an outdated package (obviously as I looked for libdvdread and saw that it was at version 4 on my system) I wanted to find the apropriate version of it on schlunix.

debian.org packaging search function gave me:

Package: libdvdread3 (0.9.7-11)

So Installed that one from the schlunix site. The problem in the first place was that there is no package libdvdread with a version 3 number ... so I was confused and the debian site told me ok there's no such version number - pick 0.9.7 ....

Understand? Or is it me who is slow on the uptake (auf der leitung stehen ....)

Offline

#6 2009-10-27 17:51:59

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: which package provides ... ?

why don't you want to rebuild lxdvdrip to  linking agaisnt libdvdread.so.4?


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2009-10-27 18:01:13

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

interesting question ...
would that work? and how would I do that?

I have to say that I'm an "intermediate" linux user.

Offline

#8 2009-10-27 20:06:02

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: which package provides ... ?

How is it obvious that It uses libdvdread.so.3 ?

Assuming you didn't do this already :
Look for AUR,ABS,makepkg in the wiki to get some information about building packages in Arch. It's simple so don't worry . makepkg man page would be useful too .


English is not my native language .

Offline

#9 2009-10-27 20:20:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: which package provides ... ?

fourreux wrote:

interesting question ...
would that work? and how would I do that?

I have to say that I'm an "intermediate" linux user.

it will work. in the same way you did installed in the first place. i supposed you used yaourt -S lxdvdrip


Give what you have. To someone, it may be better than you dare to think.

Offline

#10 2009-10-27 21:00:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: which package provides ... ?

Worth noting that lxdvdrip is flagged out-of-date, because there's a newer upstream release. So you should change pkgver in the PKGBUILD before rebuilding.

Offline

#11 2009-10-27 21:20:14

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

tomk wrote:

So you should change pkgver in the PKGBUILD before rebuilding.

To any number? I don't understand.

The thing is, that I'm still able to use my previously installed lxdvdrip with:

LD_PRELOAD=/home/fourreux/oldpackages/libdvdread-0.9.7-2-i686.pkg/usr/lib/libdvdread.so.3

simply using the old libdvdread shared object.

If I, on the other hand, try to rebulid it by downloading the tarball, extracting it and doing

makepkg -s

it fails with:

dvdbackup.c: In function 'DVDGetFileSet':
dvdbackup.c:1360: error: 'dvd_stat_t' undeclared (first use in this function)
dvdbackup.c:1360: error: (Each undeclared identifier is reported only once
dvdbackup.c:1360: error: for each function it appears in.)
dvdbackup.c:1360: error: expected ';' before 'statbuf'
dvdbackup.c:1398: warning: implicit declaration of function 'DVDFileStat'
dvdbackup.c:1398: error: 'statbuf' undeclared (first use in this function)
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/fourreux/builds/lxdvdrip/src/lxdvdrip/dvdbackup'
make: *** [all] Error 2

Offline

#12 2009-10-27 21:27:08

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

well, well.

I just saw that the version I got installed is 1.71 and there's the version 1.74 from march 09 ...

So I'd probably should see how to fix this makepkg install error. Might open a new thread for that, buit untill doing so I'd apreciate any help in this one :-)

thanx

Offline

#13 2009-10-27 21:36:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: which package provides ... ?

Use 1.75, released in May.

Offline

#14 2009-10-27 22:30:10

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

ok. I'll try this another day. looking around in the wiki and simply trial and error didn't get me very far ;-)

What you are suggesting is that I should or could take the source files from the developers homepage and build my own PKGBUILD, make.patch and maybe, if all goes well, upload that to the AUR page .... ?

Simply getting PKGBUILD, switching the version number to 1.75 and using the old make.patch doesn't work. it results in:

==> Making package: lxdvdrip 1.75-1 i686 (Die Okt 27 23:26:06 CET 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading lxdvdrip-1.75.tar.gz...
--2009-10-27 23:26:06--  http://download.berlios.de/lxdvdrip/lxdvdrip-1.75.tar.gz
Resolving download.berlios.de... 195.37.77.141
Connecting to download.berlios.de|195.37.77.141|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.berlios.de/error/HTTP_NOT_FOUND.html.var [following]
--2009-10-27 23:26:06--  http://download.berlios.de/error/HTTP_NOT_FOUND.html.var
Connecting to download.berlios.de|195.37.77.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: "lxdvdrip-1.75.tar.gz.part"

    [ <=>                                   ] 1.031       --.-K/s   in 0s      

2009-10-27 23:26:06 (154 MB/s) - "lxdvdrip-1.75.tar.gz.part" saved [1031]

  -> Found make.patch in build dir
==> Validating source files with md5sums...
    lxdvdrip-1.75.tar.gz ... FAILED
    make.patch ... Passed
==> ERROR: One or more files did not pass the validity check!

Offline

#15 2009-10-27 22:38:52

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: which package provides ... ?

fourreux wrote:

ok. I'll try this another day. looking around in the wiki and simply trial and error didn't get me very far ;-)

Simply getting PKGBUILD, switching the version number to 1.75 and using the old make.patch doesn't work. it results in:

==> Making package: lxdvdrip 1.75-1 i686 (Die Okt 27 23:26:06 CET 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading lxdvdrip-1.75.tar.gz...
--2009-10-27 23:26:06--  http://download.berlios.de/lxdvdrip/lxdvdrip-1.75.tar.gz
Resolving download.berlios.de... 195.37.77.141
Connecting to download.berlios.de|195.37.77.141|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.berlios.de/error/HTTP_NOT_FOUND.html.var [following]
--2009-10-27 23:26:06--  http://download.berlios.de/error/HTTP_NOT_FOUND.html.var

Reading the output help to solve a lot of obviously problems. Read, *think*, and try again.

You need to correct the link from the source variable to the correct address of source code, if you follow the page of official site you can find the address (the correct one is http://download.berlios.de/lxdvdrip/lxdvdrip-1.75.tgz)


EDIT: And dont forget to updade the md5 array with the news md5 (you can use makepkg -g)

Last edited by kazuo (2009-10-27 22:44:59)

Offline

#16 2009-10-27 22:44:55

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: which package provides ... ?

Edit: Yeah, think. Kazuo beat me to it. tongue

If you get stuck, don't be afraid to ask.

Last edited by fsckd (2009-10-27 22:47:12)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#17 2009-10-27 22:50:36

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

I'll heed your advice and will soon start to *think* again :-)

the makepkg -g was a valulable advice though. thanx for that!

cu soon - have to go to bed now - so sweet dreams!

Offline

#18 2009-10-28 16:51:49

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: which package provides ... ?

I'm a bit lost here. I'm running into errors that I don't understand at all.

for instance there's this make.patch file here: http://aur.archlinux.org/packages/lxdvd … make.patch

I don't understand this syntax - never seen that before .... and I couldn't find some introduction or howto to it in the wiki.

In the PKGBUILD that is provided on AUR (http://aur.archlinux.org/packages/lxdvdrip/lxdvdrip/PKGBUILD ) the first build command is:

cd $startdir/src/$pkgname

With my adapted PKGBUILD I end up after "makepkg -s" with the msg:

.../lxdvdrip/src/lxdvdrip: No such file or directory

And indeed there is no src directory. BUT: with the tarball downloaded from AUR (version 1.74) it doesn't complain about that ...

So there are many basic things I don't understand at all.

So if someone could point me to where I can read documentation about how that works, that would be great!

thanx

Offline

#19 2009-10-28 16:59:07

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: which package provides ... ?

$startdir/src is not right. $srcdir is.

Offline

#20 2009-10-28 17:00:17

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: which package provides ... ?

flamelab wrote:

$startdir/src is not right. $srcdir is.

They both work.

Offline

Board footer

Powered by FluxBB