Commit Graph
192304 Commits
Author SHA1 Message Date
Ruud van Asseldonk f6e8ee7533 squashfsTools: use updated Darwin patch
This new patch is the patch between 4.4, and commit [1], a pull request
at [2] to upsteam Mac and BSD compatibility. That pull request is
itself a rebase of an older pull request for an earlier version of
squashfs-tools. I squashed all commits between 4.4 and [1], apart from
the BSD-specific ones, and exported the new patch from that. Attached
below is the git diff --ignore-space-change between squashfs-tools 4.4
with the previous patch applied, and with the new patch applied.

[1]: 7d31beec53e6245d3405d6ef2b96e9811ae07044
[2]: https://github.com/plougher/squashfs-tools/pull/69

---

diff --git a/squashfs-tools/info.c b/squashfs-tools/info.c
index 8efefe6..5c2f835 100644
--- a/squashfs-tools/info.c
+++ b/squashfs-tools/info.c
@@ -159,7 +159,7 @@ void *info_thrd(void *arg)
 			case EINTR:
 				continue;
 			default:
-				BAD_ERROR("sigwaitfailed "
+				BAD_ERROR("sigwait failed "
 					"because %s\n", strerror(errno));
 			}
 		}
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index 67d86a5..3607448 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -35,7 +35,10 @@
 #include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef linux
+#ifndef linux
+#include <sys/sysctl.h>
+#else
+#include <sys/sysinfo.h>
 #include <sys/sysmacros.h>
 #endif
 #include <fcntl.h>
@@ -52,7 +55,6 @@
 #include <sys/wait.h>
 #include <limits.h>
 #include <ctype.h>
-#include <sys/sysinfo.h>

 #ifndef FNM_EXTMATCH /* glibc extension */
 	#define FNM_EXTMATCH 0
@@ -5191,7 +5193,17 @@ int parse_mode(char *arg, mode_t *res)

 int get_physical_memory()
 {
+	/*
+	 * Long longs are used here because with PAE, a 32-bit
+	 * machine can have more than 4GB of physical memory
+	 *
+	 * sysconf(_SC_PHYS_PAGES) relies on /proc being mounted.
+	 * If it fails use sysinfo, if that fails return 0
+	 */
+	long long num_pages = sysconf(_SC_PHYS_PAGES);
+	long long page_size = sysconf(_SC_PAGESIZE);
 	int phys_mem;
+
 #ifndef linux
 	#ifdef HW_MEMSIZE
 		#define SYSCTL_PHYSMEM HW_MEMSIZE
@@ -5221,16 +5233,6 @@ int get_physical_memory()
 	}
   #undef SYSCTL_PHYSMEM
 #else
