You are not logged in.

#1 2010-02-24 05:49:57

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

[Solved] AUR Dependencies

I'm wondering how to make a package look like this for example http://aur.archlinux.org/packages.php?ID=4276

It has dependencies in AUR for example 'encode2mpeg', i haven't figured out how to do that and need help smile

Last edited by Corex (2010-02-24 07:18:33)

Offline

#2 2010-02-24 05:56:32

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [Solved] AUR Dependencies

If you know what your program needs to run, put them into the "depends=" section of your PKGBUILD. Check out the wiki on PKGBUILDS http://wiki.archlinux.org/index.php/PKGBUILD   As an example, look in the link you posted and click the PKGBUILD link http://aur.archlinux.org/packages/kmpg2/kmpg2/PKGBUILD   It shows where he put the depends at.

Last edited by milomouse (2010-02-24 05:58:09)

Offline

#3 2010-02-24 05:58:14

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: [Solved] AUR Dependencies

Ah ok, even though it gives an error message when running makepkg -s?

Don't wanna scare pacman users ;P

Offline

#4 2010-02-24 06:00:33

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [Solved] AUR Dependencies

What error is it? Can you post it here

EDIT: ah, nvm

Last edited by milomouse (2010-02-24 06:07:18)

Offline

#5 2010-02-24 06:09:44

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: [Solved] AUR Dependencies

libpng12 package not found, searching for group...
error: 'libpng12': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.

When running makepkg -s and i have libpng12 in cn3d, libpng12 is in aur. (PKGBUILD not yet updated on aur)

Offline

#6 2010-02-24 06:20:55

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: [Solved] AUR Dependencies

short: packer -S cn3d = works makepkg -s = not working ;P But i guess everyone knows this except me lol.

Offline

#7 2010-02-24 06:25:26

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [Solved] AUR Dependencies

Yeah, that won't work. makepkg doesn't work that way with the AUR, as was described in your other thread: http://bbs.archlinux.org/viewtopic.php?id=91810 the program "packer" contacts AUR directly since you already have it's PKGBUILD on there. makepkg is for local stuff and repositories in pacman.conf. If you definitely need libpng12 (which is provided in AUR) the user will have to search and install it themselves. As of right now I see libpng as your depends and it compiles fine but I can't get it to actually run as even after logging in and out and exporting it's home globally it still says it's not found.

(zsh)» bash
bash-4.1$ Cn3D 
bash: /usr/bin/Cn3D: No such file or directory
bash-4.1$ echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/usr/local/bin:/usr/local/sbin
bash-4.1$ which Cn3D
/usr/bin/Cn3D
bash-4.1$ exit
exit
(zsh)» Cn3D 
zsh: command not found: Cn3D

But I guess this will continue on the [REQUEST]Cn3D thread.

Last edited by milomouse (2010-02-24 06:26:52)

Offline

#8 2010-02-24 06:30:13

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: [Solved] AUR Dependencies

That seems to be a new error

Mine says:
$ echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core

$ Cn3D
Cn3D: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory (solving this atm)

After i did packer -S cn3d

Last edited by Corex (2010-02-24 06:33:16)

Offline

#9 2010-02-24 06:40:02

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [Solved] AUR Dependencies

They're in there.

bash-4.1$ Cn3D 
bash: /usr/bin/Cn3D: No such file or directory
bash-4.1$ cat .bashrc|tail -2
CN3D_HOME=/usr/share/cn3d-4.1
export CN3D_HOME=/usr/share/cn3d-4.1
bash-4.1$ source .bashrc
bash-4.1$ exit
exit
(relogged in)
bash-4.1$ Cn3D 
bash: /usr/bin/Cn3D: No such file or directory

Could be the libpng issue, who knows. Good luck with that though because there's been a lot of package rebuilds trying to update to libpng14. I think libpng.so.2 is provided by the libpng12 package. libpng (14) provides

/usr/lib/libpng.a
/usr/lib/libpng.so
/usr/lib/libpng14.a
/usr/lib/libpng14.so
/usr/lib/libpng14.so.14
/usr/lib/libpng14.so.14.0.0

Edit: Maybe since the "AUR Dependencies" thing is figured out, we can move this to the Cn3D thread. tongue I don't want to stray off topic too much.

Last edited by milomouse (2010-02-24 06:44:01)

Offline

#10 2010-02-24 07:17:55

Corex
Member
From: Sweden
Registered: 2010-01-31
Posts: 63

Re: [Solved] AUR Dependencies

Yeah i thought of that too ;P Changed to solved, join us in Cn3D, i'm currently solving the libpng problem.

Offline

Board footer

Powered by FluxBB