Unverified Commit 80da06a5 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

pies: 1.3 -> 1.8, unbreak (#394434)

parents fd934139 e2bd46dd
Loading
Loading
Loading
Loading
+19 −11
Original line number Diff line number Diff line
{
  fetchurl,
  lib,
  stdenv,
  fetchurl,
  libxcrypt,
  versionCheckHook,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "pies";
  version = "1.3";
  version = "1.8";

  src = fetchurl {
    url = "mirror://gnu/pies/${pname}-${version}.tar.bz2";
    sha256 = "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g";
    url = "mirror://gnu/pies/pies-${finalAttrs.version}.tar.bz2";
    hash = "sha256-ZSi00WmC6il4+aSohqFKrKjtp6xFXYE7IIRGVwFmHWw=";
  };

  buildInputs = [ libxcrypt ];

  patches = [ ./stdlib.patch ];

  postPatch = ''
    substituteInPlace configure \
      --replace-fail "gl_cv_func_memchr_works=\"guessing no\"" "gl_cv_func_memchr_works=yes"
  '';

  configureFlags = [ "--sysconfdir=/etc" ];

  hardeningDisable = [ "format" ];

  doCheck = true;

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  meta = {
    description = "Program invocation and execution supervisor";

    longDescription = ''
      The name Pies (pronounced "p-yes") stands for Program Invocation and
      Execution Supervisor.  This utility starts and controls execution of
@@ -45,12 +55,10 @@ stdenv.mkDerivation rec {
      Jabberd or MeTA1 (and it offers much more control over them than the
      native utilities).  Finally, it can replace the inetd utility!
    '';

    license = lib.licenses.gpl3Plus;

    homepage = "https://www.gnu.org/software/pies/";

    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.gnu ++ lib.platforms.linux;
    broken = stdenv.hostPlatform.system == "aarch64-linux";
    maintainers = [ ];
  };
}
})
+24 −0
Original line number Diff line number Diff line
diff --git a/src/pies.c b/src/pies.c
index 9355d50..9fe6109 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -19,6 +19,7 @@
 #include <configmake.h>
 #include "meta1parse.h"
 #include "grecsasrt.h"
+#include <stdlib.h>

 int preprocess_only;		/* Preprocess config, do nothing more */
 int lint_mode;			/* Test configuration syntax and exit */
diff --git a/src/piesctl.c b/src/piesctl.c
index a0ac967..fd6c3e2 100644
--- a/src/piesctl.c
+++ b/src/piesctl.c
@@ -14,6 +14,7 @@
    You should have received a copy of the GNU General Public License
    along with GNU Pies.  If not, see <http://www.gnu.org/licenses/>. */

+#include <stdlib.h>
 #include <config.h>
 #include <sys/types.h>
 #include <sys/socket.h>