• AUR-Polly-socksipy issue \[SOLVED\]


    Hi,

    I’m a new user of Antergos. I’ve been Ubuntu for a long time along with a mix of OpenSUSE, AVLinux, Mandriva and more recently Manjaro-Gnome.

    I prefer Gnome3 and as Manjaro-Gnome is a community edition and though initially working well it started to give me problems more recently. So I thought I’d try Antergos as it has Gnome as part of the main family and I plumped for the testing version “antergos-2015.01.04-x86_64.iso” with Gnome 3.14-2. After a network printing set-up issue was resolved by removing “gutenprint” (though I had to use system-config-printer rather than the native Gnome tool - it kept setting my network printer’s IP as “localhost”) everything is working well and it looks lovely :-)

    The only problem I’ve had is trying to install Polly (the Twitter Client) via PacmanXG/AUR. The package build fails while trying build socksipy with the following error: "ERROR: Missing package() function in /tmp/yaourt-tmp-kenny/aur-socksipy/./PKGBUILD"
    I know this is an AUR rather than an Antergos issue but I wondered if anyone knew of a solution or who I should notify about the error if it is a bug? I’ve tried Googling the problem to no avail. I had previously installed Polly just recently from the AUR without issue when still on Manjaro-Gnome.

    Any help appreciated.

  • Hi,

    I’m a new user of Antergos. I’ve been Ubuntu for a long time along with a mix of OpenSUSE, AVLinux, Mandriva and more recently Manjaro-Gnome.

    I prefer Gnome3 and as Manjaro-Gnome is a community edition and though initially working well it started to give me problems more recently. So I thought I’d try Antergos as it has Gnome as part of the main family and I plumped for the testing version “antergos-2015.01.04-x86_64.iso” with Gnome 3.14-2. After a network printing set-up issue was resolved by removing “gutenprint” (though I had to use system-config-printer rather than the native Gnome tool - it kept setting my network printer’s IP as “localhost”) everything is working well and it looks lovely :-)

    The only problem I’ve had is trying to install Polly (the Twitter Client) via PacmanXG/AUR. The package build fails while trying build socksipy with the following error: "ERROR: Missing package() function in /tmp/yaourt-tmp-kenny/aur-socksipy/./PKGBUILD"
    I know this is an AUR rather than an Antergos issue but I wondered if anyone knew of a solution or who I should notify about the error if it is a bug? I’ve tried Googling the problem to no avail. I had previously installed Polly just recently from the AUR without issue when still on Manjaro-Gnome.

    Any help appreciated.

  • Hi,

    Welcome to Antergos! With the recent updates to makepkg and pacman, PKGBUILDs are required to include a package function. A quick fix is to simply edit the PKGBUILD for that app and add a package function like this:

    package() {  
    cd ${srcdir}  
    }
    

    Hopefully whoever is maintain the package in the AUR will update it soon so you wont have to deal with it in the future.

    Cheers!

  • Thanks.

    Unfortunately, I don’t know enough about PKGBUILD to know what precisely to add. I tried editing the PKGBUILD and copying your code above and also a typical package function as found here: [http://ix.io/66p][0]">[http://ix.io/66p][1] In both cases I got the permissions error:
    “install: failed to access ‘/tmp/yaourt-tmp-kenny/aur-socksipy/pkg/socksipy/usr/lib/python2.7/site-packages/socks.py’: Permission denied”

    The PKGBUILD script prior to editing looks like this:
    # Maintainer: Massimiliano Torromeo <[email protected]>

    pkgname=socksipy
    pkgver=1.00
    pkgrel=4
    pkgdesc=“Provides a socket-like interface that supports connections to any TCP service through the use of a SOCKS4, SOCKS5 or HTTP proxy. “
    arch=(‘any’)
    license=(‘BSD’)
    url=”[http://socksipy.sourceforge.net/&quot][2];
    depends=(‘python2’)
    source=(”[http://downloads.sourceforge.net/project/socksipy/socksipy/SocksiPy ${pkgver}/SocksiPy.tar.gz&quot][3];)
    md5sums=(‘3be8be26230bc9eca94eb3335740ed5e’)

    build() {
    _site_packages=$(python2 -sSc ‘import site; print site.getsitepackages()[0]’)
    install -Dm644 socks.py "${pkgdir}$_site_packages/socks.py"
    install -Dm644 LICENSE “${pkgdir}/usr/share/licenses/$pkgname/LICENSE”
    }

    Maybe you could tell me what I need to add/change?
    In the meantime I have emailed the maintainer.

    Thanks again.

    [0]: <a href=
    [1]: http://ix.io/66p
    [2]: http://socksipy.sourceforge.net/&quot
    [3]: http://downloads.sourceforge.net/project/socksipy/socksipy/SocksiPy ${pkgver}/SocksiPy.tar.gz&quot

  • I got a reply back from the AUR package maintainer:

    “you should be able to make it work by simply renaming the build() function to package() for now.
    I’ll update the PKGBUILD on AUR later as soon as I get back to my work pc.”

    So that’s the temporary fix in this case for anyone else affected.

Posts 5Views 1267
Log in to reply