Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 60fe648295f5
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0e55dde2eaab
Choose a head ref
  • 9 commits
  • 6 files changed
  • 4 contributors

Commits on Aug 1, 2018

  1. openmw: update hash missed in update to 0.43.0

    Fixes #39712
    
    (cherry picked from commit a8f3b1a)
    dtzWill authored and samueldr committed Aug 1, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    68d50dd View commit details
  2. lesspipe: add missing dependency on 'file'

    (cherry picked from commit e0d5f64)
    snaar committed Aug 1, 2018
    Copy the full SHA
    3c7c2ab View commit details
  3. lesspipe: add dependency on ncurses; actually pull in deps and put th…

    …em on path
    
    (cherry picked from commit c6bc77d)
    snaar committed Aug 1, 2018

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    ad8c405 View commit details
  4. lesspipe: fix paths via patch and substitution

    (cherry picked from commit 9320780)
    snaar committed Aug 1, 2018
    Copy the full SHA
    ca0e0fd View commit details
  5. gitea: fix undefined variable 'gitea'.

    Commit 42c35de, which is a cherry-pick
    of 28c20a4 uses the variable 'gitea',
    which is not defined in the 18.03 module.
    
    Fix this by: gitea -> pkgs.gitea
    danieldk committed Aug 1, 2018
    Copy the full SHA
    717e9e4 View commit details
  6. Merge pull request #44287 from snaar/fix-lesspipe-dependency-backport

    Fix lesspipe dependency backport to 18.03
    Mic92 authored Aug 1, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    183c956 View commit details
  7. Merge pull request #44293 from danieldk/gitea-fix

    gitea: fix undefined variable 'gitea'.
    Mic92 authored Aug 1, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    71f4eeb View commit details
  8. Merge pull request #44285 from samueldr/backports/pr-19738

    [18.03] openmw: update hash missed in update to 0.43.0
    Mic92 authored Aug 1, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d1a47f3 View commit details
  9. file: patch for CVE-2018-10360 (#43856)

    from Gentoo, based on upstream commit.
    
    (cherry picked from commit 6546d17cfff4fc2a0f867d15f0d431e604b25740)
    It seems not clear if _this_ version was affected by the CVE,
    but the patch seems safe enough, so apply it to be sure.
    dtzWill authored and vcunat committed Aug 1, 2018
    Copy the full SHA
    0e55dde View commit details
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/gitea.nix
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ in
# update command option in authorized_keys
if [ -r ${cfg.stateDir}/.ssh/authorized_keys ]
then
sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${gitea.bin}/bin/gitea,g' ${cfg.stateDir}/.ssh/authorized_keys
sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${pkgs.gitea.bin}/bin/gitea,g' ${cfg.stateDir}/.ssh/authorized_keys
fi
'' + optionalString (usePostgresql && cfg.database.createDatabase) ''
if ! test -e "${cfg.stateDir}/db-created"; then
2 changes: 1 addition & 1 deletion pkgs/games/openmw/default.nix
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
owner = "OpenMW";
repo = "openmw";
rev = name;
sha256 = "0lj8v81hk807dy0wcdhfp0iyn4l5yag53hx1a6xm44gh2dpyil43";
sha256 = "1nybxwp77qswjayf0g9xayp4x1xxq799681rhjlggch127r07ifi";
};

enableParallelBuilding = true;
2 changes: 2 additions & 0 deletions pkgs/tools/misc/file/default.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file;
buildInputs = [ zlib ];

patches = [ ./file-5.33-CVE-2018-10360.patch ];

doCheck = true;


18 changes: 18 additions & 0 deletions pkgs/tools/misc/file/file-5.33-CVE-2018-10360.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Avoid reading past the end of buffer

CVE-2018-10360

https://github.com/file/file/commit/a642587a9c9e2dd7feacdf513c3643ce26ad3c22

--- a/src/readelf.c
+++ b/src/readelf.c
@@ -842,7 +842,8 @@ do_core_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type,

cname = (unsigned char *)
&nbuf[doff + prpsoffsets(i)];
- for (cp = cname; *cp && isprint(*cp); cp++)
+ for (cp = cname; cp < nbuf + size && *cp
+ && isprint(*cp); cp++)
continue;
/*
* Linux apparently appends a space at the end
10 changes: 9 additions & 1 deletion pkgs/tools/misc/lesspipe/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, perl }:
{ stdenv, fetchFromGitHub, substituteAll, perl, file, ncurses }:

stdenv.mkDerivation rec {
name = "lesspipe-${version}";
@@ -14,6 +14,14 @@ stdenv.mkDerivation rec {
sha256 = "0vb7bpap8vy003ha10hc7hxl17y47sgdnrjpihgqxkn8k0bfqbbq";
};

patches = [
(substituteAll {
src = ./fix-paths.patch;
file = "${file}/bin/file";
tput = "${ncurses}/bin/tput";
})
];

meta = with stdenv.lib; {
description = "A preprocessor for less";
longDescription = ''
22 changes: 22 additions & 0 deletions pkgs/tools/misc/lesspipe/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/lesspipe.sh.in
+++ b/lesspipe.sh.in
@@ -48,8 +48,8 @@ if [[ "$LESS_ADVANCED_PREPROCESSOR" = '' ]]; then
fi

filecmd() {
- file -L -s "$@"
- file -L -s -i "$@" 2> /dev/null | sed -n 's/.*charset=/;/p' | tr a-z A-Z
+ @file@ -L -s "$@"
+ @file@ -L -s -i "$@" 2> /dev/null | sed -n 's/.*charset=/;/p' | tr a-z A-Z
}

sep=: # file name separator
@@ -546,7 +546,7 @@ isfinal() {

# color requires -r or -R when calling less
typeset COLOR
- if [[ $(tput colors) -ge 8 && ("$LESS" = *-*r* || "$LESS" = *-*R*) ]]; then
+ if [[ $(@tput@ colors) -ge 8 && ("$LESS" = *-*r* || "$LESS" = *-*R*) ]]; then
COLOR="--color=always"
fi