Commit Graph

161 Commits

Author SHA1 Message Date
Martin Pitt
66439fe3ea Link check: test "systemd" binary as well, show binaries 2015-06-17 11:42:03 +02:00
Martin Pitt
c992598b78 Don't run link check with nocheck build option to avoid breaking cross-builds 2015-06-17 11:21:29 +02:00
Martin Pitt
5a33d4b966 Also check during build that other binaries do not link against /usr
This is particularly important for udev. It's not required for e. g. logind or
machined, but as currently none of these link against /usr let's keep this
strict for now and adjust it once we need it.
2015-06-17 10:02:05 +02:00
Martin Pitt
24b267b53c Check during build that systemd and systemd-journald don't link against anything in /usr
This prevents bugs like #771652 and #788913 in the future.
2015-06-17 08:00:45 +02:00
Martin Pitt
5a9a0e7d25 Stop installing tmp.mount by default
There are still situations where it becomes active through dependencies from
other units, which is surprising, hides existing data in /tmp during runtime,
and it isn't safe to have a tmpfs /tmp on every install scenario.

  - d/rules: Ship tmp.mount in /usr/share/systemd/ instead of
    /lib/systemd/systemd.
  - systemd.postinst: When tmp.mount already was enabled, install tmp.mount
    into /etc and keep it enabled.
  - systemd.postinst: When enabling tmp.mount because of RAMTMP=yes, copy it
    from /usr/share.
  - Drop Don-t-mount-tmp-as-tmpfs-by-default.patch and
    PrivateTmp-shouldn-t-require-tmpfs.patch, not necessary any more.

Closes: #783509
2015-06-11 09:13:34 +02:00
Martin Pitt
d2504c4c4d Enable seccomp support
Restrict the build dep on the architectures that provide libseccomp. This is
also why we can't configure with --enable-seccomp explicitly but rely on
auto-detection.

Closes: #760299
2015-06-10 07:55:43 +02:00
Martin Pitt
812293bee7 Disable EFI support for udeb build 2015-06-06 16:00:40 +02:00
Martin Pitt
865ca5e8b7 Ignore test failures during build if /etc/machine-id is missing
This is the case in a few buildd chroots still.

Closes: #787258
2015-06-03 08:58:13 +02:00
Martin Pitt
ee26dbafd6 Ignore test failures on mipsel
The three failures are not reproducible on the porter box (different kernel?).

See #787258, which we downgrade to important with this.
2015-06-01 07:17:45 +02:00
Michael Biebl
697bcdb271 Cleanup up some leftover bits after the gudev removal
Those were missed in ff3e6f6.
2015-05-29 10:09:53 +02:00
Martin Pitt
6ced9cb735 Use Ubuntu's default NTP server for timesyncd when building on Ubuntu 2015-05-29 10:00:12 +02:00
Michael Biebl
ff3e6f6fc8 Stop building gudev packages
Upstream has moved the gudev code into a separate repository which is
now managed on gnome.org. The gudev packages will be built from
src:libgudev from now on. See also
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html
2015-05-29 09:48:46 +02:00
Martin Pitt
8e9833a6f2 Drop buildsys-Don-t-default-to-gold-as-the-linker.patch
Set LD in debian/rules on sparc only.

This can be dropped entirely once we build GUdev from a separate source.
2015-05-28 07:46:28 +02:00
Martin Pitt
7e6cca78a9 Add libnss-myhostname binary package
Taking over from the very old and unmaintained standalone source package as per
its maintainer's request.

