You are not logged in.

#1 2017-12-06 18:33:08

bubka
Member
Registered: 2013-10-24
Posts: 11

[SOLVED] Missing files after package from AUR installation

Hello!

I suppose my question is really stupid but nevetheless. I installed package from AUR, but program can not be started and throws:

klayout: error while loading shared libraries: libklayout_tl.so.0: cannot open shared object file: No such file or directory

To my mind something in PKGBUILD is incorrect but unfortunately I can't realize what. The reason I think so because

pacman -Qi klayout
Name            : klayout
Version         : 0.25-1
Description     : High Performance Layout Viewer And Editor. Support of GDS and OASIS files.
Architecture    : x86_64
URL             : http://www.klayout.org/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : qt4  ruby
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 127.00 KiB

and package size seems to be incorrect.

Any help is appreciated.

Last edited by bubka (2017-12-07 07:40:57)

Offline

#2 2017-12-06 18:36:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Missing files after package from AUR installation

Post -Ql <thepackage> and the full build log etc.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2017-12-06 18:54:56

bubka
Member
Registered: 2013-10-24
Posts: 11

Re: [SOLVED] Missing files after package from AUR installation

pacman -Ql klayout
klayout /usr/
klayout /usr/bin/
klayout /usr/bin/klayout
klayout /usr/share/
klayout /usr/share/applications/
klayout /usr/share/applications/klayoutEditor.desktop
klayout /usr/share/applications/klayoutViewer.desktop
klayout /usr/share/icons/
klayout /usr/share/icons/hicolor/
klayout /usr/share/icons/hicolor/32x32/
klayout /usr/share/icons/hicolor/32x32/apps/
klayout /usr/share/icons/hicolor/32x32/apps/klayout.png

Some lines are missed in build log, If necessary I can rebuild, but it takes about an hour.

Offline

#4 2017-12-06 19:13:43

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [SOLVED] Missing files after package from AUR installation

The PKGBUILD is incorrect, it installs only the binary but not the necessary shared libraries.

Offline

#5 2017-12-06 20:13:25

bubka
Member
Registered: 2013-10-24
Posts: 11

Re: [SOLVED] Missing files after package from AUR installation

So could you explain what should be changed there?

Offline

#6 2017-12-06 23:19:23

loqs
Member
Registered: 2014-03-06
Posts: 17,365

Re: [SOLVED] Missing files after package from AUR installation

Try changing the package function to

package() {
	cd "$srcdir"
	install -D -m 644 klayout-${pkgver}/etc/logo.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/klayout.png
	install -D -m 755 klayout-${pkgver}/build-release/klayout ${pkgdir}/usr/bin/klayout
	install -d -m 755 ${pkgdir}/usr/lib
	install -D -m 644 klayout-${pkgver}/build-release/lib*.so ${pkgdir}/usr/lib
	install -D -m 644 klayoutEditor.desktop ${pkgdir}/usr/share/applications/klayoutEditor.desktop
	install -D -m 644 klayoutViewer.desktop ${pkgdir}/usr/share/applications/klayoutViewer.desktop
}

which adds the two lines

	install -d -m 755 ${pkgdir}/usr/lib
	install -D -m 644 klayout-${pkgver}/build-release/lib*.so ${pkgdir}/usr/lib

Use at your own risk.

Offline

#7 2017-12-07 07:40:21

bubka
Member
Registered: 2013-10-24
Posts: 11

Re: [SOLVED] Missing files after package from AUR installation

Many thanks, that worked! Solved.

Offline

Board footer

Powered by FluxBB