You are not logged in.

#1 2015-03-11 21:13:36

khouli
Member
Registered: 2014-12-14
Posts: 70

[SOLVED] Package mpe2 installs binaries outside /usr/bin

The AUR package mpe2 tries to install binaries into /usr/sbin which causes installation to fail. If I tweak the PKGBUILD to move those binaries to /usr/bin I get errors later in the build process because something expected there to be files in ${pkgdir}/usr/sbin. I don't really know what I'm doing here.

Could someone take a look at the BUILDPKG for mpe2 and tell me how to patch it?

Last edited by khouli (2015-03-11 22:38:30)

Offline

#2 2015-03-11 21:46:37

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Package mpe2 installs binaries outside /usr/bin

Always useful to know how you tweaked it and how it failed exactly.

I think you could put

ln -s bin "$pkgdir/usr/sbin"

at the start of the package() function and then

rm "$pkgdir/usr/sbin"

at the end.

Offline

#3 2015-03-11 22:29:45

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Package mpe2 installs binaries outside /usr/bin

You can try to set --sbindir=/usr/bin in the configure line.

Last edited by progandy (2015-03-11 22:32:06)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2015-03-11 22:38:16

khouli
Member
Registered: 2014-12-14
Posts: 70

Re: [SOLVED] Package mpe2 installs binaries outside /usr/bin

Shuffling files inside the package() function was confused autotools.

--sbindir=/usr/bin worked.

Offline

Board footer

Powered by FluxBB