Commit graph

10827 commits

Author SHA1 Message Date
Beniamino Galvani
72191bbeb2 build-from-source: enable all repos and skip broken deps
This is needed to build on RHEL8 where some packages are in the
buildroot repo and not all dependencies are available.
2018-11-09 13:15:47 +01:00
Beniamino Galvani
98f08717cd build-from-source: add gnutls-devel
It is needed on RHEL8
2018-11-09 13:15:03 +01:00
Thomas Haller
a257ae8cac rh-utils: support multiple upstream refs for find-backports.sh
$ contrib/rh-utils/find-backports.sh 1.12.0 origin/nm-1-12 origin/master origin/nm-1-14
2018-10-23 10:12:37 +02:00
Thomas Haller
4ec8a013e3 makerepo: detect base-commit for ModemManager-1.6.10.tar.xz 2018-10-01 19:45:39 +02:00
Thomas Haller
a89a129bf7 build-from-source: fix build failure due to netconfig path
During the test build we enabled "--with-netconfig=yes".

Since commit "5b36585a3d build/autotools: fail configure if
netconfig/resolveconf tool is not found", when specifying
"--with-netconfig=yes" the user is required to have netconfig
installed (so that the path can be detected). Otherwise it fails
with

    checking for netconfig... no
    configure: error: cannot find netconfig in path. Set the path explicitly via --with-netconfig=PATH.

The correct way is to explicitly specify the path. In that
case, it's OK that the file doesn't actually exist.
2018-09-14 10:49:42 +02:00
Thomas Haller
f64723bcad Revert "build-from-source: skip test checking for gtk-doc issue"
In the final version which was merged, the check is non-fatal and
has to be enabled explicitly to fail. See "aa8a7559a3 build: merge
branch 'th/check-gtk-doc-behavior'".

This reverts commit cd8b1cc284.
2018-09-14 10:44:18 +02:00
Thomas Haller
cd8b1cc284 build-from-source: skip test checking for gtk-doc issue
For libnm, we use opaque types. gtk-doc has/had an issue parsing
this code, and generates suboptimal documentation.

There is a merge request against gtk-doc to address that [1].

However, there is also a `make check` test, which tries to determine
whether gtk-doc is suitable [2].

When building for beaker, we don't need this check. Also, because likely
beaker is not up to the task.

[1] https://gitlab.gnome.org/GNOME/gtk-doc/merge_requests/2
[2] https://github.com/NetworkManager/NetworkManager/pull/196
2018-09-08 11:44:34 +02:00
Thomas Haller
ac0a1b3c72 makerepo: adjust repository paths for gnome gitlab migration 2018-09-07 14:34:58 +02:00
Thomas Haller
d8f99fe901 build-from-source: fix checking-out branches by name (2)
git doesn't like to fetch into a local branch which is currently
checked out.

  $ git fetch origin --prune
  fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository

We need to first checkout a plain commit (detached HEAD).

Fixes: 2f67ac9eaf
2018-04-23 15:45:22 +02:00
Thomas Haller
b7ba495aa9 build-from-source: fix checking-out branches by name
Without it, `git checkout -B nmbuild nm-1-10` will fail, because
there is no local branch refs/heads/nm-1-10. Previously, it worked
because there was (one) refs/remotes/origin/nm-1-10, so if we didn't
specify "-B" option, git would create a remote-tracking local branch.

Fix it, by fetching the remote branches as local branches.

Fixes: 2f67ac9eaf
2018-04-23 13:27:19 +02:00
Thomas Haller
2f67ac9eaf build-from-source: also fetch refs for pull requests when building
When somebody creates a pull request against NetworkManager's github
repository, the github repository itself usually doesn't have a branch
that references the pull request.

Hence, the commit will not be fetched by default and checking out
the commit will fail.

Also add and fetch the refs for the pull request.
2018-04-22 09:39:19 +02:00
Thomas Haller
01c880540b build-from-source: set $BUILD_SNAPSPOT to specify snapshot part of package version
Makes use of the new --snapshot option for build_clean.sh,
see 86a18b2df (contrib/rpm: make "snapshot" for package version
configurable via script).
2018-02-09 17:38:35 +01:00
Beniamino Galvani
16d2238316 build-from-source: install libasan and, if available, libubsan
They are needed for sanitizer builds.
2018-02-08 08:59:32 +01:00
Thomas Haller
1b2db713e9 makerepo: fix detecting base-commit for network-manager-applet 1.8.6 release
When doing the release, the commit ID inside the tarball is not the one which
released in the end. Hack around it in the script.
2017-11-08 15:22:53 +01:00
Beniamino Galvani
42db29a235 build-from-source: install strace
It is needed when users select to run NM under strace.
2017-09-21 08:49:24 +02:00
Thomas Haller
1ee2e41e7f makerepo: fix detecting base-commit for libnl 3.4.0-rc1 release
When doing the release, I messed up and the commit ID inside the tarball
is not the one which released in the end. Hack around it in the script.
2017-09-20 11:55:42 +02:00
Thomas Haller
a8993c5afd build-from-source: support building --with sanitizer and explicitly disable debug
When not specifying --with/--without debug, the default depends on the
version number. Hence, we should always explicitly enable or disable
the debug flag.