Closes: #760514
2015-05-26 21:16:02 +02:00
Martin Pitt
9f485b1763 Add libnss-mymachines binary package
Closes: #784858
2015-05-26 21:13:01 +02:00
Martin Pitt
4480379901 debian/rules: Remove shipped keyboard-keys-from-name.gperf and regenerate it during build
This is a bug in the 220 tarball, see upstream report/discussion:
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032161.html
2015-05-25 19:50:56 +02:00
Martin Pitt
b57e156f47 debian/rules: Remove shipped audit_type-to-name.h and regenerate it during build.
This is a build failure with the 220 tarball, see upstream report/discussion:
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032148.html
2015-05-25 19:50:56 +02:00
Martin Pitt
8acd8dc8b5 Put back *.agent scripts and use net.agent in Ubuntu
This fixes escaping of unit names, reduces the delta, and will make it easier
to get a common solution for integrating ifup.d/ scripts with networkd.
2015-05-20 23:45:35 +02:00
Martin Pitt
d244639704 Drop Add-env-variable-for-machine-ID-path.patch
systemd should always be installed via the essential "init" in buildd schroots
now. So we should be able to rely on /etc/machine-id being present.
2015-05-12 07:42:39 +02:00
Martin Pitt
a2e44f9623 Revert "Enable libiptc support for networkd masquerading/NAT"
This reverts commit 4c9a3a0a02. This causes a new
dependency to iptables which pulls in ~ 3.5 MB on a minimal system. This should
be reconsidered when splitting networkd out into a new binary package.

Explicitly disable iptc support instead.
2015-02-17 15:48:55 +01:00
Martin Pitt
f420865976 Move systemd-hwdb manpages and units to udev
Follow-up fix for commit 471d9aaa2.
2015-02-17 14:20:34 +01:00
Martin Pitt
4c9a3a0a02 Enable libiptc support for networkd masquerading/NAT 2015-02-17 13:38:17 +01:00
Martin Pitt
d098d57bfb debian/rules: Explicitly disable importd for now, enable hwdb support
importd should still mature a bit. Eventually we might consider putting nspawn,
importd, and similar auxiliary utilities into a new binary package.
2015-02-17 13:24:51 +01:00
Michael Biebl
1849301f3f Stop removing firstboot man pages
They are now installed conditionally.
2015-02-17 12:46:01 +01:00
Michael Biebl
8984d3a4e2 Disable AppArmor support in the udeb build 2015-02-12 14:24:46 +01:00
Michael Biebl
0825d2f596 Explicitly disable the features we don't want to build for those with autodetection
This ensures reliable build results in dirty build environments.
2015-02-12 14:21:04 +01:00
Martin Pitt
435212f689 Drop seddery for getty-static.service
Check for existance of /lib/systemd/system/dbus.service instead of dbus-daemon,
which works on Debian and Ubuntu, and is slightly more correct too.
2015-02-09 17:21:05 +01:00
Martin Pitt
7e91ff76ae Revert "Fix logind startup condition to not hardcode dbus-daemon path"
This reverts commit 3b3c274551. Go back to using
a patch, and check for /lib/systemd/system/dbus.service instead.
2015-02-09 16:51:21 +01:00
Martin Pitt
3b3c274551 Fix logind startup condition to not hardcode dbus-daemon path
In Ubuntu dbus-daemon is in /bin, so use pkg-config to determine the path of
the daemon instead of hardcoding it. Use sed instead of a static patch.
2015-02-09 15:22:33 +01:00
Martin Pitt
6e147c0124 Statically start getty on tty2-6 without logind
Add getty-static.service unit which starts getty@.service on tty 2 to 6 if dbus
is not installed, and hence logind cannot auto-start them on demand.

