tensor5 / arch-atom

Repository of Atom and Electron binary packages for Arch Linux
48 stars 5 forks source link

Missing/Incorrect dependency on explict version of libhttpparser #21

Closed IkeLutra closed 8 years ago

IkeLutra commented 8 years ago

I have just upgraded electron (version 1.2.7-2) and I get the following error:

/usr/lib/electron/electron: error while loading shared libraries: libhttp_parser.so.2.7.0: cannot open shared object file: No such file or directory

http-parser package appears to updated two days ago https://www.archlinux.org/packages/community/i686/http-parser/ . Is there any reason for the explicit dependency on libhttp_parser.so.2.7.0 rather than libhttp_parser.so?

My workaround for the moment is to the symlink libhttp_parser.so.2.7.0 to libhttp_parser.so

Let me know if you need anymore info?

tensor5 commented 8 years ago

http-parser-2.7.1 for x86_64 showed up in the update just few hours ago. The library soname is libhttp_parser.so.2.7.x, hence the explicit dependency on that version. I will rebuild tomorrow.

repsac-by commented 8 years ago

quick fix

pkgname=electron-libhttp-parser-quickfix
pkgver=1.0
pkgrel=1
arch=('any')
depends=('electron<=1.2.7-2' 'http-parser=2.7.1')
conflicts=('electron>1.2.7-2')
package() {
    install -d "${pkgdir}/usr/lib"

    cd "$pkgdir/usr/lib"
    ln -sf libhttp_parser.so.2.7.1 libhttp_parser.so.2.7.0
}

save this PKGBUILD and run makepkg -i