Also, add support for --with sanitizer.
2017-05-24 11:57:17 +02:00
Thomas Haller
d537fa20f0 makerepo: add git repository for glib2 branch 2017-05-11 15:40:29 +02:00
Beniamino Galvani
59421b7e7e build-from-source: install libcurl and libpsl packages 2017-03-24 09:21:32 +01:00
Beniamino Galvani
3b67d8ed98 build-from-source: print hash of commit being built
Makes easier to analyze logs and troubleshoot failures.
2017-03-09 11:03:35 +01:00
Vladimir Benes
abba3102fb build-from-source: git clone two times via different ways 2017-02-24 21:56:34 +01:00
Thomas Haller
e6dd90625b makerepo: add git repository for NetworkManager-openconnect package 2017-02-24 13:33:57 +01:00
Thomas Haller
0935b26a56 makerepo: add support for gnome-control-center (control-center) package 2017-02-22 13:33:02 +01:00
Vladimir Benes
ae8e191d88 automation: clone from github instead of anongit.freedesktop.org
It looks that freedesktop blocks our git clone requests from time to
time. Github should handle more loads.

https://github.com/NetworkManager/NetworkManager/pull/13
2017-02-14 12:09:54 +01:00
Thomas Haller
b0870096f2 makerepo: handle new SHA512 sources to detect build-directory 2016-12-12 22:36:25 +01:00
Thomas Haller
b6448f1416 makerepo: don't imply --local by --dist 2016-10-31 14:12:26 +01:00
Thomas Haller
89936e0d23 makerepo: add git-remote for NetworkManager-fortisslvpn package 2016-10-03 16:01:39 +02:00
Thomas Haller
ebcdc503f4 makerepo: add git-remote for NetworkManager-pptp package 2016-10-03 13:28:18 +02:00
Thomas Haller
2b0438f975 makerepo: add remote "nm" for wpa_supplicant 2016-09-16 10:54:34 +02:00
Thomas Haller
e375d9e474 makerepo: detect upstream branch parent for VPN plugins 2016-09-14 14:30:30 +02:00
Thomas Haller
4cd539745b makerepo: add upstream branch parent for wpa_supplicant release 2016-09-12 11:01:11 +02:00
Thomas Haller
086113a646 makerepo: better detect current source directory
Fix detecting "NetworkManager-0.8.1" directory in
"NetworkManager-0.8.1.git20100811.tar.bz2" tarball for rhel-6.
2016-09-08 23:51:24 +02:00
Thomas Haller
4b797b69ee makerepo: add support for ModemManager package 2016-08-26 16:29:01 +02:00
Thomas Haller
f74ba16681 makerepo: better detect current source directory
When switching between branches (e.g. 'rhel-7.2' and 'rhel-7.3'),
the script would not properly detect the source directory and on
'rhel-7.3' it might choose 'NetworkManager-1.0.6' instead of
'NetworkManager-1.4.0'.

Fix that, by choosing the lastly modified directory, which is the
correct one as we do this after running `$FEDPKG prep`.
2016-08-26 16:29:01 +02:00
Thomas Haller
a62c06dcb3 makerepo: add upstream branch parent for initscripts release 2016-08-23 15:18:37 +02:00
Beniamino Galvani
af96dc02cd rh-bkr: update jenkins builds host 2016-07-18 09:58:41 +02:00
Thomas Haller
1650074ea6 makerepo: add upstream branch parent for libnl3 release 2016-07-09 09:48:03 +02:00
Thomas Haller
b654086fda makerepo: add upstream branch parent for NetworkManager-openvpn release 2016-07-04 11:31:50 +02:00
Thomas Haller
ee3466b75f makerepo: add upstream branch parent for libnl3 release 2016-06-30 13:36:22 +02:00
Thomas Haller
67f6b005a0 makerepo: fix supporting NetworkManager-libreswan package 2016-06-29 19:42:06 +02:00
Thomas Haller
1cb3b1e26f makerepo: add upstream branch parent for NetworkManager-libreswan release 2016-06-29 19:37:04 +02:00
Thomas Haller
5f8ccb9064 makerepo: add upstream branch parent for NM-vpn release 2016-06-21 09:51:52 +02:00
Thomas Haller
678ce9e730 contrib/makerepo: add vpnc package to makerepo.sh 2016-05-15 19:55:22 +02:00
Lubomir Rintel
fe42d5ed4e contrib/rh-bkr: brew moved 2016-04-05 14:29:40 +02:00
Lubomir Rintel
5dcf4458b3 contrib/rh-bkr: default to RTT_ACCEPTED 2016-04-05 13:42:22 +02:00
Lubomir Rintel
8485ddb161 contrib/rh-bkr: master tests now run with all branches 2016-04-05 13:42:05 +02:00
Lubomir Rintel
5bcc6ac784 contrib/rh-bkr: allow noarch packages 2016-03-24 09:57:24 +01:00
Lubomir Rintel
b4d8024f3b contrib/rh-bkr: ensure there's needed packages 2016-03-22 10:43:19 +01:00
Lubomir Rintel
1890c816a9 contrib/rh-bkr: don't upgrade NetworkManager to distribution version 2016-03-21 17:17:06 +01:00
Thomas Haller
d16ebc90e0 contrib/makerepo: better try to detect an unknown build-type 2016-03-16 10:24:41 +01:00