uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948
this can do it nicely.

Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,75 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, autoreconfHook
, dbus
, doxygen
, fontconfig
, gettext
, graphviz
, help2man
, pkg-config
, sqlite
, tinyxml
, cppunit
}:
stdenv.mkDerivation rec {
pname = "presage";
version = "0.9.1";
src = fetchurl {
url = "mirror://sourceforge/presage/presage/${version}/presage-${version}.tar.gz";
sha256 = "0rm3b3zaf6bd7hia0lr1wyvi1rrvxkn7hg05r5r1saj0a3ingmay";
};
patches = [
(fetchpatch {
url = "https://git.alpinelinux.org/aports/plain/community/presage/gcc6.patch";
sha256 = "0243nx1ygggmsly7057vndb4pkjxg9rpay5gyqqrq9jjzjzh63dj";
})
./fixed-cppunit-detection.patch
# fix gcc11 build
(fetchpatch {
name = "presage-0.9.1-gcc11.patch";
url = "https://build.opensuse.org/public/source/openSUSE:Factory/presage/presage-0.9.1-gcc11.patch?rev=3f8b4b19c99276296d6ea595cc6c431f";
sha256 = "sha256-pLrIFXvJHRvv4x9gBIfal4Y68lByDE3XE2NZNiAXe9k=";
})
];
nativeBuildInputs = [
autoreconfHook
doxygen
fontconfig
gettext
graphviz
help2man
pkg-config
];
preBuild = ''
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
'';
buildInputs = [
dbus
sqlite
tinyxml
];
checkInputs = [
cppunit
];
doCheck = true;
checkTarget = "check";
meta = with lib; {
description = "An intelligent predictive text entry system";
homepage = "https://presage.sourceforge.io/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -0,0 +1,46 @@
From 5624aa156c551ab2b81bb86279844397ed690653 Mon Sep 17 00:00:00 2001
From: Matteo Vescovi <matteo.vescovi@yahoo.co.uk>
Date: Sun, 21 Jan 2018 17:17:12 +0000
Subject: [PATCH] Fixed cppunit detection.
---
configure.ac | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index a02e9f1..1538a51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -204,10 +204,16 @@ AM_CONDITIONAL([USE_SQLITE], [test "x$use_sqlite" = "xyes"])
dnl ==================
dnl Checks for CppUnit
dnl ==================
-AM_PATH_CPPUNIT([1.9.6],
- [],
- [AC_MSG_WARN([CppUnit not found. Unit tests will not be built. CppUnit can be obtained from http://cppunit.sourceforge.net.])])
-AM_CONDITIONAL([HAVE_CPPUNIT], [test "$CPPUNIT_LIBS"])
+PKG_CHECK_MODULES([CPPUNIT],
+ [cppunit >= 1.9],
+ [have_cppunit=yes],
+ [AM_PATH_CPPUNIT([1.9],
+ [have_cppunit=yes],
+ [AC_MSG_WARN([CppUnit not found. Unit tests will not be built. CppUnit can be obtained from http://cppunit.sourceforge.net.])])
+ ])
+AC_SUBST([CPPUNIT_CFLAGS])
+AC_SUBST([CPPUNIT_LIBS])
+AM_CONDITIONAL([HAVE_CPPUNIT], [test "x$have_cppunit" = "xyes"])
dnl ============================
@@ -592,7 +598,7 @@ then
else
build_demo_application="no"
fi
-if test "$CPPUNIT_LIBS"
+if test "x$have_cppunit" = "xyes"
then
build_unit_tests="yes"
else
--
2.31.1