From 9d31c12fbd455f3442e0489e773765e7453eff96 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 18 May 2023 16:08:17 +0900 Subject: Add another grep bug --- README.md | 2 +- grep.nix | 4 +++- shell.nix | 10 ++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc1de93..42f4d46 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # bux -This repository is a collection of build recipe for reproducing bugs +This repository is a collection of build recipes for reproducing bugs and their patched behaviors. diff --git a/grep.nix b/grep.nix index f29b610..04293d7 100644 --- a/grep.nix +++ b/grep.nix @@ -27,7 +27,9 @@ stdenv.mkDerivation rec { export MKDIR_P="mkdir -p" ''; postInstall = '' - mv $out/bin/grep{,.${version}} + for i in $out/bin/* + do mv $i{,.${version}} + done ''; doCheck = false; diff --git a/shell.nix b/shell.nix index 3dd09ef..d94ae88 100644 --- a/shell.nix +++ b/shell.nix @@ -5,6 +5,10 @@ with import { }; let + grep-2_6 = fetchurl { + url = "mirror://gnu/grep/grep-2.6.tar.xz"; + hash = "sha256-YsNien9DBt1gBAED27fZ8SIOSlTFV9ndDEwy9t1itRE="; + }; grep-2_12 = fetchurl { url = "mirror://gnu/grep/grep-2.12.tar.xz"; hash = "sha256-Tc4KT7g93QEg31HgC1L6dg8u2GddTUwLCuZCumkurWQ="; @@ -19,6 +23,12 @@ let }; in mkShell { packages = [ + (grep "8f08d8e2.parent" grep-2_6 + "c1cb19fe67f4c83f9232087ae03c178905d62b0d" + "sha256-tT3H9pehJ8X6XPf6qyhUvjKspQZXvCd2I4uQQuabOn8=") + (grep "8f08d8e2" grep-2_6 + "8f08d8e282bf3d4917e94135e67ba17d738313ce" + "sha256-xQO/d/nTk/q/7Sq6m+exZX7jwYzqbhcKirw9tqC7+zI=") (grep "55cf7b6a.parent" grep-2_12 "a2e0193455e620f6bad1005500da418d9eba2ae6" "sha256-Q1Xye4qHdWOlZSJ+S+T9Cy/71OLN+WE97Va84BFoV/Q=") -- cgit 1.4.1