pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: net/megatools doesn't build with PREFER_PKGSRC=yes



On 2017-09-09 16:33, Leonardo Taccari wrote:
Hello Aleksej!

Aleksej Lebedev writes:
[...]
While playing with the PREFER_PKGSRC option I noticed that
net/megatools doesn't build. Adding the build dependency on
devel/libgetopt fixes the problem.
I am the maintainer of net/megatools, but I am not a commiter.
(The package was imported from wip some time ago.)

Could someone add the line to net/megatools/Makefile, please?
[...]

Sure!

However, how does it fails? (I'm just curious but I couldn't find any
reference to getopt*(3))

Good question. Looks like it's failing inside buildlink framework.
Here is the log:


root@kl:/usr/pkgsrc/net/megatools# uname -a
DragonFly kl.zta.lk 4.8-RELEASE DragonFly v4.8.1.2.g44df54-RELEASE #6: Thu Aug 10 11:38:59 CEST 2017 root%kl.zta.lk@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
root@kl:/usr/pkgsrc/net/megatools# /pkg/bin/bmake -d e
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/pkg/sbin/pkg_admin -K /pkg/pkgdb fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for megatools-1.9.95.tar.gz
=> Checksum RMD160 OK for megatools-1.9.95.tar.gz
=> Checksum SHA512 OK for megatools-1.9.95.tar.gz
===> Installing dependencies for megatools-1.9.95nb4
==========================================================================
The following variables will affect the build process of this package,
megatools-1.9.95nb4.  Their current value is shown below:

        * SSLBASE (defined)
        * SSLCERTS = /pkg/etc/openssl/certs
        * SSLDIR = /pkg/etc/openssl
        * SSLKEYS = /pkg/etc/openssl/private

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.3.5
=> Build dependency cwrappers>=20150314: found cwrappers-20170611
=> Full dependency glib-networking>=2.36.2: found glib-networking-2.48.0nb1
=> Full dependency glib2>=2.34.0: found glib2-2.50.3
=> Full dependency curl>=7.54.0nb1: found curl-7.54.1
===> Overriding tools for megatools-1.9.95nb4
===> Extracting for megatools-1.9.95nb4
===> Patching for megatools-1.9.95nb4
===> Creating toolchain wrappers for megatools-1.9.95nb4
ERROR: libgetopt>=1.4.6 is not installed; can't buildlink files.

*** Failed target: /var/tmp/pkgsrc-obj/net/megatools/work/.buildlink/.buildlink_getopt_done *** Failed command: set -e; case "BUILDLINK_PREFIX.getopt_not_found" in *not_found) echo 1>&2 "ERROR:" "libgetopt>=1.4.6 is not installed; can't buildlink files."; exit 1; ;; esac
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/net/megatools

*** Failed target:  barrier
*** Failed command: set -e; if test -n "" && /pkg/sbin/pkg_info -K /pkg/pkgdb -qe megatools-1.9.95nb4; then echo ===\> "Skipping installation of already handled package"; else cd /usr/pkgsrc/net/megatools && /usr/bin/env PATH=/var/tmp/pkgsrc-obj/net/megatools/work/.cwrapper/bin:/var/tmp/pkgsrc-obj/net/megatools/work/.buildlink/bin:/var/tmp/pkgsrc-obj/net/megatools/work/.gcc/bin:/var/tmp/pkgsrc-obj/net/megatools/work/.tools/bin:/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/pkg/sbin:/pkg/bin:/home/a/bin:/plan9/bin /pkg/bin/bmake _MAKE=/pkg/bin/bmake OPSYS=DragonFly OS_VERSION=4.8 LOWER_OPSYS=dragonfly _PKGSRCDIR=/usr/pkgsrc PKGTOOLS_VERSION=20170419 PKG_BUILD_OPTIONS.curl=\ inet6\ libidn _CC=/usr/bin/cc _PATH_ORIG=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/pkg/sbin:/pkg/bin:/home/a/bin:/plan9/bin _PKGSRC_BARRIER=yes ALLOW_VULNERABLE_PACKAGES= all || { exitcode="$?"; /usr/bin/env PATH=/var/tmp/pkgsrc-obj/net/megatools/work/.cwrapper/bin:/var/tmp/pkgsrc-obj/net/megatools/work/.buildlink/bin:/var/tmp/pkgsrc-obj/net/megatools/work/.gcc/bin:/var/tmp/pkgsrc-obj/net/megatools/work/.tools/bin:/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/pkg/sbin:/pkg/bin:/home/a/bin:/plan9/bin /pkg/bin/bmake _MAKE=/pkg/bin/bmake OPSYS=DragonFly OS_VERSION=4.8 LOWER_OPSYS=dragonfly _PKGSRCDIR=/usr/pkgsrc PKGTOOLS_VERSION=20170419 PKG_BUILD_OPTIONS.curl=\ inet6\ libidn _CC=/usr/bin/cc _PATH_ORIG=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/pkg/sbin:/pkg/bin:/home/a/bin:/plan9/bin _PKGSRC_BARRIER=yes barrier-error-check; exit "$exitcode"; }; fi
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/megatools


(about PKGREVISION bump this isn't needed because it will fix build on
platforms where it previosly didn't built)

You're right. Didn't think about it.

--
Aleksej Lebedev


Home | Main Index | Thread Index | Old Index