On (24/02/16 23:16), Dan Lavu wrote:
I was wondering if somebody could provide me some makefile guidance.
I've
found a couple of syntax errors when setting up CI, the second run of dnf/yum
adds -- that causes the command to fail, and the dependencies with versions
are missing quotes.
I've tracked the deps.list being generated in the following file,
https://git.fedorahosted.org/cgit/sssd.git/tree/contrib/ci/deps.sh on line
48, but I'm not sure where @VARIABLES@ are coming from.
Logs are below, thanks!
-Dan
----------FAILURE
Start: Thu Feb 25 03:46:13 UTC 2016
+ deps_install
+ distro_pkg_install lcov valgrind clang-analyzer fakeroot libcmocka-devel
mock nss_wrapper openldap-clients openldap-servers pytest python-ldap
rpm-build uid_wrapper augeas-devel autoconf automake bind-utils c-ares-devel
check-devel cifs-utils-devel dbus-devel dbus-libs docbook-style-xsl doxygen
findutils gettext-devel glib2-devel keyutils-libs-devel krb5-devel
'libcmocka-devel >= 1.0.0' libcollection-devel 'libdhash-devel >=
0.4.2'
'libini_config-devel >= 1.1' libldb-devel libnfsidmap-devel libnl3-devel
libselinux-devel libsemanage-devel libsmbclient-devel libtalloc-devel
libtdb-devel libtevent-devel libtool libxml2 libxslt m4 nspr-devel nss-devel
nss_wrapper openldap-devel pam-devel pcre-devel pkgconfig popt-devel
python-devel python3-devel samba4-devel selinux-policy-targeted systemd-devel
uid_wrapper
+ declare 'prompt=Need root permissions to install packages.
'
+ prompt+='Enter sudo password for root: '
+ [[ -redhat-fedora-23- == -redhat-* ]]
+ '[' 60 '!=' 0 ']'
+ awk 'BEGIN {s=0}
/^No package .* available.$/ {s=1}
{print}
END {exit s}'
+ sudo -p 'Need root permissions to install packages.
Enter sudo password for root: ' yum --assumeyes install -- lcov valgrind
clang-analyzer fakeroot libcmocka-devel mock nss_wrapper openldap-clients
openldap-servers pytest python-ldap rpm-build uid_wrapper augeas-devel
autoconf automake bind-utils c-ares-devel check-devel cifs-utils-devel
dbus-devel dbus-libs docbook-style-xsl doxygen findutils gettext-devel
glib2-devel keyutils-libs-devel krb5-devel 'libcmocka-devel >= 1.0.0'
libcollection-devel 'libdhash-devel >= 0.4.2' 'libini_config-devel >=
1.1'
libldb-devel libnfsidmap-devel libnl3-devel libselinux-devel
libsemanage-devel libsmbclient-devel libtalloc-devel libtdb-devel
libtevent-devel libtool libxml2 libxslt m4 nspr-devel nss-devel nss_wrapper
openldap-devel pam-devel pcre-devel pkgconfig popt-devel python-devel
python3-devel samba4-devel selinux-policy-targeted systemd-devel uid_wrapper
Yum command has been deprecated, redirecting to '/usr/bin/dnf --assumeyes
install -- lcov valgrind clang-analyzer fakeroot libcmocka-devel mock
nss_wrapper openldap-clients openldap-servers pytest python-ldap rpm-build
uid_wrapper augeas-devel autoconf automake bind-utils c-ares-devel
check-devel cifs-utils-devel dbus-devel dbus-libs docbook-style-xsl doxygen
findutils gettext-devel glib2-devel keyutils-libs-devel krb5-devel
libcmocka-devel >= 1.0.0 libcollection-devel libdhash-devel >= 0.4.2
libini_config-devel >= 1.1 libldb-devel libnfsidmap-devel libnl3-devel
libselinux-devel libsemanage-devel libsmbclient-devel libtalloc-devel
libtdb-devel libtevent-devel libtool libxml2 libxslt m4 nspr-devel nss-devel
nss_wrapper openldap-devel pam-devel pcre-devel pkgconfig popt-devel
python-devel python3-devel samba4-devel selinux-policy-targeted systemd-devel
uid_wrapper'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Last metadata expiration check performed 0:21:20 ago on Thu Feb 25 03:24:54
2016.
No package -- available.
^^
Here is a problem.
and it's know *feature* of dnf
https://bugzilla.redhat.com/show_bug.cgi?id=1215208
We have also sssd tracker somewhere.
Workaround is to install dependencies with yum-deprecated on
fedora (instead of /usr/bin/yum which is redirected to dnf)
Then you can call CI script with argument:
-n, --no-deps Don't attempt to install dependencies.
LS