Package dependencies in PKGBUILD

If I make PKGBUILD for instance for some GTK gui, should I put as dependencies also xfree and so on or it is ok to relay on the gtk dependencies?
I know that pacman check if gtk is installed and consequently you have alll gtk dependencies installed.
My question is mainly about the PKGUILD file format and  what we have to write in it.

it never hurts to be thorough with you depends. that being said you can "keep it simple" and rely on other dependent packages to satisfy your dependencies. i always try and provide at least one depend though.

Similar Messages

  • Pacdep: Package Dependencies listing

    Sometimes I wonder about a package and its dependencies, and more specifically the (installed) size of it all. For a simple list of a package's dependencies, pactree is a great tool that does the job fine.
    But when I'm wondering about the size, something else is needed. In fact, quite a few times I've found myself doing a `pacman -S/-Rs package` in order to know either how much size a package (and its "exclusive" (as in not needed by any other packages) dependencies) are eating up, or how much would be needed to install them.
    This isn't, however, an ideal solution, obviously. It does require root privileges, even though I don't go through with the transaction, and adds useless entry in pacman.log So I started thinking about it a bit, fast-forward a little and here comes pacdep.
    pacdep is a small tool that will allow you to quickly see how much space is being used/required by a package (and its dependencies). By default, it will give the installed size of the package, its exclusive dependencies, and its shared dependencies; Optional dependencies can be included as well. You can have dependencies of a group listed, in which case the packages name and installed size will be shown.
    There's also a reverse mode, to go the other way around and list packages that (optionaly) require the specified packages.
    Quick example:
    % pacdep -eo git
    git 17.24 MiB ( 20.71 MiB)
    Exclusive dependencies: 2.76 MiB
    perl-convert-binhex 56.00 KiB
    perl-error 76.00 KiB
    perl-io-socket-ssl 140.00 KiB
    perl-io-stringy 148.00 KiB
    perl-mailtools 204.00 KiB
    perl-net-ssleay 1.93 MiB
    perl-timedate 228.00 KiB
    Optional dependencies: 732.00 KiB
    perl-authen-sasl 188.00 KiB
    perl-mime-tools 500.00 KiB
    perl-net-smtp-ssl 44.00 KiB
    Shared dependencies: 20.09 MiB
    Total dependencies: 23.57 MiB ( 40.81 MiB)
    Links:
    - Slightly more verbose description w/ a few examples
    - Source code
    - PKGBUILD in the AUR
    Hopefully someone may find it useful; And of course bug reports, suggestions or any other form of constructive criticism is very much welcome.
    Cheers,
    -jacky

    Sometimes I wonder about a package and its dependencies, and more specifically the (installed) size of it all. For a simple list of a package's dependencies, pactree is a great tool that does the job fine.
    But when I'm wondering about the size, something else is needed. In fact, quite a few times I've found myself doing a `pacman -S/-Rs package` in order to know either how much size a package (and its "exclusive" (as in not needed by any other packages) dependencies) are eating up, or how much would be needed to install them.
    This isn't, however, an ideal solution, obviously. It does require root privileges, even though I don't go through with the transaction, and adds useless entry in pacman.log So I started thinking about it a bit, fast-forward a little and here comes pacdep.
    pacdep is a small tool that will allow you to quickly see how much space is being used/required by a package (and its dependencies). By default, it will give the installed size of the package, its exclusive dependencies, and its shared dependencies; Optional dependencies can be included as well. You can have dependencies of a group listed, in which case the packages name and installed size will be shown.
    There's also a reverse mode, to go the other way around and list packages that (optionaly) require the specified packages.
    Quick example:
    % pacdep -eo git
    git 17.24 MiB ( 20.71 MiB)
    Exclusive dependencies: 2.76 MiB
    perl-convert-binhex 56.00 KiB
    perl-error 76.00 KiB
    perl-io-socket-ssl 140.00 KiB
    perl-io-stringy 148.00 KiB
    perl-mailtools 204.00 KiB
    perl-net-ssleay 1.93 MiB
    perl-timedate 228.00 KiB
    Optional dependencies: 732.00 KiB
    perl-authen-sasl 188.00 KiB
    perl-mime-tools 500.00 KiB
    perl-net-smtp-ssl 44.00 KiB
    Shared dependencies: 20.09 MiB
    Total dependencies: 23.57 MiB ( 40.81 MiB)
    Links:
    - Slightly more verbose description w/ a few examples
    - Source code
    - PKGBUILD in the AUR
    Hopefully someone may find it useful; And of course bug reports, suggestions or any other form of constructive criticism is very much welcome.
    Cheers,
    -jacky

  • How to display package dependencies?

    Hi everybody,
    I hope I am not asking a too basic or silly question :(
    I was looking in FAQs but I was unable to answer my question:
    How do you list package dependencies for installed/spooled packages?
    pkginfo, pkgchk seem unable to list what I am looking for.
    Let's assume I just spooled some package, and just before installing it I want to make sure my system satisfies what this package requires as dependencies.
    I know a brute force way to know this is just to do a pkgadd and then it will probably complain for missing dependencies. But I don't want to even get to that point.
    What I am looking for is something similar of what you can find for example in Red Hat when doing:
    $rpm whatrequires|requires
    Thanks a lot in advance,
    Max

    How do you list package dependencies for installed/spooled packages?One way is to check the "/var/sadm/pkg/<pkg_name>/install/depend" file.
    Even if the package is not installed, you can check the "<pkg_name>/install/depend" file to get the list of dependencies

  • Is there a programatical way of getting package dependencies...

    actually i'm building something for which i need the list of package dependencies for particular package to be installed, but unfortunately i'm not able to find anything as i tried:
    sqlite3 core.db
    but eventually get:
    Error: file is encrypted or is not a database
    and at this moment i don't what to do, if anyone can suggest??

    Have you tried:
    pacman -Si package
    For example, I don't have gnome-shell installed and I can find out the listed dependencies with:
    claire ~ % pacman -Si gnome-shell
    Repository : extra
    Name : gnome-shell
    Version : 3.12.2-1
    Description : The next generation GNOME Shell
    Architecture : x86_64
    URL : http://live.gnome.org/GnomeShell
    Licences : GPL2
    Groups : gnome
    Provides : None
    Depends On : accountsservice caribou gcr gjs gnome-bluetooth
    gnome-menus upower gnome-session gnome-settings-daemon
    gnome-themes-standard gsettings-desktop-schemas
    libcanberra-pulse libcroco libgdm libsecret mutter
    mutter-wayland network-manager-applet telepathy-logger
    telepathy-mission-control unzip gstreamer
    Optional Deps : gnome-control-center: System settings
    evolution-data-server: Evolution calendar integration
    Conflicts With : None
    Replaces : None
    Download Size : 1137.62 KiB
    Installed Size : 10810.00 KiB
    Packager : Jan de Groot <[email protected]>
    Build Date : Thu 15 May 2014 21:28:18 BST
    Validated By : MD5 Sum SHA256 Sum Signature
    EDIT: sudo command removed, as suggested by @jjacky below.
    Last edited by clfarron4 (2014-06-30 17:50:08)

  • How does Makepkg check "non-package" dependencies?

    A quick `pacman -Si ghc` yields the following in its `Provides` field.
    Provides       : haskell-array=0.4.0.0  haskell-base=4.5.0.0
                     haskell-binary=0.5.1.0  haskell-bin-package-db=0.0.0.0
                     haskell-bytestring=0.9.2.1  haskell-containers=0.4.2.1
                     haskell-deepseq=1.3.0.0  haskell-directory=1.1.0.2
                     haskell-extensible-exceptions=0.1.1.4
                     haskell-filepath=1.3.0.0  haskell-ghc-prim=0.2.0.0
                     haskell-haskell2010=1.1.0.1  haskell-haskell98=2.0.0.1
                     haskell-hoopl=3.8.7.3  haskell-hpc=0.5.1.1
                     haskell-integer-gmp=0.4.0.0  haskell-old-locale=1.0.0.4
                     haskell-old-time=1.1.0.0  haskell-pretty=1.1.1.0
                     haskell-process=1.1.0.1  haskell-template-haskell=2.7.0.0
                     haskell-time=1.4  haskell-unix=2.5.1.0  haskell-cabal=1.14.0
    Now, all those have version numbers but _are not_ packages in themselves. Typing something like `pacman -Si haskell-array` gives nothing. Yet, running makepkg on a PKGBUILD that has (make)depends which include entries like those above _will be version checked_... even though they are not packages. My question is, how does makepkg do this? As far as I have checked, there are no pacman options that tell you whether or not something you input is `provided` by a true package.
    I would really like such an option, as that functionality is necessary (or would just be extremely useful) for a program that I'm writing. I just hope that the answer isn't buried somewhere in libalpm, as my program is not written in C.
    Thanks for any answers you can give.

    It's esoteric AUR package PKGBUILD makedepends, etc, that I'm worried about. As an example, let's say that a PKGBUILD demands a certain version (or range of versions) of `haskell-array` for building. I want to be able to take that dependency and compare it with what's installed. Makepkg already does this, but it does it in a way that doesn't just tell you what dependencies need to upgraded. It just goes ahead and does all the downloading and upgrading for you. I'd like to be able to stop before the downloading stage and just get the data.
    edit: @Trilby: Alright, I think I could hack something out of that. If I determined that it is provided by another package, I could call another -Si on that package, do some regexing and figure out the version number if provides.
    Last edited by fosskers (2012-05-30 13:30:46)

  • Pip2Arch - PyPi packages to Arch PKGBUILDs

    Pip2Arch is a simple tool to convert PyPi packages (the python equivalent of CPAN) into Arch PKGBUILDS.
    You can get the code here: https://github.com/bluepeppers/pip2arch
    Run
    pip2arch.py --help
    for help, usage should be simple enough.
    Currently does not track dependencies, due to a problem with PyPi(?). Patches very welcome.
    I use pip2arch for django servers, where I want to use obscure django packages that are not usually in the aur, but don't want to write a PKGBUILD for them. Using pip2arch, I just have to pay attention to the dependencies.
    Thanks,
    Laurie
    Last edited by Blue Peppers (2010-11-15 00:59:33)

    Couple of patches
    1st patch adds an -m option to allow for makedepends:
    pip2arch.py -m git some_package
    will create a some_package with a make dependency of git
    2nd patch adds search functionality to pip2arch:
    pip2arch.py -s mathematics
    bessy
    bidict
    IntPy
    isodate
    munkres
    NodeBox
    PGAPy
    qombinatorics
    SciMath
    scipy
    tabular
    TANGO Project - ALGENCAN
    makedeps.patch:
    --- pip2arch.py 2010-11-17 02:16:41.380000528 -0600
    +++ pip2arch.py.new 2010-11-17 02:07:33.536667195 -0600
    @@ -13,7 +13,8 @@
    pkgrel=1
    pkgdesc="{pkg.description}"
    url="{pkg.url}"
    -depends=('{pkg.pyversion}' {depends})
    +depends=('{pkg.pyversion}'{depends})
    +makedepends=({makedepends})
    license=('{pkg.license}')
    arch=('any')
    source=('{pkg.download_url}')
    @@ -33,6 +34,7 @@
    logging.info('Creating Server Proxy object')
    client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
    depends = []
    + makedepends = []
    def get_package(self, name, outname, version=None):
    if version is None:
    @@ -47,7 +49,7 @@
    raw_urls = self.client.release_urls(name, version)
    logging.info('Got release_urls from PiPy')
    if not len(raw_urls) and len(data):
    - raise LackOfInformation('PyPi did not return the neccisary information to create the PKGBUILD')
    + raise LackOfInformation('PyPi did not return the necessary information to create the PKGBUILD')
    elif len(data) and len(raw_urls):
    urls = {}
    for url in raw_urls:
    @@ -79,7 +81,7 @@
    self.url = data.get('home_page', '')
    self.license = data['license']
    except KeyError:
    - raise pip2archException('PiPy did not return needed information')
    + raise pip2archException('Pypi did not return needed information')
    logging.info('Parsed other data')
    def choose_version(self, versions):
    @@ -95,10 +97,14 @@
    def add_depends(self, depends):
    self.depends += depends
    +
    + def add_makedepends(self, makedepends):
    + self.makedepends += makedepends
    def render(self):
    - depends = '\'' + '\' \''.join(d for d in self.depends) + '\'' if self.depends else ''
    - return BLANK_PKGBUILD.format(pkg=self, date=datetime.date.today(), depends=depends)
    + depends = ' \'' + '\' \''.join(d for d in self.depends) + '\'' if self.depends else ''
    + makedepends = '\'' + '\' \''.join(d for d in self.makedepends) + '\'' if self.makedepends else ''
    + return BLANK_PKGBUILD.format(pkg=self, date=datetime.date.today(), depends=depends, makedepends=makedepends)
    if __name__ == '__main__':
    @@ -113,6 +119,7 @@
    default=open('PKGBUILD', 'w'),
    help='The file to output the generated PKGBUILD to')
    parser.add_argument('-d', '--dependencies', dest='depends', action='append')
    + parser.add_argument('-m', '--make-dependencies', dest='makedepends', action='append')
    parser.add_argument('-n', '--output-package-name', dest='outname', action='store', default=None,
    help='The name of the package that pip2arch will generate')
    @@ -125,6 +132,10 @@
    sys.exit('ERROR: {0}'.format(e))
    if args.depends:
    p.add_depends(args.depends)
    +
    + if args.makedepends:
    + p.add_makedepends(args.makedepends)
    +
    print "Got package information"
    args.outfile.write(p.render())
    - print "Written PKGBUILD"
    \ No newline at end of file
    + print "Written PKGBUILD"
    search.patch:
    --- pip2arch.py.old 2010-11-17 02:17:43.440000529 -0600
    +++ pip2arch.py.new 2010-11-17 02:57:03.863333862 -0600
    @@ -34,7 +34,13 @@
    client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
    depends = []
    - def get_package(self, name, outname, version=None):
    + def get_package(self, name, outname, version=None, search=False):
    + if search:
    + results = self.client.search({'description': '%s' % name[1:]})
    + for result in results:
    + print result['name']
    + sys.exit(1)
    +
    if version is None:
    versions = self.client.package_releases(name)
    version = self.choose_version(versions)
    @@ -113,6 +119,7 @@
    default=open('PKGBUILD', 'w'),
    help='The file to output the generated PKGBUILD to')
    parser.add_argument('-d', '--dependencies', dest='depends', action='append')
    + parser.add_argument('-s', '--search', dest='search', action='store_true')
    parser.add_argument('-n', '--output-package-name', dest='outname', action='store', default=None,
    help='The name of the package that pip2arch will generate')
    @@ -120,11 +127,11 @@
    p = Package()
    try:
    - p.get_package(name=args.pkgname, version=args.version, outname=args.outname or args.pkgname)
    + p.get_package(name=args.pkgname, version=args.version, outname=args.outname or args.pkgname, search=args.search)
    except pip2archException as e:
    sys.exit('ERROR: {0}'.format(e))
    if args.depends:
    p.add_depends(args.depends)
    print "Got package information"
    args.outfile.write(p.render())
    - print "Written PKGBUILD"
    \ No newline at end of file
    + print "Written PKGBUILD"

  • Help with package dependencies

    I would like to create a package for knowit. I am not sure about the dependencies that I have to put.
    Also I have a general question about programs that depend on KDE, where do I put the dependencies: in makedepends or/and in depends section of PKGBUILD?
    I include the following
    PKGBUILD
    pkgname=knowit
    pkgver=0.10
    pkgrel=1
    pkgdesc="KnowIt is a KDE tool for managing notes. Notes are organized in tree-like hierarchy."
    url="http://knowit.sourceforge.net/"
    makedepends=('qt')
    depends=('kdelibs>=3.0')
    source=(http://knowit.sourceforge.net/files/$pkgname-$pkgver.tar.bz2)
    md5sums=('27a42624f639770fc4f34777b51c5bbf')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/opt/kde --with-qt-dir=/opt/qt --with-qt-includes=/opt/qt/include --with-qt-libraries=/opt/qt/lib
    make || return 1
    make prefix=$startdir/pkg/opt/kde install
    ldd knowit
    $ ldd /opt/kde/bin/knowit
    libkdeprint.so.4 => /opt/kde/lib/libkdeprint.so.4 (0x4001b000)
    libkparts.so.2 => /opt/kde/lib/libkparts.so.2 (0x400e8000)
    libkio.so.4 => /opt/kde/lib/libkio.so.4 (0x40131000)
    libkdesu.so.4 => /opt/kde/lib/libkdesu.so.4 (0x40484000)
    libfam.so.0 => /usr/lib/libfam.so.0 (0x404b5000)
    libkdeui.so.4 => /opt/kde/lib/libkdeui.so.4 (0x404bd000)
    libkdecore.so.4 => /opt/kde/lib/libkdecore.so.4 (0x40779000)
    libDCOP.so.4 => /opt/kde/lib/libDCOP.so.4 (0x40993000)
    libresolv.so.2 => /lib/libresolv.so.2 (0x409c7000)
    libutil.so.1 => /lib/libutil.so.1 (0x409da000)
    libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x409dd000)
    libkdefx.so.4 => /opt/kde/lib/libkdefx.so.4 (0x409f3000)
    libqt-mt.so.3 => /opt/qt/lib/libqt-mt.so.3 (0x40a1e000)
    libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4110e000)
    libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4118f000)
    libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x411a5000)
    libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x411a9000)
    libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x411ac000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x411be000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x411e5000)
    libexpat.so.0 => /usr/lib/libexpat.so.0 (0x41251000)
    libdl.so.2 => /lib/libdl.so.2 (0x41272000)
    libpng.so.3 => /usr/lib/libpng.so.3 (0x41275000)
    libz.so.1 => /usr/lib/libz.so.1 (0x412a7000)
    libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x412b8000)
    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x412c6000)
    libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x41390000)
    libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4139a000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x413b2000)
    libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x41403000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4140b000)
    libm.so.6 => /lib/libm.so.6 (0x414dd000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x41500000)
    libc.so.6 => /lib/libc.so.6 (0x4150a000)
    libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x4163b000)
    libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x41641000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
    namcap
    $ namcap /var/abs/local/knowit/PKGBUILD /var/cache/pacman/pkg/knowit-0.10-1.pkg.tar.gz
    PKGBUILD (knowit) W: Missing Maintainer tag
    PKGBUILD (knowit) W: Missing CVS Id tag
    Are my depends and makedepends sections OK?
    Cheers!

    I'm not sure if you need qt in makedepends since you have kdelibs in the depends array. Makedepends is only for packages that are not needed to run the application (potentialy by someone else than the one who compiled package). It depends :-) on many things (like if it is a static or shared build, etc., etc.). You can also use namcap -i option to print more verbose information. Namcap will only tell you what it thinks about depends. Sometimes it can suggest that something should be in the depends but it can be moved to makedepends quite safely (for example I had postgresql and mysql as dependencies for rekall but rekall can be run without any of them installed; on the other hand you need both packages to build rekall with support for them - that's a good example for makedepends).

  • [SOLVED]what do the package dependencies mean?

    Could somebody tell me the meaning of the dependencies?
    https://www.archlinux.org/packages/comm … _64/r8168/
    Dependencies (3)
    linux>=3.15
    linux<3.16
    linux-headers (make)
    I now know that (make) means the package will be needed in build/make. But what does the upper two lines mean?
    Is it to say all kernel versions are OK?
    Last edited by zhy2019 (2014-06-28 12:01:07)

    progandy wrote:It means that r8168 needs a kernel from the 3.15 series (e.g. 3.15, 3.15.0, 3.15.1, 3.15.rc4). It won't work with 2.6, 3.14.7, 3.14, 3.16, 3.16.1, 4.123, ...
    so the >= or < symbols only mean work or not work?
    google does not work for these symbols, and it is not so obvious for new comers.

  • Samba package dependencies broken?

    I'm trying to install samba on OEL 5.7 and get unresolvable dependency problems. What am I missing here?
    # yum install samba3x
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package samba3x.i386 0:3.5.4-0.83.el5_7.2 set to be updated
    --> Processing Dependency: samba3x-common = 3.5.4-0.83.el5_7.2 for package: samba3x
    --> Processing Dependency: libwbclient.so.0 for package: samba3x
    --> Processing Dependency: libtalloc.so.2 for package: samba3x
    --> Running transaction check
    ---> Package samba3x.i386 0:3.5.4-0.83.el5_7.2 set to be updated
    --> Processing Dependency: libtalloc.so.2 for package: samba3x
    ---> Package samba3x-common.i386 0:3.5.4-0.83.el5_7.2 set to be updated
    --> Processing Dependency: libtalloc >= 2.0.1 for package: samba3x-common
    --> Processing Dependency: libtdb >= 1.2.1 for package: samba3x-common
    --> Processing Dependency: libtalloc.so.2 for package: samba3x-common
    ---> Package samba3x-winbind.i386 0:3.5.4-0.83.el5_7.2 set to be updated
    --> Processing Dependency: libtalloc.so.2 for package: samba3x-winbind
    --> Finished Dependency Resolution
    samba3x-3.5.4-0.83.el5_7.2.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc.so.2 is needed by package samba3x-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    samba3x-common-3.5.4-0.83.el5_7.2.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtdb >= 1.2.1 is needed by package samba3x-common-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    samba3x-common-3.5.4-0.83.el5_7.2.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc.so.2 is needed by package samba3x-common-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    samba3x-winbind-3.5.4-0.83.el5_7.2.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc.so.2 is needed by package samba3x-winbind-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    samba3x-common-3.5.4-0.83.el5_7.2.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc >= 2.0.1 is needed by package samba3x-common-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    Error: Missing Dependency: libtalloc.so.2 is needed by package samba3x-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    Error: Missing Dependency: libtalloc.so.2 is needed by package samba3x-winbind-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    Error: Missing Dependency: libtdb >= 1.2.1 is needed by package samba3x-common-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    Error: Missing Dependency: libtalloc >= 2.0.1 is needed by package samba3x-common-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    Error: Missing Dependency: libtalloc.so.2 is needed by package samba3x-common-3.5.4-0.83.el5_7.2.i386 (el5_latest)
    You could try using --skip-broken to work around the problem
    You could try running: package-cleanup --problems
    package-cleanup --dupes
    rpm -Va nofiles nodigest
    The program package-cleanup is found in the yum-utils package.
    # yum install libtalloc*
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package libtalloc.i386 0:1.2.0-52.el5_5.2 set to be updated
    ---> Package libtalloc-compat1.i386 0:2.0.1-11.el5 set to be updated
    ---> Package libtalloc-devel.i386 0:1.2.0-52.el5_5.2 set to be updated
    --> Finished Dependency Resolution
    Dependencies Resolved
    ======================================================================================================================================
    Package Arch Version Repository Size
    ======================================================================================================================================
    Installing:
    libtalloc i386 1.2.0-52.el5_5.2 el5_latest 22 k
    libtalloc-compat1 i386 2.0.1-11.el5 el5_latest 18 k
    libtalloc-devel i386 1.2.0-52.el5_5.2 el5_latest 7.4 k
    Transaction Summary
    ======================================================================================================================================
    Install 3 Package(s)
    Upgrade 0 Package(s)
    Total download size: 48 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/3): libtalloc-devel-1.2.0-52.el5_5.2.i386.rpm | 7.4 kB 00:00
    (2/3): libtalloc-compat1-2.0.1-11.el5.i386.rpm | 18 kB 00:00
    (3/3): libtalloc-1.2.0-52.el5_5.2.i386.rpm | 22 kB 00:00
    Total 214 kB/s | 48 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Check Error:
    file /usr/lib/libtalloc.so.1 conflicts between attempted installs of libtalloc-compat1-2.0.1-11.el5.i386 and libtalloc-1.2.0-52.el5_5.2.i386

    I tried removing everything, but realized there was still a pam_smb that I had not removed. So I tried again, but it still fails to install the latest version. Do I need to open a ticket with Oracle to have them look at this or is their Oracle support in the forums as well?
    # rpm -qa | grep smb
    libsmbclient-3.0.33-3.29.el5_7.4
    pam_smb-1.1.7-7.2.1
    # rpm -qa | grep samba
    samba3x-client-3.3.8-0.51.el5
    samba3x-common-3.3.8-0.51.el5
    samba3x-3.3.8-0.51.el5
    samba3x-winbind-3.3.8-0.51.el5
    # rpm -qa | grep libtalloc
    libtalloc-1.2.0-52.el5_5.2
    # yum erase samba3x-client-3.3.8-0.51.el5 samba3x-common-3.3.8-0.51.el5 samba3x-3.3.8-0.51.el5 samba3x-winbind-3.3.8-0.51.el5 libtalloc-1.2.0-52.el5_5.2 libsmbclient-3.0.33-3.29.el5_7.4 pam_smb-1.1.7-7.2.1
    Setting up Remove Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package libsmbclient.i386 0:3.0.33-3.29.el5_7.4 set to be erased
    ---> Package libtalloc.i386 0:1.2.0-52.el5_5.2 set to be erased
    ---> Package pam_smb.i386 0:1.1.7-7.2.1 set to be erased
    ---> Package samba3x.i386 0:3.3.8-0.51.el5 set to be erased
    ---> Package samba3x-client.i386 0:3.3.8-0.51.el5 set to be erased
    ---> Package samba3x-common.i386 0:3.3.8-0.51.el5 set to be erased
    ---> Package samba3x-winbind.i386 0:3.3.8-0.51.el5 set to be erased
    --> Finished Dependency Resolution
    Dependencies Resolved
    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Removing:
    libsmbclient i386 3.0.33-3.29.el5_7.4 installed 2.3 M
    libtalloc i386 1.2.0-52.el5_5.2 installed 41 k
    pam_smb i386 1.1.7-7.2.1 installed 66 k
    samba3x i386 3.3.8-0.51.el5 installed 12 M
    samba3x-client i386 3.3.8-0.51.el5 installed 31 M
    samba3x-common i386 3.3.8-0.51.el5 installed 32 M
    samba3x-winbind i386 3.3.8-0.51.el5 installed 8.4 M
    Transaction Summary
    ================================================================================
    Remove 7 Package(s)
    Reinstall 0 Package(s)
    Downgrade 0 Package(s)
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Erasing : samba3x 1/7
    Erasing : samba3x-winbind 2/7
    Erasing : samba3x-client 3/7
    Erasing : pam_smb 4/7
    Erasing : libtalloc 5/7
    Erasing : samba3x-common 6/7
    warning: /etc/samba/smb.conf saved as /etc/samba/smb.conf.rpmsave
    Erasing : libsmbclient 7/7
    Removed:
    libsmbclient.i386 0:3.0.33-3.29.el5_7.4 libtalloc.i386 0:1.2.0-52.el5_5.2
    pam_smb.i386 0:1.1.7-7.2.1 samba3x.i386 0:3.3.8-0.51.el5
    samba3x-client.i386 0:3.3.8-0.51.el5 samba3x-common.i386 0:3.3.8-0.51.el5
    samba3x-winbind.i386 0:3.3.8-0.51.el5
    Complete!
    # yum remove samba*
    Setting up Remove Process
    No Match for argument: samba*
    Package(s) samba* available, but not installed.
    No Packages marked for removal
    # yum install samba3x
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package samba3x.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: samba3x-common = 3.5.10-0.107.el5 for package: samba3x
    --> Processing Dependency: libwbclient.so.0 for package: samba3x
    --> Processing Dependency: libtalloc.so.2 for package: samba3x
    --> Running transaction check
    ---> Package samba3x.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: libtalloc.so.2 for package: samba3x
    ---> Package samba3x-common.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: libtalloc >= 2.0.1 for package: samba3x-common
    --> Processing Dependency: libtdb >= 1.2.1 for package: samba3x-common
    --> Processing Dependency: libtalloc.so.2 for package: samba3x-common
    --> Processing Dependency: libsmbclient for package: samba3x-common
    ---> Package samba3x-winbind.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: libtalloc.so.2 for package: samba3x-winbind
    --> Running transaction check
    ---> Package libsmbclient.i386 0:3.0.33-3.37.el5 set to be updated
    ---> Package samba3x.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: libtalloc.so.2 for package: samba3x
    ---> Package samba3x-common.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: libtalloc >= 2.0.1 for package: samba3x-common
    --> Processing Dependency: libtdb >= 1.2.1 for package: samba3x-common
    --> Processing Dependency: libtalloc.so.2 for package: samba3x-common
    ---> Package samba3x-winbind.i386 0:3.5.10-0.107.el5 set to be updated
    --> Processing Dependency: libtalloc.so.2 for package: samba3x-winbind
    --> Finished Dependency Resolution
    samba3x-3.5.10-0.107.el5.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc.so.2 is needed by package samba3x-3.5.10-0.107.el5.i386 (el5_latest)
    samba3x-common-3.5.10-0.107.el5.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtdb >= 1.2.1 is needed by package samba3x-common-3.5.10-0.107.el5.i386 (el5_latest)
    samba3x-winbind-3.5.10-0.107.el5.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc.so.2 is needed by package samba3x-winbind-3.5.10-0.107.el5.i386 (el5_latest)
    samba3x-common-3.5.10-0.107.el5.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc.so.2 is needed by package samba3x-common-3.5.10-0.107.el5.i386 (el5_latest)
    samba3x-common-3.5.10-0.107.el5.i386 from el5_latest has depsolving problems
    --> Missing Dependency: libtalloc >= 2.0.1 is needed by package samba3x-common-3.5.10-0.107.el5.i386 (el5_latest)
    Error: Missing Dependency: libtalloc.so.2 is needed by package samba3x-3.5.10-0.107.el5.i386 (el5_latest)
    Error: Missing Dependency: libtalloc.so.2 is needed by package samba3x-winbind-3.5.10-0.107.el5.i386 (el5_latest)
    Error: Missing Dependency: libtdb >= 1.2.1 is needed by package samba3x-common-3.5.10-0.107.el5.i386 (el5_latest)
    Error: Missing Dependency: libtalloc >= 2.0.1 is needed by package samba3x-common-3.5.10-0.107.el5.i386 (el5_latest)
    Error: Missing Dependency: libtalloc.so.2 is needed by package samba3x-common-3.5.10-0.107.el5.i386 (el5_latest)
    You could try using --skip-broken to work around the problem
    You could try running: package-cleanup --problems
    package-cleanup --dupes
    rpm -Va nofiles nodigest

  • Package.install in PKGBUILD

    hello !
    I think it could be sometimes better to add post_install(), post_upgrade() etc.. functions directly in PKGBUILD. Essentialy for easiest sharing of PKGBUILD.
    What do you thing about it ?

    brain0 wrote:
    arooaroo wrote:
    brain0 wrote:To add these functions in the PKGBUILD, it would be necessary for makepkg to parse the PKGBUILD and extract those functions manually to put it in the .INSTALL file in the package.
    Indeed. But is that hard? I think not.
    In bash? Yes, imho that is hard. The point is that right now, makepkg doesn't even have/need a parser, that's why it is so small and simple (only 800lines of bash). Adding a parser would really blow it.
    Yes, it would only be simplistic if bash had some sort of functionality like "echo $functionName" that would output the body of the function... but it doesn't.  It would be trivial to write a parser to do it, but I don't think anyone agrees there is a need for it.

  • A binary dependencies should be added as package dependencies

    Not sure if this is the correct subforum, but I wish to raise an issue I encounter quite often, at least with "latest" (git/mercurial) packages.
    As developers we often have a lot of development libraries installed, but unless you're a developer for the given project, there's a chance you haven't got the required libraries.
    If the packages isn't listed the build breaks. Often far along, and this might happen several times while you add one and one package.
    I don't want to think about how bad this problem can be for a "regular" user.
    I wrote a small script that uses ldd on binaries and cross reference them to pacman to see what packages are required.
    Hopefully some package managers can improve the script and improve the current situation.
    #!/usr/bin/bash
    BIN=$(which $1)
    LIBS=$(ldd $BIN)
    for libstring in $LIBS; do
    if [[ $libstring =~ ^/.+\.so.+ ]]; then
    FILE=$BASH_REMATCH
    if [[ $(pacman -Qo $FILE) =~ ^/.+\.so.+\ is\ owned\ by\ (.+)\ .+$ ]]; then
    package=${BASH_REMATCH[1]}
    echo $package
    fi
    fi
    done
    Usage:
    $ required-packages nvim | sort | uniq
    glibc
    libtermkey
    libuv
    msgpack-git-neovim
    unibilium

    anatolik wrote:
    simendsjo wrote:
    karol wrote:Are you building in clean chroot?
    No. What are you thinking of?
    https://wiki.archlinux.org/index.php/De … ean_Chroot
    This helper might be useful as well
    https://github.com/graysky2/clean-chroot-manager
    I see. The infrastructure and documentation is in place, but not all maintainers are using best practices.
    Guess this is a "solved" issue then.

  • Pkgman - a bash script for local package and PKGBUILD management

    hi all,
    here is a script which manages a local repository and lets you edit
    PKGBUILDs and other related files, automatically generates checksums,
    build packages, add them to your local repo and so on.
    it also has AUR support for submitting tarballs, leaving comments, etc.
    get it from here:
    http://sourceforge.net/projects/pkgman/
    and AUR package:
    http://aur.archlinux.org/packages.php?ID=17100
    you need abs, curl and pacman and optionally namcap and desktop-file-utils.
    RTFM online:
    http://sourceforge.net/apps/mediawiki/p … n_man_page
    first of all copy the pkgman.conf and AUR.conf files from /usr/share/pkgman to ~/.config/pkgman/  or ${XDG_CONFIG_HOME}/pkgman - if ${XDG_CONFIG_HOME} is set,
    edit these two files and then run
    pkgman --runmefirst
    pkgman doesn´t install anything. if you want it just builds the package and moves it to your local repository. install it then with pacman.
    it also has no dependency handling. there are many other tools which provide this.
    the main intention was to keep track of package versions, different PKGBUILD versions and own AUR submitted tarballs; also to keep a clean local repository and clean build directories.
    pkgman is stable now. i´m using it for months without any issues.
    however, if there are problems or feedback please post them here.
    vlad
    changelog:
    version 2.4:
           *pkgman now respects the PKGDEST and SRCDEST variables from makepkg.conf. (though it still moves the src.tar.gz and .pkg.tar.gz to package backup directory).
    version 2.5:
           *pkgman uses PKGDEST if SRCDEST not set in makepkg.conf.
    version 2.6 -> r26:
           *changed version system: version 2.6 is now r26!
           *minor changes: > pkgman uses now the $SHELL variable.
                                    > new and more comprehensible manpage description (thanks to bender02)
    version r27:
           *changed SRCDEST since it's only a cache dir. all files (pkg.tar.gz and src.tar.gz) go to PKGDEST.
    version r28:
           *added new variable ShellCommand to pkgman.conf. Default is $SHELL.
           *One might use an external application (like screen or xterm) to switch to build directory and edit files simultaneously.
    version r30:
           *minor changes. nothing crucial
    r32: *OverwriteExistingPackage isn't used anymore. one can delete it from ~/.config/pkgman/pkgman.conf.
           *minor changes
    version r33:
           *"-l|--list" also shows installed package version and available ABS/AUR PKGBUILD version for given package.
           *"-a|--abs" can now also be used with other options (like "-e")
    r39: * when backing up src.tarballs it asks whether to backup the source file or not
           * more detailed "--list" option - also shows if package is installed or not and available ABS/AUR version
           * added prompt to clean up directory after makepkg
           * when checking pkg.tar.gz also possibility to check for conflicts with files of already installed packages
           * use $PAGER instead of less
           * --help directly shows the manpage
           * --shorthelp shows a brief usage overview
           * added a custom prompt, but only when using bash (is somehow experimental - works fine here for me)
           * minor internal changes
           * pkgman also reads ~/.aurvote file for getting aur name and password. if one already uses aurvote then there is no need for the
             ~/.config/pkgman/AUR.conf file.
    r40: * new manual page & rewrite of usage function
           * both option "--flush" and "--flushall" were omitted in favor of the more versatile "--cleanup" option
           * pkgman <packagename> checks now if <packagename> is owned by user
           * backup option after each editing
           * added license
           * minor internal changes
    r41: * just small bug fixes, nothing crucial.
    r42: * more bugs fixed.
    r45: * new options added:
              >   --listversions: list local and available versions of installed packages from LocalPackages directory
              >  --getownpackages: synchronize local own packages with AUR
           * added new variable in pkgman.conf:
              > ListOutputInPager: output of, for example, "--list" or "--own" is piped into $PAGER
           * added a new optional dependency "desktop-file-utils" for validating desktop entry files
           * also supports now auto-generation of sha sums not only md5
           * internal fixes due to AUR interface changes:
              > use of json interface
              > correct parsing of package category
           * added 2 proto files (located under /usr/share/pacman):
              >  proto.desktop: a template for *.desktop files
              > PKGBUILD-lib32.proto: a template for lib32 packages for x86_64
           * some code changes and fixes
    r46: * added new option to pkgman.conf (AutoGenerateSums).
             > if AutoGenerateSums=no then pkgman asks whether to generate checksums or not.
             > if set to yes it behaves like in former versions.
    r52: * "--getownpackages" with more than 100 packages works again
           * added new option "--cachecopy":
              For each package in CacheCopyList (new variable in pkgman.conf) get existing package from pacman's cache directory - if
              CopyPkgFromCache (new variable in pkgman.conf) is set to yes - and/or create a source tarball of PKGBUILD and related files from ABS -
              if CopySrcFromABS (new variable in pkgman.conf) is set to yes - and copy them to package backup directory.
           * added new variables to pkgman.conf:
               > "CacheCopyList=file" - batch backup file, one package per line - default location is "$HOME/.config/pkgman/package.list".
               > "CopySrcFromABS=[yes|no]"
               > "CopyPkgFromCache=[yes|no]"
           * some bugfixes
           * docs completed
           * CacheCopyList should look like
    package1
    package2
    #this is a comment
    ! this too
    package3
    !package4
    r54: * renamed "--listversions" option to "--diffversions". makes more sense!
              from the man page:
                  pkgman --diffversions
                  Show differing ABS/AUR versions of installed packages from LocalPackages.
    r55: * minor changes.
    r57: * testing release
           * added a new option "--rollback":
               "pkgman <packagename> --rollback" - checks  http://arm.kh.nu for available package versions,
                                                          lets you choose one, fetches the package and
                                                          moves it to the <packagename> backup directory (if "--repoadd" is used).
    r59: * stable release
           * new option "--rollback" (see r57):
                   it checks http://arm.kh.nu (Arch Rollback Machine) for available package versions,
                   downloads chosen file and moves it to local repository (if "-r|--repoadd"  is used).
            * posting files/comments/etc to AUR should work now again.
    r65: *stable release
           * new option "-M,--meta" to create metapackages and add them and their dependencies to local repository.
              it searches for deps inside the backup directories, pacman's cache and if the packages are not available, it tries to fetch the missing
              dependencies from the Arch Rollback Machine site (http://arm.kh.nu).
    r66: * minor fixes
    r68: * some bugfixes
           * "--repoadd" and "--Reporemove" now accurately removes old packages from LocalRepository
    r69: * small bugfixes when listing packages with similar names
           * curl retries now 5 times if connection is not established
    r75: * "--cachecopy" does not try to dl sourcefiles when backing up ABS PKGBUILDs
           * some work on package splitting
           * further internal changes
    r76: * minor mistakes with "ln" purged
    r79: * mostly small changes
           * "--cleanup" now also removes uninstalled packages from LocalRepository
    r81 & r80: * added AUR v1.6.0 support (use more json)
                    * small ARM changes ("--rollback")
    r85:
          * pkgman supports pkg.tar.xz packages
          * some code rewrite, bugs purged (hopefully)
    r113:
          * pkgman now supports building split packages through makepkg.
             If you already use pkgman you need to rerun "pkgman --runmefirst" after updating.
          * new  "-t,--template" option ("pkgman <packagename> --template <alt. packagename> [--pkgbuildversion <version>] [options]").
             Useful to create a new PKGBUILD and use an existing one as a template.
          * new option: "--conf /path/to/alternate/conf/file" - Specify another configuration file.
          * pkgman now uses ${XDG_CONFIG_HOME}/pkgman or $HOME/.config/pkgman - if first not set - as the default location for its conf files.
    r116:
          * check inet conection when submitting src tarballs to AUR
          * some bugs
          * updated manpage on sf
    For further details please read the manual page.
    Last edited by DonVla (2010-04-28 11:56:59)

    I'm having some troubles with it (perhaps missing dependencies, and forgotten hardcoded dirs?):
    jan@aconcagua 8:20PM ~ % pkgman --runmefirst
    /usr/bin/pkgman: line 77: /home/jan/apps/skripte/archscripts/pkgman/share/pkgman/color.bash: No such file or directory
    /usr/bin/pkgman: line 1293: initcolor: command not found
    /usr/bin/pkgman: line 312: highlight: command not found
    /usr/bin/pkgman: line 312: error: command not found
    /usr/bin/pkgman: line 313: highlight: command not found
    /usr/bin/pkgman: line 313: error: command not found
    /usr/bin/pkgman: line 314: highlight: command not found
    /usr/bin/pkgman: line 314: error: command not found
    /usr/bin/pkgman: line 315: highlight: command not found
    /usr/bin/pkgman: line 315: error: command not found
    /usr/bin/pkgman: line 317: error: command not found
    /usr/bin/pkgman: line 318: error: command not found
    /usr/bin/pkgman: line 321: highlight: command not found
    /usr/bin/pkgman: line 321: msg: command not found
    /usr/bin/pkgman: line 329: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    touch: cannot touch `/bin/.pkgman.registered': Permission denied
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 337: msg: command not found
    curl: option --output: requires parameter
    curl: try 'curl --help' or 'curl --manual' for more information
    ^C/usr/bin/pkgman: line 209: cleanoutput: command not found
    /usr/bin/pkgman: line 209: cleanoutput: command not found
    (I terminated with ctrl-c).
    EDIT: errors resolved by correcting the path $HOME/apps/skripte/archscripts/pkgman/share/pkgman to /usr/share/pkgman in the pkgman itself.
    Last edited by bender02 (2008-05-23 01:28:58)

  • [Solved]pacman doesn't like ' =' in depends for pure package

    Trying to install the pure programming language package available here.
    $ makepkg -s
    ==> Making package: pure 0.60-1 (Tue Aug 12 19:22:57 EDT 2014)
    ==> Checking runtime dependencies...
    ==> Installing missing dependencies...
    error: target not found: llvm<=3.4
    ==> ERROR: 'pacman' failed to install missing dependencies.
    PKGBUILD file:
    # -*- shell-script -*-
    # Contributor: Mikko Sysikaski mikko.sysikaski at gmail dot com
    # Updated by Stephen Diehl - [email protected]
    # Maintainer: Alastair Pharo asppsa at gmail dot com
    # Maintainer: Albert Graef <[email protected]>
    pkgname=pure
    pkgver=0.60
    pkgrel=1
    pkgdesc="Pure is a modern-style functional programming language based on term rewriting."
    arch=("i686" "x86_64")
    license=('GPL3')
    url="http://purelang.bitbucket.org/"
    depends=('llvm<=3.4' 'gmp' 'mpfr' 'readline')
    makedepends=('make' 'gcc')
    optdepends=("pure-docs: online documentation"
    "w3m: access to help in interactive mode"
    "emacs-pure-mode: editing Pure files from Emacs"
    "texmacs-pure: embedding Pure sessions in TeXmacs")
    groups=(pure-complete pure-base)
    source=("https://bitbucket.org/purelang/pure-lang/downloads/$pkgname-$pkgver.tar.gz"
    "https://bitbucket.org/purelang/pure-lang/downloads/llvm-3.3-tools.tar.bz2")
    md5sums=('4bbd7cf05ce913814f02675c58aeaa23'
    '0a3c4154e7d20f1d078d994ec47be1b7')
    build() {
    cd $srcdir/$pkgname-$pkgver
    ./configure --prefix=/usr --without-elisp --without-texmacs --enable-release
    make || return 1
    # check that the interpreter is working
    make check || return 1
    package() {
    cd $srcdir/$pkgname-$pkgver
    make DESTDIR=$pkgdir install || return 1
    # llc in LLVM 3.4 is broken; these will work with both LLVM 3.3 and 3.4
    cd $srcdir/llvm-3.3-tools/$CARCH
    cp llc opt $pkgdir/usr/lib/pure || return 1
    I have installed for now by simply removing the
    <=3.4
    requirement but only out of frustration. I'm at a loss as to why pacman would be complaining, I see the bit about 'LLVM 3.4 is broken' but for one, 3.4 is already installed from [extra] and for two, 3.3 ought to meet the criteria. All help/explanation appreciated.
    Last edited by luisrayas3 (2014-08-18 20:06:03)

    luisrayas3 wrote:
    isn't it?? I would consider 3.4.2 == 3.4 from a versioning perspective and therefore also 3.4.2 <= 3.4
    edit: also worth noting that it does work anyhow with 3.4.2
    Nope, doesn't work that way. Try it yourself.
    % vercmp -h
    usage: vercmp <ver1> <ver2>
    output values:
    < 0 : if ver1 < ver2
    0 : if ver1 == ver2
    > 0 : if ver1 > ver2
    % vercmp 3.4.2 3.4
    1

  • [SOLVED] cannot install package query

    I want to install yaourt, but I can't seem to install package query. I acquired the tarball from here and followed all the steps here
    [maarten@maarten ~]$ cd ~/src
    [maarten@maarten src]$ tar -zxvf package-query.tar.gz
    package-query/
    package-query/PKGBUILD
    [maarten@maarten src]$ cd ~/src/package-query
    [maarten@maarten package-query]$ makepkg -s
    ==> Making package: package-query 1.0.1-1 (Sun Jul 8 11:09:03 CEST 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading package-query-1.0.1.tar.gz...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 361k 100 361k 0 0 205k 0 0:00:01 0:00:01 --:--:-- 226k
    ==> Validating source files with md5sums...
    package-query-1.0.1.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting package-query-1.0.1.tar.gz with bsdtar
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
    checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/utsname.h usability... yes
    checking sys/utsname.h presence... yes
    checking for sys/utsname.h... yes
    checking for alpm_version in -lalpm... yes
    checking for yajl_free in -lyajl... yes
    checking for gawk... (cached) gawk
    checking for curl-config... /usr/bin/curl-config
    checking for the version of libcurl... 7.26.0
    checking for libcurl >= version 7.19.4... yes
    checking whether libcurl is usable... yes
    checking for curl_free... yes
    checking whether NLS is requested... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for CFPreferencesCopyAppValue... no
    checking for CFLocaleCopyCurrent... no
    checking for GNU gettext in libc... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... libc
    checking for git... git
    checking for .git/... no
    configure: creating ./config.status
    config.status: creating src/Makefile
    config.status: creating doc/Makefile
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    package-query:
    Build information:
    source code location : .
    prefix : /usr
    sysconfdir : /etc
    conf file : /etc/pacman.conf
    localstatedir : /var
    database dir : /var/lib/pacman/
    compiler : gcc
    compiler flags : -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
    package-query version : 1.0.1
    using git version : no
    git ver :
    Variable information:
    root working directory : /
    aur base url : [url]http://aur.archlinux.org[/url]
    make all-recursive
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    Making all in src
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT aur.o -MD -MP -MF .deps/aur.Tpo -c -o aur.o aur.c
    mv -f .deps/aur.Tpo .deps/aur.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
    alpm-query.c: In function 'alpm_pkg_get_realsize':
    alpm-query.c:486:9: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
    mv -f .deps/alpm-query.Tpo .deps/alpm-query.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
    util.c: In function 'ltostr':
    util.c:532:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
    util.c: In function 'itostr':
    util.c:525:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
    util.c: In function 'concat_backup_list':
    util.c:480:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
    util.c: In function 'string_fcat':
    util.c:342:11: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result [-Wunused-result]
    mv -f .deps/util.Tpo .deps/util.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT color.o -MD -MP -MF .deps/color.Tpo -c -o color.o color.c
    mv -f .deps/color.Tpo .deps/color.Po
    gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT package-query.o -MD -MP -MF .deps/package-query.Tpo -c -o package-query.o package-query.c
    mv -f .deps/package-query.Tpo .deps/package-query.Po
    /bin/sh ../libtool --tag=CC --mode=link gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lcurl -Wl,-O1,--sort-common,--as-needed,-z,relro -o package-query aur.o alpm-query.o util.o color.o package-query.o -lyajl -lalpm
    libtool: link: gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o package-query aur.o alpm-query.o util.o color.o package-query.o -lcurl -lyajl -lalpm
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    Making all in doc
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    ==> Entering fakeroot environment...
    ==> Starting package()...
    Making install in src
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    test -z "/usr/bin" || /bin/mkdir -p "/home/maarten/src/package-query/pkg/usr/bin"
    /bin/sh ../libtool --mode=install /usr/bin/install -c package-query '/home/maarten/src/package-query/pkg/usr/bin'
    libtool: install: /usr/bin/install -c package-query /home/maarten/src/package-query/pkg/usr/bin/package-query
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/src'
    Making install in doc
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[2]: Nothing to be done for `install-exec-am'.
    test -z "/usr/share/man/man8" || /bin/mkdir -p "/home/maarten/src/package-query/pkg/usr/share/man/man8"
    /usr/bin/install -c -m 644 package-query.8 '/home/maarten/src/package-query/pkg/usr/share/man/man8'
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1/doc'
    make[1]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[2]: Entering directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    make[1]: Leaving directory `/home/maarten/src/package-query/src/package-query-1.0.1'
    ==> Tidying install...
    -> Purging unwanted files...
    -> Compressing man and info pages...
    -> Stripping unneeded symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: package-query 1.0.1-1 (Sun Jul 8 11:09:18 CEST 2012)
    [maarten@maarten package-query]$ dir
    PKGBUILD package-query-1.0.1.tar.gz src
    package-query-1.0.1-1-i686.pkg.tar.xz pkg
    [maarten@maarten package-query]$ sudo pacman -U package-query-1.0.1-1-i686.pkg.tar.xz
    Password:
    loading packages...
    error: 'package-query-1.0.1-1-i686.pkg.tar.xz': invalid or corrupted package (PGP signature)
    I already reran pacman-key --init and pacman-key --populate archlinux after removing the allready acquired signatures (/etc/pacman.d/gnupg). But it keeps returning the same error.
    Do I need to add another key manually to install packages manually from the AUR?
    Last edited by maartennnnnnn (2012-07-08 09:44:01)

    I edited your post to change the \[quote\] tags to \[code\] tags - it makes for a much easier to read post
    https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Two options are to change your SigLevel or sign your own key...

  • Dependencies problem for Maxima

    I tried to install maxima but I got this error :
    pacman -S maxima
    error: unresolvable dependencies:
      maxima: requires clisp<=2.39 but it is not in the sync db
    How can I fix it ?

    I think it's a bug vs a mirror problem. It's been about a year. Anyway instead of waiting a long time, you can build the clisp 2.41 package using the PKGBUILD found here....
    http://bugs.archlinux.org/task/6263
    You will also need to build libsigsegv 2.4 as clisp depends on it and it's not in archs data base. The PKGBUILD can be found here...
    http://bugs.archlinux.org/task/6262
    You might need to add a line to both PKGBUILDS....
    arch=('i686')
    Then you should be able to install Maxima from extra or wxmaxima from aur community.
    Last edited by Leigh (2007-06-01 22:00:33)

Maybe you are looking for

  • Loss of picture quality - HD Go Pro Camer

    I have a go pro helmet cam HD. whe i watch the videos straight off the camera with no editing the picture quality is fantastic. However when i edit the videos in Final cut Express the picture quality goes down. It becomes less clear, and a bit dull.

  • I have problems with activation, after delete mi Iphone from Icloud.

    I have problems with activation, after delete mi Iphone from Icloud.

  • Library item and CSS

    This is a multi-part message in MIME format. ------=_NextPart_000_006D_01C6ACBA.1BE3DB50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I need to build a CSS enabled navigation bar and make it a library ite

  • Install adobe acrobat X1 Pro

    im getting error communicating with adobe.com (error 100) please help to download free adobe acrobat X1 Pro

  • View link not working for programatic view objects

    Dear All, I have created 2 vo that is programatically populated from the stored procedures, which runs perfectly. I created a view link between these 2 vo which has 1-many relationships. when i run AM then the destination VO is not getting filtered b