3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system
Maximilian Bosch 3cd2707e37
osquery: 2.5.2 -> 3.2.2
The package was originally broken as reported in #38940 and
facebook/osquery#4257. The latest version (3.x) contains several
important fixes for GCC 7, so now we can compile without a much less
complicated patches.

The following changes were needed to fix the derivation:

* Upgrade `osquery/third-party` to the latest rev to be compliant with
  osquery 3.

* Keep using an override for the AWS SDK (for a lower closure size and
  less compile time), but make the `ec2` API available.

* Added the dependencies `fpm`, `zstd`, `rdkafka`, `rapidjson` to the
  build. `linenoise-ng` is obsolete as it's directly bundled with
  `osquery/third-party`.

* Fixed the linking issue with `gflags` as recommended in the mailing
  list: https://groups.google.com/d/msg/nix-devel/l1blj-mWxtI/J3CwPATBCAAJ

* Dropped the obsolete dependencies `cpp-netlib`, `lz4`, `apt` and
  `devicemapper` (thanks @Infinisil).

* Override `OSQUERY_PLATFORM` to provide `nixos:version`
  for sandbox and non-NixOS based builds. The `platform-nixos.patch`
  file is now obsolete (thanks @flokli).

The patch was rebased against the 3.x branch of `osquery` and contains
mostly old changes. Additionally several testing targets were skipped as
they broke the build.

The functionality has been testing using the following command:

```
mkdir /tmp/osq.log/
./result/bin/osqueryd --pidfile /tmp/osq.pid \
  --database_path /tmp/test.db --logger_path /tmp/osq.log
```

With the daemon running the database can be queried easily using
`./result/bin/osqueryi`.

Fixes ticket #38940
See ticket #36453

