NetworkManager/contrib/fedora/rpm
Thomas Haller 3fab322a20 netlink: drop libnl3 dependency
From libnl3, we only used the helper function to parse/generate netlink
messages and the socket functions to send/receive messages. We don't
need an external dependency to do that, it is simple enough.

Drop the libnl3 dependency, and replace all missing code by directly
copying it from libnl3 sources. At this point, I mostly tried to
import the required bits to make it working with few modifications.

Note that this increases the binary size of NetworkManager by 4736 bytes
for contrib/rpm build on x86_64. In the future, we can simplify the code
further.

A few modifications from libnl3 are:

- netlink errors NLE_* are now in the domain or regular errno.
  The distinction of having to bother with two kinds of error
  number domains was annoying.

- parts of the callback handling is copied partially and unused parts
  are dropped. Especially, the verbose/debug handlers are not used.
  In following commits, the callback handling will be significantly
  simplified.

- the complex handling of seleting ports was simplified. We now always
  let kernel choose the right port automatically.
2018-02-21 12:08:46 +01:00
..
.gitignore contrib/rpm: add spec file and script to build a RPM package 2014-05-07 17:14:36 +02:00
00-server.conf contrib/rpm: update comment in 00-server.conf 2016-02-03 16:25:19 +01:00
20-connectivity-fedora.conf config/rpm: use plain HTTP URI for connectivity checking 2015-07-16 16:44:49 +02:00
build.sh contrib/rpm: make "snapshot" for package version configurable via script 2018-02-09 17:35:19 +01:00
build_clean.sh contrib/rpm: make "snapshot" for package version configurable via script 2018-02-09 17:35:19 +01:00
mockbuild.sh contrib/fedora: Add mockbuild.sh 2017-10-30 11:04:20 +01:00
NetworkManager.conf contrib/rpm: fix code comment in default "NetworkManager.conf" 2017-01-17 14:26:30 +01:00
NetworkManager.spec netlink: drop libnl3 dependency 2018-02-21 12:08:46 +01:00
README contrib/fedora: Add mockbuild.sh 2017-10-30 11:04:20 +01:00

# To build RPM packages for Fedora derivates directly from git, just do:


#
# preparation:
#
git clone git://anongit.freedesktop.org/NetworkManager/NetworkManager
cd NetworkManager
git checkout $WHATEVER
sudo sh ./contrib/fedora/REQUIRED_PACKAGES


#
# build the packages. Pass --help for usage help.
#
./contrib/fedora/rpm/build_clean.sh


#
# install
#
sudo dnf install ./contrib/fedora/rpm/latest/RPMS/x86_64/*rpm



# To generate a clean build from git using mock, run:
./contrib/fedora/rpm/mockbuild.sh