-	/*
-	 * Long longs are used here because with PAE, a 32-bit
-	 * machine can have more than 4GB of physical memory
-	 *
-	 * sysconf(_SC_PHYS_PAGES) relies on /proc being mounted.
-	 * If it fails use sysinfo, if that fails return 0
-	 */
-	long long num_pages = sysconf(_SC_PHYS_PAGES);
-	long long page_size = sysconf(_SC_PAGESIZE);
-
 	if(num_pages == -1 || page_size == -1) {
 		struct sysinfo sys;
 		int res = sysinfo(&sys);
diff --git a/squashfs-tools/mksquashfs.h b/squashfs-tools/mksquashfs.h
index 88d0b5c..1beefef 100644
--- a/squashfs-tools/mksquashfs.h
+++ b/squashfs-tools/mksquashfs.h
@@ -24,7 +24,6 @@
  * mksquashfs.h
  *
  */
-#include <pthread.h>

 struct dir_info {
 	char			*pathname;
diff --git a/squashfs-tools/pseudo.c b/squashfs-tools/pseudo.c
index f8fd529..48e6b27 100644
--- a/squashfs-tools/pseudo.c
+++ b/squashfs-tools/pseudo.c
@@ -30,7 +30,6 @@
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
-#include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
index 00615ce..c1a6183 100644
--- a/squashfs-tools/unsquashfs.c
+++ b/squashfs-tools/unsquashfs.c
@@ -38,7 +38,6 @@
 #include <sys/sysinfo.h>
 #include <sys/sysmacros.h>
 #endif
-
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>
@@ -1085,7 +1084,7 @@ int create_inode(char *pathname, struct inode *i)
 			break;
 		case SQUASHFS_SYMLINK_TYPE:
 		case SQUASHFS_LSYMLINK_TYPE: {
-			struct timespec times[2] = {
+			struct timeval times[2] = {
 				{ i->time, 0 },
 				{ i->time, 0 }
 			};
@@ -1104,8 +1103,7 @@ int create_inode(char *pathname, struct inode *i)
 				goto failed;
 			}

-			res = utimensat(AT_FDCWD, pathname, times,
-					AT_SYMLINK_NOFOLLOW);
+			res = lutimes(pathname, times);
 			if(res == -1) {
 				EXIT_UNSQUASH_STRICT("create_inode: failed to set time on "
 					"%s, because %s\n", pathname,
2019-09-10 21:02:51 +02:00
Ruud van Asseldonk 14d2c3669f squashfsTools: make Darwin patch apply to 4.4
I took the patch, and applied it on top of the previous squashfs-tools
commit that we packaged. It applied cleanly. Then I rebased that on top
of master, and resolved the conflicts. I'm not sure I resolved them
correctly though, I don't have access to Darwin. Somebody needs to
review this.
2019-09-07 19:16:57 +02:00
Ruud van Asseldonk a60ee9a74c squashfsTools: make alignment patch apply to 4.4
I took the patch, and applied it on top of the previous squashfs-tools
commit that we packaged (which required editing one line in the patch,
as it assumed to be applied on top of the reproducibility patches). Then
I rebased that on top of master, resolved one conflict, and I formatted
a new patch for this.
2019-09-07 18:58:31 +02:00
Ruud van Asseldonk 442cf4f783 squashfsTools: 4.4dev_20180612 -> 4.4
A new release has been made upstream. Reproducibility issues were fixed
in that release, so we no longer need those patches. For a full overview
of the changes, see the 4.4-specific readme at [1].

The alignment patch no longer applies cleanly; I disabled it for now,
and I will try to restore it in a follow-up commit.

[1]: https://github.com/plougher/squashfs-tools/blob/52eb4c279cd283ed9802dd1ceb686560b22ffb67/README-4.4
2019-09-07 16:12:07 +02:00
Alyssa Ross d3983caf45 ruby_2_3: remove
This has been EOL since December. We shouldn't still be facilitating
its use.

Fixes https://github.com/NixOS/nixpkgs/pull/67977.
2019-09-07 13:09:17 +00:00
Alyssa Ross 20ed441141 sonic-pi: don't use EOL Ruby
This was added to fix a compiler error in
4bc516aa54, where it was noted that it
still segfaulted after boot. Since it compiles with our default Ruby
now, I have to assume that the problem the override was added to set
has since been resolved. I don't know how to actually test, however.
2019-09-07 13:09:17 +00:00
Alyssa Ross 5262dd23b3 unit: drop withRuby_2_3 option
Ruby 2.3 is EOL.
2019-09-07 13:09:17 +00:00
adisbladis 07fa041140 Merge pull request #68208 from adisbladis/elk-bumps
Bump elasticsearch 6/7 versions
2019-09-07 13:58:49 +01:00
Elis Hirwing 735e3d18fe Merge pull request #68038 from dtzWill/update/php-7.3.9
php73: 7.3.8 -> 7.3.9 (security)
2019-09-07 14:45:49 +02:00
Robin Gloster 7f523f4d7e Merge pull request #68256 from davidtwco/franz-5.3.1
franz: 5.2.0 -> 5.3.1
2019-09-07 14:27:09 +02:00
adisbladis 88a70c9669 nixos/kibana: Filter empty lists
Some options (in particular elasticsearch.ssl.certificateAuthorities)
are not allowed to be empty.
2019-09-07 13:24:24 +01:00
David Wood 5708373288 franz: 5.2.0 -> 5.3.1 2019-09-07 12:51:12 +01:00
adisbladis 723148f92e elastic7: 7.0.1 -> 7.3.1 2019-09-07 12:48:42 +01:00
adisbladis 3ab433df34 elastic6: 6.7.2 -> 6.8.3 2019-09-07 12:43:40 +01:00
Michael Raskin 4149a662a7 petrinizer: fix build by pinning the neccessary library versions 2019-09-07 13:33:50 +03:00
Marek Mahut a2550e2af5 Merge pull request #68243 from mmahut/jormungandr
nixos/jormungandr: adding RUST_BACKTRACE until service is stable
2019-09-07 11:29:51 +02:00
Daniel Bergey 98582c6b52 arduino: 1.8.5 -> 1.8.9 2019-09-07 11:16:50 +02:00
Daniel Bergey 51c0c88674 teensyduino: 1.45 -> 1.47
Needed to support arduino-1.8.9
2019-09-07 11:16:50 +02:00
Marek Mahut 0822314bba Merge pull request #68230 from johanot/morph-1.3.0
morph: 1.2.0 -> 1.3.0
2019-09-07 09:56:16 +02:00
worldofpeace 416f057bc3 Merge pull request #68213 from worldofpeace/ead/fix
nixos/iwd: add tmpfiles rule for ead service
2019-09-07 03:40:06 -04:00
Vladimír Čunát 41ce0c2a53 Merge #67924: firefox: 68.0.2 -> 69.0 2019-09-07 09:36:47 +02:00
adisbladis b3a06f10d1 iso-image-kde: Disable synaptics
It's been deprecated since 17.09 and libinput is a better default
2019-09-07 03:30:45 -04:00
worldofpeace 93e5683353 Merge pull request #68182 from worldofpeace/chrome-gnome-shell
nixos/gnome3: enable chrome-gnome-shelll
2019-09-07 03:13:22 -04:00
Will Dietz c98c1a3e7c Merge pull request #68056 from dtzWill/update/vnstat-2.4
vnstat: 2.3 -> 2.4
2019-09-07 01:54:59 -05:00
Marek Mahut af9c515c8b nixos/jormungandr: adding RUST_BACKTRACE until service is stable 2019-09-07 08:31:28 +02:00
Florian Klink db1f05c763 Merge pull request #66405 from NeQuissimus/virtualbox_6_0_10
virtualbox: 6.0.8 -> 6.0.10
2019-09-06 20:33:35 -07:00
zimbatmandFlorian Klink 406e29ff78 nix-store-gcs-proxy: init at 0.1.0 (#68139)
* nix-store-gcs-proxy: init at 0.1.0

Co-Authored-By: Florian Klink <flokli@flokli.de>
2019-09-06 20:25:45 -07:00
Tim Steinbach 5db81b646a linux: 5.2.11 -> 5.2.13 2019-09-06 19:33:55 -04:00
Tim Steinbach bfdf5e9f2e linux: 4.9.190 -> 4.9.191 2019-09-06 19:33:25 -04:00
Tim Steinbach 0217a90d38 linux: 4.4.190 -> 4.4.191 2019-09-06 19:32:57 -04:00
Tim Steinbach 1e2decf5e6 linux: 4.19.69 -> 4.19.71 2019-09-06 19:32:31 -04:00
Tim Steinbach c299ef8798 linux: 4.14.141 -> 4.14.142 2019-09-06 19:31:43 -04:00
worldofpeace e49049493a Merge pull request #68233 from worldofpeace/plasma5-enable-libinput
nixos/plasma5: enable libinput
2019-09-06 19:23:28 -04:00
worldofpeace 466f5e5346 nixos/plasma5: enable libinput 2019-09-06 19:18:52 -04:00
Michael Weiss 042b63dd2c signal-desktop: 1.27.1 -> 1.27.2 2019-09-07 01:08:00 +02:00
worldofpeace 4e89375846 Merge pull request #67917 from worldofpeace/lightdm-pam-gnome-keyring
nixos/lightdm: fix pam rules
2019-09-06 18:50:07 -04:00
worldofpeace 0c602541a3 nixos/lightdm: fix pam rules
Rules are a translation of what's done in the
GDM module and adjustments based of looking at
Arch Linux's configuration and upstream's.

A side effect of this change is that gnome-keyring
and kwallet modules should work as expected when in-
cluded.

Fixes #64259 #62045
2019-09-06 18:22:22 -04:00
Johan Thomsen a932f966c3 morph: 1.2.0 -> 1.3.0 2019-09-07 00:14:41 +02:00
Milan Pässler 1d6c542b22 gerrit: 2.14.6 -> 3.0.2 2019-09-06 22:01:22 +00:00
Nikolay Korotkiy ed9741d60f alpine: fix links 2019-09-06 21:56:09 +00:00
Jonathan Ringer 4bd7e963b3 pythonPackages.elpy: drop package 2019-09-06 23:44:09 +02:00
pacien 3387a16c2f exim: 4.92.1 -> 4.92.2
security update: CVE-2019-15846
2019-09-06 20:52:21 +00:00
Frederik Rietdijk 076860e034 Merge pull request #68203 from NixOS/staging-next
Staging next
2019-09-06 22:47:23 +02:00
Frederik Rietdijk 66bc7fc1b3 Merge master into staging-next 2019-09-06 22:46:05 +02:00
Linus Heckemann cfe51be04f Merge pull request #68221 from WilliButz/remove-prometheus1
remove prometheus 1
2019-09-06 22:36:38 +02:00
Vladimír Čunát 4179ba049c ghc on aarch64: try to work around #66277 2019-09-06 22:32:40 +02:00
Dylan Simon d42ed9b401 graphviz: use git hash for removed release tag 2019-09-06 21:55:53 +02:00
WilliButz 9118eb3482 nixos/tests: remove prometheus_1 test 2019-09-06 21:55:24 +02:00
WilliButz bb62066225 nixos/prometheus: remove prometheus1 module, rename prometheus2
Prometheus 1 is no longer supported, instead 'services.prometheus'
now configures the Prometheus 2 service.
2019-09-06 21:55:23 +02:00
WilliButz 283d9a0942 prometheus: remove prometheus_1, rename prometheus_2
As prometheus is no longer developed, nixpkgs now only includes
prometheus 2. Having only one version of prometheus, there is no need
for having the version in the attribute name.
2019-09-06 21:55:19 +02:00