Further reference can be gathered from the affected Hydra logs for
the master branch: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.osquery.x86_64-linux
2018-04-24 07:13:49 +02:00
..
acct
acpica-tools acpica-tools: 20180209 -> 20180313 2018-03-18 17:09:07 +02:00
actkbd
amtterm amtterm: fix build 2017-09-28 17:22:48 +02:00
at at: cross-compilation fixes 2018-01-09 11:23:56 -05:00
augeas augeas: 1.10.0 -> 1.10.1 2018-02-06 06:19:01 -08:00
awstats awstats: add tools directory 2018-02-01 18:18:28 +01:00
bar bar: init at version 1.11.1 2018-03-15 09:41:25 +11:00
bfs bfs: init at 1.2.1 2018-02-11 16:19:02 +01:00
bootchart misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
chase misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
collectd collectd: kafka patch for 18.03 (#36257) 2018-03-03 17:33:48 +00:00
confd
consul-template consul-template: 0.18.1 -> 0.19.4 2018-02-25 17:39:14 -08:00
cron cron: fix for cross ($CC, no 'install -s') 2018-01-24 09:33:35 -06:00
ctop treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
daemonize daemonize: 1.7.7 -> 1.7.8 2018-02-25 18:46:54 -08:00
das_watchdog misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
datefudge datefudge: 1.21 => 1.22 2017-10-27 22:22:33 +02:00
dcfldd
dd_rescue dd_rescue: 1.99.5 -> 1.99.7 2017-11-11 15:31:41 +01:00
ddrescue ddrescue: 1.22 -> 1.23 2018-02-17 22:34:12 +02:00
dfc
di di: 4.44 -> 4.45 2018-04-11 01:13:06 -07:00
dog
efibootmgr efibootmgr: 15 -> 16 2018-04-11 00:45:18 -07:00
efivar efivar: 34 -> 35 2018-04-12 08:22:44 -07:00
envconsul envconsul: 0.6.2 -> 0.7.3 2018-02-25 20:49:59 -08:00
evemu
facter facter: 3.11.0 -> 3.11.1 2018-04-20 06:46:09 -07:00
fakechroot misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
fakeroot fakeroot: 1.20.2 -> 1.22 2018-02-25 21:17:47 -08:00
fcron fcron: 3.2.1 -> 3.3.0 2018-02-25 21:21:55 -08:00
fdisk
fio fio: 3.5 -> 3.6 2018-04-20 06:02:07 -07:00
foreman
foremost Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
freeipmi freeipmi: 1.5.7 -> 1.6.1 2018-02-04 10:41:36 -08:00
gdmap Merge remote-tracking branch 'upstream/staging' into deps-reorg 2017-09-28 12:32:57 -04:00
gotop gotop: init at 1.2.9 2018-04-12 16:17:11 +02:00
gptfdisk gptfdisk: Fix cross-compilation 2018-02-24 08:41:25 -05:00
gt5
hardinfo misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
hardlink treewide: s/pkgs.fedoraproject.org/src.fedoraproject.org/ 2018-02-08 16:38:08 -05:00
hiera-eyaml
honcho
htop htop: 2.1.0 -> 2.2.0 2018-04-10 18:32:27 -04:00
hwinfo hwinfo: 21.50 -> 21.52 2018-02-26 19:01:01 -08:00
idle3tools
illum misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs 2017-09-21 15:49:53 -04:00
ioping
iops
ior
ipmitool ipmitool: mark linux only 2018-04-05 20:05:25 +02:00
ipmiutil ipmiutil: 3.0.8 -> 3.0.9 2018-04-10 21:20:12 -07:00
journalbeat journalbeat: 5.6.0 -> 5.6.8 2018-03-20 18:25:52 +01:00
journalwatch
krakenx krakenx: init at 0.0.1 2018-03-29 12:42:54 +02:00
localtime localtime: remove dependency on go 2018-04-05 23:17:18 +01:00
logcheck
logrotate logrotate: 3.13.0 -> 3.14.0 2018-03-14 20:40:12 -07:00
lr lr: 1.2 -> 1.3 (#38714) 2018-04-11 10:36:45 +02:00
lshw treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
mcron mcron: Fix missing libtool dependency 2018-03-17 21:50:02 -04:00
memtester memtester: fix cross build 2018-03-02 11:04:58 +00:00
minijail minijail: init at android-8.0.0_r34 2017-11-25 00:27:00 -05:00
monit Merge pull request #35248 from telent/cross-monit 2018-04-21 08:56:12 +01:00
mq-cli mq-cli: init at 1.0.0 2018-03-19 14:18:07 +01:00
netdata netdata: 1.7.0 -> 1.9.0 (#33009) 2017-12-26 16:54:06 -05:00
nq nq: 0.2.2 -> 0.3.1 2018-03-17 01:47:30 -07:00
opencl-info
osquery osquery: 2.5.2 -> 3.2.2 2018-04-24 07:13:49 +02:00
pciutils pciutils: enable cross compilation 2018-01-28 18:47:22 -05:00
pcstat pcstat: init at 2017-05-28 (#33643) 2018-03-12 21:51:38 +00:00
plan9port
procodile procodile: init at 1.0.17 2017-11-07 17:04:50 +01:00
proot Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
ps_mem
psensor
r10k
rowhammer-test rowhammer-test: Broken on non-x86 (and Darwin) 2017-12-03 19:51:59 +02:00
rsyslog treewide: libmysql -> mysql.connector-c 2017-12-29 02:18:35 +01:00
runit runit: mark linux only 2018-03-25 15:03:05 +02:00
s-tui treewide: checkMeta fixes for x86_64-linux 2017-12-07 07:50:47 -05:00
s6 update skarnet.org packages 2017-11-13 00:09:32 +01:00
s6-rc s6-rc: mark linux only 2018-04-05 20:06:05 +02:00
safe-rm
safecopy
setserial
sg3_utils sg3_utils: mark linux only 2018-04-05 20:06:06 +02:00
sleuthkit sleuthkit: 4.5.0 -> 4.6.0 2018-02-28 20:55:12 +00:00
smartmontools smartmontools: patch from upstream project 2018-02-13 09:44:56 -06:00
socklog socklog: fixup implicit function declarations 2017-09-13 18:27:15 +02:00
storebrowse
stress
stress-ng Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
suid-chroot Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
supervise supervise: 1.3.0 -> 1.4.0 2018-02-20 19:04:18 +00:00
symlinks symlinks: 1.4 -> 1.4.3 2018-01-08 15:09:20 +01:00
syslog-ng syslog-ng: enable SMTP destination 2018-03-22 19:23:19 -04:00
syslog-ng-incubator syslog-ng-incubator: 0.6.0 -> 0.6.2 2018-02-25 12:48:58 -05:00
systemd-journal2gelf
thermald thermald: 1.6 -> 1.7.1 2018-02-25 22:24:09 +03:00
thinkfan Remove nckx as a maintainer for all packages 2018-01-16 23:00:49 +01:00
tm
tree
ts ts: 0.7.6 -> 1.0 2018-02-28 20:33:53 +00:00
undaemonize
uptimed
vbetool
vboot_reference vboot_reference: 20171023 -> 20180311 2018-03-16 02:31:28 +09:00
which treewide: Do not limit hardenging because gcc 4.9 in bootstrap 2017-09-14 10:27:13 -04:00
wsmancli wsmancli: clean-ups 2017-12-24 10:03:35 +08:00
xe xe: 0.6.1 -> 0.11 2018-03-15 13:19:04 -07:00
yeshup