Merge pull request #81858 from matthewbauer/mb-cross-fixes-march-2020

Cross compilation fixes (march 2020)
This commit is contained in:
Matthew Bauer 2020-03-16 18:51:51 -04:00 committed by GitHub
commit 655e29d049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 74 additions and 86 deletions

View File

@ -77,7 +77,7 @@ with lib;
if [ -w "$themedir" ]; then
rm -f "$themedir"/icon-theme.cache
${pkgs.gtk3.out}/bin/gtk-update-icon-cache --ignore-theme-index "$themedir"
${pkgs.buildPackages.gtk3.out}/bin/gtk-update-icon-cache --ignore-theme-index "$themedir"
fi
done
'';

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
sha256 = "1gkqx26pvlw00b3fgx6sh87yyjfzyj51jwxvbf9k117npkrf4b2g";
};
nativeBuildInputs = [ meson ninja pkgconfig makeWrapper ];
nativeBuildInputs = [ meson ninja pkgconfig makeWrapper wayland ];
buildInputs = [
wlroots wayland wayland-protocols pixman libxkbcommon

View File

@ -9,5 +9,5 @@ stdenv.mkDerivation {
sha256 = "0wp08b1gh2chs1xri43wziznyjcplx0clpsrb13wzyscv290ay5a";
};
makeFlags = [ "DESTDIR=$(out)" "prefix=" ];
buildInputs = [ imagemagick ];
nativeBuildInputs = [ imagemagick ];
}

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
pkgconfig intltool itstool wrapGAppsHook docbook_xsl libxslt gobject-introspection
pkgconfig intltool itstool wrapGAppsHook docbook_xsl libxslt libxml2 gobject-introspection
];
buildInputs = [
gtk3 glib libxml2 python3 python3.pkgs.pygobject3

View File

@ -30,6 +30,7 @@
, json-glib
, libdazzle
, libhandy
, buildPackages
}:
stdenv.mkDerivation rec {
@ -56,6 +57,7 @@ stdenv.mkDerivation rec {
pkgconfig
python3
wrapGAppsHook
buildPackages.glib
];
buildInputs = [

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkgconfig meson ninja gettext libxslt libxml2 gobject-introspection
gtk-doc docbook_xsl
gtk-doc docbook_xsl glib
];
buildInputs = [
libX11 bubblewrap xkeyboard_config isocodes wayland

View File

@ -26,8 +26,8 @@ in
mkDerivation {
name = "breeze-plymouth";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ plymouth ] ++ lib.optionals (logoFile != null) [ imagemagick netpbm perl ];
nativeBuildInputs = [ extra-cmake-modules ] ++ lib.optionals (logoFile != null) [ imagemagick netpbm perl ];
buildInputs = [ plymouth ];
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
cmakeFlags = []
++ lib.optional (osName != null) "-DDISTRO_NAME=${osName}"

View File

@ -28,6 +28,7 @@ stdenv.mkDerivation rec {
patch interfaces/cc/aspell.h < ${./clang.patch}
'';
nativeBuildInputs = [ perl ];
buildInputs = [ perl ];
doCheck = true;

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection ];
nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection glib ];
propagatedBuildInputs = [
# Required by atk.pc

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "lib" "dev" "devdoc" ];
nativeBuildInputs = [ meson ninja vala pkgconfig python3 libxslt libxml2 gtk-doc docbook_xsl docbook_xml_dtd_42 ];
nativeBuildInputs = [ meson ninja vala pkgconfig python3 libxslt libxml2 glib gtk-doc docbook_xsl docbook_xml_dtd_42 ];
buildInputs = [ glib bash-completion dbus ];
mesonFlags = [

View File

@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
configureFlags = [ "--with-libgcrypt-prefix=${stdenv.lib.getDev libgcrypt}" ];
nativeBuildInputs = [
pkgconfig
gettext

View File

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
buildInputs = [ glib gobject-introspection ];
nativeBuildInputs = [ pkgconfig python3 meson ninja ];
nativeBuildInputs = [ pkgconfig python3 meson ninja glib ];
meta = with stdenv.lib; {
maintainers = gnome3.maintainers;

View File

@ -37,6 +37,7 @@
, enableGl ? (enableX11 || enableWayland || enableCocoa)
, enableCdparanoia ? (!stdenv.isDarwin)
, cdparanoia
, glib
}:
stdenv.mkDerivation rec {
@ -60,13 +61,15 @@ stdenv.mkDerivation rec {
pkgconfig
python3
gettext
orc
glib
gobject-introspection
# docs
gtk-doc
docbook_xsl
docbook_xml_dtd_43
];
] ++ lib.optional enableWayland wayland;
buildInputs = [
orc

View File

@ -48,6 +48,7 @@ stdenv.mkDerivation rec {
flex
python3
makeWrapper
glib
gobject-introspection
bash-completion
@ -57,7 +58,9 @@ stdenv.mkDerivation rec {
docbook_xml_dtd_43
];
buildInputs = lib.optionals stdenv.isLinux [
buildInputs = [
bash-completion
] ++ lib.optionals stdenv.isLinux [
libcap
libunwind
elfutils

View File

@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
};
propagatedBuildInputs = [ glib ];
nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection ];
nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection glib ];
buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
outputs = [ "out" "dev" ];

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "01cmcrd75b7ns7j2b4p6h7pv68vjhkcl9zbvzzx7pf4vknxir61x";
};
nativeBuildInputs = [ ninja meson pkgconfig vala gobject-introspection libxml2 gtk-doc docbook_xsl docbook_xml_dtd_43 dbus xvfb_run ];
nativeBuildInputs = [ ninja meson pkgconfig vala gobject-introspection libxml2 gtk-doc docbook_xsl docbook_xml_dtd_43 dbus xvfb_run glib ];
buildInputs = [ glib gtk3 ];
mesonFlags = [

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "17pb5375njb1r05xmk0r57a2j986ihglh2n5nqcylbag4rj8mqg7";
};
buildInputs = [ python3 ];
nativeBuildInputs = [ python3 ];
meta = with stdenv.lib; {
description = "Wrapper library for evdev devices";

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
meson ninja pkgconfig gobject-introspection vala
meson ninja pkgconfig gobject-introspection vala libxml2
gtk-doc docbook_xsl docbook_xml_dtd_43
];
buildInputs = [ gnome3.gnome-desktop gtk3 gnome3.glade libxml2 ];

View File

@ -45,12 +45,12 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ pkgconfig meson ninja ]
++ optionals documentationSupport [ doxygen graphviz sphinx-build ]
++ optionals testsSupport [ valgrind ];
++ optionals documentationSupport [ doxygen graphviz sphinx-build ];
buildInputs = [ libevdev mtdev libwacom (python3.withPackages (pkgs: with pkgs; [ evdev ])) ]
++ optionals eventGUISupport [ cairo glib gtk3 ]
++ optionals testsSupport [ check ];
buildInputs = [ libevdev mtdev libwacom ]
++ optionals eventGUISupport [ cairo glib gtk3 ];
checkInputs = [ (python3.withPackages (pkgs: with pkgs; [ evdev ])) check valgrind ];
propagatedBuildInputs = [ udev ];

View File

@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
pkgconfig
python3
valgrind
libxslt
];
buildInputs = [

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ glib ];
nativeBuildInputs = [
pkgconfig gettext libxslt docbook_xsl docbook_xml_dtd_42 libintl
gobject-introspection vala gtk-doc
gobject-introspection vala gtk-doc glib
];
buildInputs = [ libgcrypt ];
# optional: build docs with gtk-doc? (probably needs a flag as well)

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
buildInputs = [ python3 sqlite libpsl brotli ];
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection vala ];
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection vala glib ];
propagatedBuildInputs = [ glib libxml2 ];
mesonFlags = [

View File

@ -23,6 +23,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [
meson ninja
glib # for glib-mkenum
pkgconfig gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
];
buildInputs = [

View File

@ -51,6 +51,7 @@
, xdg-dbus-proxy
, substituteAll
, gnome3
, glib
}:
assert enableGeoLocation -> geoclue2 != null;
@ -78,6 +79,14 @@ stdenv.mkDerivation rec {
./libglvnd-headers.patch
];
preConfigure = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
# Ignore gettext in cmake_prefix_path so that find_program doesn't
# pick up the wrong gettext. TODO: Find a better solution for
# this, maybe make cmake not look up executables in
# CMAKE_PREFIX_PATH.
cmakeFlags+=" -DCMAKE_IGNORE_PATH=${getBin gettext}/bin"
'';
nativeBuildInputs = [
bison
cmake
@ -89,6 +98,8 @@ stdenv.mkDerivation rec {
pkgconfig
python3
ruby
glib # for gdbus-codegen
wayland # for wayland-scanner
];
buildInputs = [

View File

@ -28,41 +28,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# This program does not cross-build fine. So I only cross-build some parts
# I need for the linux perf tool.
# On the awful cross-building:
# http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2005
#
# I wrote this testing for the nanonote.
buildPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
pushd libebl
make
popd
pushd libelf
make
popd
pushd libdwfl
make
popd
pushd libdw
make
popd
'';
installPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
pushd libelf
make install
popd
pushd libdwfl
make install
popd
pushd libdw
make install
popd
cp version.h $out/include
'';
doCheck = false; # fails 3 out of 174 tests
doInstallCheck = false; # fails 70 out of 174 tests

View File

@ -26,35 +26,33 @@ stdenv.mkDerivation rec {
-e "s#plymouththemedir=.*#plymouththemedir=/etc/plymouth/themes#" \
-e "s#plymouthpolicydir=.*#plymouthpolicydir=/etc/plymouth/#" \
configure.ac
configureFlags="
--prefix=$out
--bindir=$out/bin
--sbindir=$out/sbin
--exec-prefix=$out
--libdir=$out/lib
--libexecdir=$out/lib
--sysconfdir=/etc
--with-systemdunitdir=$out/etc/systemd/system
--localstatedir=/var
--with-logo=/etc/plymouth/logo.png
--with-background-color=0x000000
--with-background-start-color-stop=0x000000
--with-background-end-color-stop=0x000000
--with-release-file=/etc/os-release
--without-system-root-install
--without-rhgb-compat-link
--enable-tracing
--enable-systemd-integration
--enable-pango
--enable-gdm-transition
--enable-gtk"
installFlags="
plymouthd_defaultsdir=$out/share/plymouth
plymouthd_confdir=$out/etc/plymouth"
'';
configureFlags = [
"--sysconfdir=/etc"
"--with-systemdunitdir=${placeholder "out"}/etc/systemd/system"
"--localstatedir=/var"
"--with-logo=/etc/plymouth/logo.png"
"--with-background-color=0x000000"
"--with-background-start-color-stop=0x000000"
"--with-background-end-color-stop=0x000000"
"--with-release-file=/etc/os-release"
"--without-system-root-install"
"--without-rhgb-compat-link"
"--enable-tracing"
"--enable-systemd-integration"
"--enable-pango"
"--enable-gdm-transition"
"--enable-gtk"
];
configurePlatforms = [ "host" ];
installFlags = [
"plymouthd_defaultsdir=$(out)/share/plymouth"
"plymouthd_confdir=$(out)/etc/plymouth"
];
meta = with stdenv.lib; {
homepage = http://www.freedesktop.org/wiki/Software/Plymouth;
description = "A graphical boot animation";

View File

@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "08r0f4c3fjkb4zjrb4kkax1zfcgcgic702vb62sjjw5xfhppvzp5";
};
nativeBuildInputs = [ libcap libxslt docbook_xsl ];
nativeBuildInputs = [ libxslt docbook_xsl ];
buildInputs = [ libcap ];
meta = with stdenv.lib; {
description = "Unprivileged sandboxing tool";