Closes: #772700
2015-02-09 14:22:56 +01:00
Martin Pitt
2e3f65eb2b Actually install udev's README.Debian when building for Debian
Closes: #776546
2015-01-30 11:28:45 +01:00
Martin Pitt
9d94a8d6f7 debian/rules: Drop obsolete configure options
--disable-multi-seat-x and --with-firmware-path do not exist any more.
2015-01-29 08:35:22 +01:00
Michael Biebl
db9e8155ba Drop the obsolete libsystemd-* libraries
There are no reverse dependencies left.
2015-01-26 15:16:25 +01:00
Michael Biebl
3a46a22c47 Ship bash-completion for udevadm
Closes: #776166
2015-01-26 15:12:12 +01:00
Martin Pitt
787b0e3d70 Generate POT file during package build
This eases translator's work and enables automatic import into Launchpad
translations. It's not totally obvious how to build it as a simple
"make -C build-deb/po systemd.pot" does not work due to upstream commit
6fc00209d5.
2015-01-26 12:58:27 +01:00
Michael Biebl
c7e614efe9 Remove leftover bits from sd-readahead
The readahead functionality was removed in v217. Remove leftover bits
from ca3e157bc2 which was installing the
man pages as example files.
2015-01-24 23:45:50 +01:00
Martin Pitt
93fe4ec754 Enable EFI support
This mostly auto-mounts /sys/firmware/efi/efivars, but also provides a
generator for auto-detecting the root and the /boot/efi partition if they
aren't in /etc/fstab.

Closes: #773533
2015-01-22 14:49:33 +01:00
Martin Pitt
7323d572f0 Don't install the Debian *.agent scripts when building on Ubuntu
They were never supported there. Instead, have Ubuntu's
80-networking.rules directly pull in ifup@.service, which is much easier and
more efficient.
2015-01-22 12:05:51 +01:00
Martin Pitt
3ce70c0b3d Add 40-hyperv-hotadd.rules when building on Ubuntu
Workaround for https://launchpad.net/bugs/1233466.
2015-01-22 12:05:29 +01:00
Martin Pitt
9e1d0901b5 Clean up Debian specific file installation
In debian/rules, remove manual file installation. Move them to
debian/*.install.

Move all Debian specific installed files to debian/extra/.
2015-01-22 09:46:15 +01:00
Martin Pitt
03391465aa debian/rules: Configure with --disable-firstboot
This replaces some manual file removals.
2015-01-22 08:26:43 +01:00
Martin Pitt
14db885715 Drop logger.agent
It hasn't been called from any udev rule for a long time, and looks obsolete.
2015-01-22 08:01:00 +01:00
Martin Pitt
27ff1ed810 Use dh_installinit's --noscript instead of --no-start for the upstart jobs
So that the postinst does not try and call update-rc.d on them; as there are no
corresponding sysvinit scripts, these trigger a lintian warning.
2014-12-28 12:31:13 +01:00
Martin Pitt
64c3c357bf Add debian/extra/systemd-vconsole-setup.service dependency shim
This depends on the console-setup init script, to avoid breaking dependencies
of third-party packages which need this service, until we actually enable
systemd-vconsole.

Install it for Ubuntu only for now, as in Debian plymouth's unit got adjusted.

LP: #1392970
Debian #755194
2014-12-17 11:06:31 +01:00
Martin Pitt
cdd04c8a4c Make test suite failures fatal
Disable tests which fail on buildds, presumably due to too old kernels,
misconfigured /etc/hosts, and similar problems. Make failures of the test suite
fatal now.
2014-12-16 08:22:22 +01:00
Martin Pitt
b1fb605913 Add Apport hooks for udev and systemd when building on Ubuntu 2014-12-14 13:47:32 +01:00
Martin Pitt
f73debca49 Add epoch to gudev packages when building on Ubuntu
Ubuntu packaged the standalone gudev before it got merged into udev.
2014-12-14 13:47:32 +01:00
Martin Pitt
4f13c3718f Don't symlink udev doc directories when building on Ubuntu
This is a permanent Ubuntu change, thus reduce the delta a bit by using
dpkg-vendor.
2014-12-14 13:47:32 +01:00
Martin Pitt
0638d09c40 Configure with --enable-split-usr 2014-12-12 21:36:55 +02:00
Martin Pitt
565eb746c3 Add userspace firmware loader stub
Reinstate a debian/extra/rules/50-firmware.rules which immediately tells the
kernel that userspace firmware loading failed. Otherwise it tries for a minute
to call the userspace helper (if CONFIG_FW_LOADER_USER_HELPER is enabled) in
vain, which causes long delays with devices which have a range of possible
firmware versions. (LP: #1398458)
2014-12-02 18:53:08 +01:00