Commit graph

10821 commits

Author SHA1 Message Date
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
Lubomir Rintel
f4505bd88a contrib/rh-bkr: add a warning 2016-03-09 15:39:42 +01:00
Lubomir Rintel
834c331f68 contrib/rh-bkr: default to RHEL 7 if distro unspecified 2016-03-07 14:56:58 +01:00
Lubomir Rintel
e804b0614a contrib/rh-bkr: add --valgrind flag
Installs valgrind and provides a template for vgdb enabled valgrind-wrapped
service. The test harness is expected to pick this up, finish the setup and
eventually make use of it.
2016-03-05 00:37:53 +01:00
Beniamino Galvani
fa7ea3d5a3 rh-bkr: install jansson-devel package when building from sources
It will be required to build the teamd device plugin.
2016-02-29 23:13:03 +01:00
Thomas Haller
9a06d42476 rh-bkr: allow WITH_DEBUG option for "build-from-source.sh"
Since 87dc14476b we can enable
more assertions when building the RPM package. Allow passing
that option to "build-from-source.sh" by setting environment
"WITH_DEBUG=yes".
2016-02-02 20:04:03 +01:00
Thomas Haller
b33afa291a rh-bkr: build package for beaker script in beaker task
Building NetworkManager during kickstart has the serious disadvantage
that we don't yet run the installed system. E.g. if the kernel has
issues there, it fails `make check` of the build process, although
the later run kernel is fine.

Also, a failure during kickstart does not allow to access the machine
later to inspect the failure reason (e.g. the testing logfiles).

Instead, move the building to a separate script and run it as a beaker
task.
2016-01-14 17:45:56 +01:00