summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)AuthorFilesLines
2016-06-07contrib/rpm: don't enable sanitizer for debug buildThomas Haller1-2/+0
There are valid failures, for which sanitizer would kill NetworkManager: audit[1380]: AVC avc: denied { setrlimit } for pid=1380 comm="NetworkManager" scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:system_r:NetworkManager_t:s0 tclass=process permissive=0 NetworkManager[1380]: ==1380==ERROR: AddressSanitizer setrlimit() failed 13 Disable sanitizer to make debug builds working again, at least for now.
2016-06-03build: add options to compile with address/undefined sanitizersBeniamino Galvani1-0/+2
This adds two new options to the configure scripts to compile NM, clients and libraries with the address and undefined-behavior sanitizers available in recent GCC versions. Clang is not supported at moment.
2016-06-02contrib/rpm: add Requires to exact wwan version for NetworkManager-bluetooth ↵Thomas Haller1-1/+1
subpackage rpmdiff complains: Subpackage NetworkManager-bluetooth on aarch64 x86_64 ppc64 ppc64le s390x consumes library libnm-wwan.so()(64bit) from subpackage NetworkManager-wwan but does not have explicit package version requirement. Please add Requires: NetworkManager-wwan = %{version}-%{release} to NetworkManager-bluetooth in the specfile to avoid the need to test interoperability between the various combinations of old and new subpackages. And indeed, device plugins don't have a stable API/ABI, and requires exact NetworkManager and wwan versions. This was already enforced implicitly, because all device plugins require the same exact NetworkManager version.
2016-05-31contrib: update REQUIRED_PACKAGES listThomas Haller1-0/+5
Needed to build contrib/rpm.
2016-05-06contrib/rpm: refactor specifying package version in spec fileThomas Haller2-3/+11
Similar to what we do for RHEL and Fedora's spec file.
2016-05-05contrib/rpm: make package "NetworkManager-dispatcher-routing-rules" as ↵Thomas Haller1-0/+1
"BuildArch: noarch"
2016-05-05contrib/rpm: rename package "NetworkManager-config-routing-rules" to ↵Thomas Haller1-5/+7
"NetworkManager-dispatcher-routing-rules"
2016-05-05contrib/rpm: split "10-ifcfg-rh-routes.sh" script to ↵Thomas Haller1-3/+14
NetworkManager-config-routing-rules package Like we do on RHEL. The package-split was originally necessary because installing a pre-up dispatcher script would block activation (even if there were no relevant route files. Even if we have now the no-wait.d/ directory for dispatchers, still split the package. It makes sense to have the routing-rules in a separate RPM. For contrib/rpm, we don't properly obsolete an older version of NetworkManager package and thus the upgrade path will be broken.
2016-04-18contrib/fedora: add dependency on janssonBeniamino Galvani2-0/+2
2016-04-05man: move nmcli-examples to section 7Lubomir Rintel1-0/+1
It really is not a configuration file and doesn't belong to section 5.
2016-04-01contrib/rpm: fix logic in build.sh about specifying sourceThomas Haller1-10/+6
When the user neither specifies SOURCE or SOURCE_FROM_GIT, we first want to detect a tarball in the current directory, and as second fallback to SOURCE_FROM_GIT=1. If either SOURCE or SOURCE_FROM_GIT is set, we want to do that and not detect anything. The logic was wrong.
2016-04-01contrib/rpm: improve build_clean.sh to explicitly set $SOURCE_FROM_GITThomas Haller1-11/+25
Presiouvly, when there was a tarball file in the top git-tree, it would have been choosen and no easy way to overwrite the decision to build from a git-archive. Now you can safely build current HEAD by simply calling ./contrib/fedora/rpm/build_clean.sh -g Contrary to the regular build which calls `make dist`, this doesn't require a clean working copy and no need to purge it with git-clean.
2016-03-30contrib/rpm: add comments to build.sh to list script argumentsThomas Haller1-2/+23
2016-03-30contrib/rpm: fix obtaining SOURCE via git-archiveThomas Haller1-18/+52
- when user provided a $SOURCE argument, do call abs_path on it. abs_path allows the user to provide relative paths in the original directory. - don't call abs_path on "$GITDIR/NetworkManager-$VERSION".tar.xz abs_path is there to verify user input and it will abort the script if the file doesn't exist. - when creating a temporary tarball via git-archive, put it into the output directory and not overwriting files in $GITDIR. - fix abs_path to return an error code and let callers abort the script - add a new parameter $SOURCE_FROM_GIT so that you can control whether git-archive is used. You can now specify either $SOURCE or $SOURCE_FROM_GIT. In case of absence of both, it tries to detect a tar file in the $GITDIR directory. Fixes: 9e9ec1a3da47c07bb0bb0b42014292a8df1c1e0b
2016-03-30contrib/rpm: allow building of a git archiveLubomir Rintel2-4/+8
No need for a make dist.
2016-03-30contrib/rpm: allow building w/o prebuilt documentationLubomir Rintel1-11/+2
2016-03-14contrib/rpm: with-udev-dir now has a sensible defaultLubomir Rintel1-3/+1
2016-03-05contrib/rpm: macro cosmeticsLubomir Rintel1-1/+1
2016-03-05contrib/rpm: include the valgrind suppression file in debuginfo packageLubomir Rintel1-0/+5
2016-02-26contrib/rpm: print dnf-install command at the end of build.shThomas Haller1-1/+3
2016-02-17contrib/rpm: add README, improve usage output and rename --no-build option ↵Thomas Haller2-6/+32
to --no-dist
2016-02-12travis: fix setting NMTST_DEBUG for travis-check.sh scriptThomas Haller1-1/+1
2016-02-12contrib/rpm: create dnsmasq-shared.d configuration directoryThomas Haller1-0/+2
2016-02-04contrib/rpm: wrap long description linesThomas Haller1-13/+15
rpmlint warns description-line-too-long if the line exceeds 79 characters.
2016-02-04contrib/rpm: minor cleanupThomas Haller1-1/+1
2016-02-03contrib/rpm: update comment in 00-server.confThomas Haller1-7/+1
2016-02-03contrib/rpm: remove unneeded chkconfig and systemd-sysv requirementsThomas Haller1-5/+0
2016-02-03contrib/rpm: remove unused 10-ibft-plugin.conf fileThomas Haller1-11/+0
Fixes: 6f0036151f464921a62d15c03cd9aa0f213e6200
2016-02-03contrib/rpm: add rpm_version in spec fileThomas Haller1-3/+4
and rename realversion to real_version to follow the pattern.
2016-02-03contrib/rpm: update comment for patches in spec fileThomas Haller1-1/+1
We don't want to create backups of original files when patching. Update the comment in the spec file to indicate that.
2016-02-02contrib/rpm: make build more configurable by using conditionalsThomas Haller3-37/+83
Also add a new conditional "debug" to enable more assertions and more logging, which is disabled by default. Also add a conditional "test" to disable running the unit tests (make check) while building the package. http://rpm.org/wiki/PackagerDocs/ConditionalBuilds
2016-02-02contrib/rpm: add --no-build option to build_clean.shThomas Haller1-13/+20
Option to skip building the source package. Useful if you already have a source tarball from a previous run.
2016-01-27contrib/rpm: add comment to NetworkManager.conf about debug logfilesThomas Haller1-2/+19
2016-01-22travis: add coverity submissionLubomir Rintel1-6/+0
Also, decouple the build from the test run; it looks better in the .yml file as well as in the travis UI.
2016-01-22travis: move build script to a separate script and improve debugging for ↵Thomas Haller1-0/+29
failed tests
2016-01-08contrib/rpm: install pre-up dispatcher script "10-ifcfg-rh-routes.sh" as no-waitThomas Haller1-1/+3
The main reason to introduce the "no-wait.d" dispatcher directory was "10-ifcfg-rh-routes.sh", which (as a pre-up script) delays activation. We even extracted the script to a separate package on RHEL to avoid delays by default. Invoke the script via no-wait.d.
2015-12-24build: rename directory "include" to "shared"Thomas Haller1-1/+1
Up to now, the "include" directory contained (only) header files that were used project-wide by libs, core, clients, et al. Since the directory now also contains a non-header file, the "include" name is misleading. Instead of adding yet another directory that is project-wide, with non-header-only content, rename the "include" directory to "shared".
2015-12-07nm-import-openvpn: import 'route' optionJiří Klimeš1-37/+96
https://bugzilla.gnome.org/show_bug.cgi?id=753578 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=4eb5f3ad43cdc62c6d4d254731e24c90b87ba91a
2015-10-23contrib/rpm: remove NetworkManager-devel packageThomas Haller1-28/+15
NetworkManager-devel package contained development headers that are useful without libnm-glib and without glib. But it is also based on the legacy libnm-glib library as it has headers like "/usr/include/NetworkManager/NetworkManager.h". A glib-free devel package based on the new libnm library would be needed to provide "/usr/include/libnm/nm-dbus-interface.h". But that would amount to 4 devel packages. Instead, just move the content of NetworkManager-devel into NetworkManager-glib-devel package. Note that NetworkManager-devel already contained several truely libnm-glib dependent files, like the vala bindings (which require libnm-glib). So that was another bug in the packaging and is fixed by moving it all to NetworkManager-glib-devel. https://bugzilla.gnome.org/show_bug.cgi?id=755938
2015-09-30contrib/rpm: remove dbus-glib dependancyThomas Haller1-1/+0
Only libnm-glib still requires dbus-glib.
2015-09-30build: extract version macros from "nm-version.h" to new header file ↵Thomas Haller1-0/+1
"nm-version-macros.h" For libnm library, "nm-dbus-interface.h" contains defines like the D-Bus paths of NetworkManager. It is desirable to have this header usable without having a dependency on "glib.h", for example for a QT application. For that, commit c0852964a890cf43cc2dcaeff41ac6edc5028f24 removed that dependancy. For libnm-glib library, the analog to "nm-dbus-interface.h" is "NetworkManager.h", and the same applies there. Commit 159e827a72f420048e12d318f8ba1edd3f641fc8 removed that include. However, that broke build on PackageKit [1] which expected to get the version macros by including "NetworkManager.h". So at least for libnm-glib, we need to preserve old behavior so that a user including "NetworkManager.h" gets the version macros, but not "glib.h". Extract the version macros to a new header file "nm-version-macros.h". This header doesn't include "glib.h" and can be included from "NetworkManager.h". This gives as previous behavior and a glib-free include. For libnm we still don't include "nm-version-macros.h" to "nm-dbus-interface.h". Very few users will actually need the version macros, but not using libnm. Users that use libnm, should just include (libnm's) "NetworkManager.h" to get all headers. As a special case, a user who doesn't want to use glib/libnm, but still needs both "nm-dbus-interface.h" and "nm-version-macros.h", can include them both separately. [1] https://github.com/hughsie/PackageKit/issues/85 Fixes: 4545a7fe9670ce4d7c259c11c2cc853bfae6729b
2015-09-28contrib/rpm: regenerate automake with locally present versionLubomir Rintel1-2/+1
The modification of po/Makefile.in.in may trigger re-run of autotools and it would fail if the versions differ. Fixes: 2318c0de9291b9dcf9e720a2e5041266449dfd57
2015-09-22contrib/rpm: fix creating proper po/Makefile.in.in (rh #1265117)Jiří Klimeš1-2/+2
Without that DATADIRNAME was not present in po/Makefile.in.in and it resulted in /usr/\@DATADIRNAME\@/locale/cs/LC_MESSAGES/ path instead of /usr/share/locale/cs/LC_MESSAGES/. https://bugzilla.redhat.com/show_bug.cgi?id=1265117
2015-09-03contrib/rpm: sync from Fedora gitLubomir Rintel1-104/+51
2015-08-25nm-dispatcher: allow scripts to be marked as no-waitBeniamino Galvani1-0/+2
When a script is a symbolic link to the 'no-wait.d' subdirectory, the dispatcher now schedules it immediately and in parallel with other no-wait scripts. https://bugzilla.gnome.org/show_bug.cgi?id=746703
2015-08-19nm-import-openvpn: import 'keepalive' optionJiří Klimeš1-0/+9
https://bugzilla.gnome.org/show_bug.cgi?id=651657 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=6afd16bcacd87a019e12f4df0d63a9e0e8c94e9e
2015-08-19nm-import-openvpn: import 'ping', 'ping-exit' and 'ping-restart' optionsJiří Klimeš1-0/+11
https://bugzilla.gnome.org/show_bug.cgi?id=651657 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=054cc997ca38e5d786859fa6d032c4404af3d28a
2015-08-19nm-import-openvpn: improve error checkingJiří Klimeš1-4/+5
2015-08-19nm-import-openvpn: fix importing OpenVPN configuration with 'tls-client'Jiří Klimeš1-2/+2
2015-08-11contrib: add emacs config for hacking on NMDan Winship1-0/+61
https://bugzilla.gnome.org/show_bug.cgi?id=753411