perlalien / alien-pkgconf Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
NAME Alien::pkgconf - Discover or download and install pkgconf + libpkgconf SYNOPSIS use Alien::pkgconf; my $cflags = Alien::pkgconf->cflags; my $libs = Alien::pkgconf->libs; DESCRIPTION This module provides you with the information that you need to invoke "pkgconf" or link against "libpkgconf". It isn't intended to be used directly, but rather to provide the necessary package by a CPAN module that needs "libpkgconf", such as PkgConfig::LibPkgConf. METHODS cflags my $cflags = Alien::pkgconf->cflags; The compiler flags for compiling against "libpkgconf". libs my $libs = Alien::pkgconf->libs; The linker flags for linking against "libpkgconf". dynamic_libs my($dll) = Alien::pkgconf->dynamic_libs; The ".so", ".dll" or ".dynlib" shared or dynamic library which can be used via FFI. version my $version = Alien::pkgconf->version; The "libpkgconf" version. bin_dir my($dir) = Alien::pkgconf->bin_dir; The directory where you can find "pkgconf". If it is not already in the "PATH". Adding this to "PATH" should make tools that require "pkgconf" work. install_type my $type = Alien::pkgconf->install_type; The type of install, should be either "share" or "system". HELPERS pkgconf %{pkgconf} The name of the "pkgconf" binary. This is usually just "pkgconf". SEE ALSO PkgConfig::LibPkgConf PLATFORM NOTES Solaris You may need to have the GNU version of nm installed, which comes with GNU binutils. ACKNOWLEDGMENTS Thanks to the "pkgconf" developers for their efforts: <https://github.com/pkgconf/pkgconf/graphs/contributors> AUTHOR Graham Ollis Contributors: Thibault Duponchelle (tib) COPYRIGHT AND LICENSE This software is copyright (c) 2016 Graham Ollis. This is free software; you may redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
While running make on a CentOS7 system:
cp lib/Alien/pkgconf.pm blib/lib/Alien/pkgconf.pm
"/opt/perl-5.24.1/bin/perl5.24.1" script/fetch.pl
fetch http://distfiles.dereferenced.org/pkgconf
fetch http://distfiles.dereferenced.org/pkgconf/pkgconf-1.2.0.tar.xz
write _alien/tar/pkgconf-1.2.0.tar.xz
"/opt/perl-5.24.1/bin/perl5.24.1" script/extract.pl
untar _alien/tar/pkgconf-1.2.0.tar
write _alien/src/pkgconf-1.2.0
"/opt/perl-5.24.1/bin/perl5.24.1" script/probe.pl site /opt/perl-5.24.1/lib/5.24.1/x86_64-linux /opt/perl-5.24.1/lib/site_perl/5.24.1/x86_64-linux
do not know enough about this OS to probe for correct paths. Please open a ticket https://github.com/plicease/Alien-pkgconf/issues at script/probe.pl line 262.
make: *** [_alien/01probe.json] Fehler 2
https://gist.github.com/plicease/07841efa0fa9ea6f06114364d518bfd8
Strongly suspect this is actually a bug in Test::Alien
since it isn't tested in CI on those versions (?)
When I originally wrote this there weren't any system libpkgconf packages so I wasn't testing system installs, but it might be in debian by now and might be worth adding to ci.
PkgConfig::LibPkgConf with patch from PerlAlien/PkgConfig-LibPkgConf#15 and temporary disabled test suite.
Test suite is failing:
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
#
#
#
# _dist_dir = /home/tkloczko/rpmbuild/BUILD/Alien-pkgconf-0.18/blib/lib/auto/share/dist/Alien-pkgconf
# $VAR1 = {
# 'dll' => '/usr/lib64/libpkgconf.so.4.0.0',
# 'install_type' => 'system',
# 'cflags' => '-I/usr/include/pkgconf -DPKGCONFIG_IS_NOT_STATIC ',
# 'version' => '1.9.3',
# 'libs' => '-lpkgconf '
# };
#
#
t/00_diag.t .. ok
t/helper.t ... ok
# Failed test 'pkgconf is not 1.9.x or 2.x'
# at t/xs.t line 20.
# +-------+----+-------+
# | GOT | OP | CHECK |
# +-------+----+-------+
# | 10903 | < | 10900 |
# +-------+----+-------+
# Failed test 'xs subtest'
# at t/xs.t line 21.
t/xs.t .......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests
Test Summary Report
-------------------
t/xs.t (Wstat: 256 Tests: 5 Failed: 1)
Failed test: 5
Non-zero exit status: 1
Files=3, Tests=7, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.89 cusr 0.28 csys = 1.20 CPU)
Result: FAIL
Failed 1/3 test programs. 1/7 subtests failed.
I added a skip on 5.16 and 5.18 in CI because it started failing, I think when I switched to cip.
These fails are not showing up in cpantesters, so it is either a prereq fail or something wrong with the CI itself.
During install on the Macbook with M1 processor got:
perl-5.18.4/bin/perl" script/probe.pl site perl-5.18.4/lib/5.18.4/aarch64-linux perl-5.18.4/lib/site_perl/5.18.4/aarch64-linux
do not know enough about this OS to probe for correct paths.
Please open a ticket https://github.com/PerlAlien/Alien-pkgconf
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.