ibus: 1.5.28 -> 1.5.29
https://github.com/ibus/ibus/releases/tag/1.5.29 https://github.com/ibus/ibus/releases/tag/1.5.29-rc1 This release fixes build reproducibility with parallel `make`. Changes: - Adds libdbusmenu-gtk3 dependency, now required for appindicator support - Adds workaround for interaction between `AX_PROG_{CC,CXX}` autoconf macro and unwrapped GCC binaries - Patches generated version number to remove incorrect `-rcX` suffix - Removes upstreamed patches, rebases `build-without-dbus-launch.patch` - Enables Wayland by default to match upstream behavior
This commit is contained in:
parent
b5c956262d
commit
ee063453f4
2 changed files with 33 additions and 36 deletions
|
@ -1,19 +1,24 @@
|
|||
diff --git a/data/dconf/make-dconf-override-db.sh b/data/dconf/make-dconf-override-db.sh
|
||||
index 601c1c3f..fcb7305d 100755
|
||||
index 32cb1530..375baa41 100755
|
||||
--- a/data/dconf/make-dconf-override-db.sh
|
||||
+++ b/data/dconf/make-dconf-override-db.sh
|
||||
@@ -12,10 +12,6 @@ export XDG_CACHE_HOME="$TMPDIR/cache"
|
||||
@@ -12,15 +12,6 @@ export XDG_CACHE_HOME="$TMPDIR/cache"
|
||||
export GSETTINGS_SCHEMA_DIR="$TMPDIR/schemas"
|
||||
mkdir -p $XDG_CONFIG_HOME $XDG_CACHE_HOME $GSETTINGS_SCHEMA_DIR
|
||||
|
||||
-eval `dbus-launch --sh-syntax`
|
||||
-
|
||||
-trap 'rm -rf $TMPDIR; kill $DBUS_SESSION_BUS_PID' ERR
|
||||
-trap cleanup EXIT
|
||||
-
|
||||
-cleanup() {
|
||||
- test $? -eq 0 && exit
|
||||
- rm -rf $TMPDIR; kill $DBUS_SESSION_BUS_PID
|
||||
-}
|
||||
-
|
||||
# in case that schema is not installed on the system
|
||||
glib-compile-schemas --targetdir "$GSETTINGS_SCHEMA_DIR" "$PWD"
|
||||
|
||||
@@ -52,5 +48,3 @@ if [ -d $TMPDIR/cache/gvfs ] ; then
|
||||
@@ -57,5 +48,3 @@ if [ -d $TMPDIR/cache/gvfs ] ; then
|
||||
umount $TMPDIR/cache/gvfs
|
||||
fi
|
||||
rm -rf $TMPDIR
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, substituteAll
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, autoreconfHook
|
||||
, gettext
|
||||
, makeWrapper
|
||||
|
@ -17,6 +17,7 @@
|
|||
, gtk3
|
||||
, gtk4
|
||||
, gtk-doc
|
||||
, libdbusmenu-gtk3
|
||||
, runCommand
|
||||
, isocodes
|
||||
, cldr-annotations
|
||||
|
@ -26,7 +27,7 @@
|
|||
, json-glib
|
||||
, libnotify ? null
|
||||
, enableUI ? true
|
||||
, withWayland ? false
|
||||
, withWayland ? true
|
||||
, libxkbcommon
|
||||
, wayland
|
||||
, buildPackages
|
||||
|
@ -46,23 +47,24 @@ let
|
|||
};
|
||||
# make-dconf-override-db.sh needs to execute dbus-launch in the sandbox,
|
||||
# it will fail to read /etc/dbus-1/session.conf unless we add this flag
|
||||
dbus-launch = runCommand "sandbox-dbus-launch" {
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
makeWrapper ${dbus}/bin/dbus-launch $out/bin/dbus-launch \
|
||||
--add-flags --config-file=${dbus}/share/dbus-1/session.conf
|
||||
dbus-launch = runCommand "sandbox-dbus-launch"
|
||||
{
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
makeWrapper ${dbus}/bin/dbus-launch $out/bin/dbus-launch \
|
||||
--add-flags --config-file=${dbus}/share/dbus-1/session.conf
|
||||
'';
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ibus";
|
||||
version = "1.5.28";
|
||||
version = "1.5.29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ibus";
|
||||
repo = "ibus";
|
||||
rev = version;
|
||||
sha256 = "sha256-zjV+QkhVkrHFs9Vt1FpbvmS4nRHxwKaKU3mQkSgyLaQ=";
|
||||
sha256 = "sha256-d4EUIg0v8rfHdvzG5USc6GLY6QHtQpIJp1PrPaaBxxE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -72,27 +74,17 @@ stdenv.mkDerivation rec {
|
|||
pythonSitePackages = python3.sitePackages;
|
||||
})
|
||||
./build-without-dbus-launch.patch
|
||||
# unicode and emoji input are broken before 1.5.29
|
||||
# https://github.com/NixOS/nixpkgs/issues/226526
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ibus/ibus/commit/7c8abbe89403c2fcb08e3fda42049a97187e53ab.patch";
|
||||
hash = "sha256-59HzAdLq8ahrF7K+tFGLjTodwIiTkJGEkFe8quqIkhU=";
|
||||
})
|
||||
# fix SIGABRT in X11 https://github.com/ibus/ibus/issues/2484
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ibus/ibus/commit/8f706d160631f1ffdbfa16543a38b9d5f91c16ad.patch";
|
||||
hash = "sha256-YzS9TmUWW0OmheDeCeU00kFK2U2QEmKYMSRJAbu14ec=";
|
||||
})
|
||||
# fix missing key releases in Wine https://github.com/ibus/ibus/issues/2480
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ibus/ibus/commit/497f0c74230a65309e22ce5569060ce48310406b.patch";
|
||||
hash = "sha256-PAZcUxmzjChs1/K8hXgOcytyS4LYoNL1dtU6X5Tx8ic=";
|
||||
})
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" "installedTests" ];
|
||||
|
||||
postPatch = ''
|
||||
# Maintainer does not want to create separate tarballs for final release candidate and release versions,
|
||||
# so we need to set `ibus_released` to `1` in `configure.ac`. Otherwise, anyone running `ibus version` gets
|
||||
# a version with an inaccurate `-rcX` suffix.
|
||||
# https://github.com/ibus/ibus/issues/2584
|
||||
substituteInPlace configure.ac --replace "m4_define([ibus_released], [0])" "m4_define([ibus_released], [1])"
|
||||
|
||||
patchShebangs --build data/dconf/make-dconf-override-db.sh
|
||||
cp ${buildPackages.gtk-doc}/share/gtk-doc/data/gtk-doc.make .
|
||||
substituteInPlace bus/services/org.freedesktop.IBus.session.GNOME.service.in --replace "ExecStart=sh" "ExecStart=${runtimeShell}"
|
||||
|
@ -102,6 +94,11 @@ stdenv.mkDerivation rec {
|
|||
preAutoreconf = "touch ChangeLog";
|
||||
|
||||
configureFlags = [
|
||||
# The `AX_PROG_{CC,CXX}_FOR_BUILD` autoconf macros can pick up unwrapped GCC binaries,
|
||||
# so we set `{CC,CXX}_FOR_BUILD` to override that behavior.
|
||||
# https://github.com/NixOS/nixpkgs/issues/21751
|
||||
"CC_FOR_BUILD=${stdenv.cc}/bin/cc"
|
||||
"CXX_FOR_BUILD=${stdenv.cc}/bin/c++"
|
||||
"--disable-memconf"
|
||||
(lib.enableFeature (dconf != null) "dconf")
|
||||
(lib.enableFeature (libnotify != null) "libnotify")
|
||||
|
@ -115,12 +112,6 @@ stdenv.mkDerivation rec {
|
|||
"--with-ucd-dir=${unicode-character-database}/share/unicode"
|
||||
];
|
||||
|
||||
# missing make dependency
|
||||
# https://github.com/NixOS/nixpkgs/pull/218120#issuecomment-1514027173
|
||||
preBuild = ''
|
||||
make -C src ibusenumtypes.h
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"test_execsdir=${placeholder "installedTests"}/libexec/installed-tests/ibus"
|
||||
"test_sourcesdir=${placeholder "installedTests"}/share/installed-tests/ibus"
|
||||
|
@ -154,6 +145,7 @@ stdenv.mkDerivation rec {
|
|||
isocodes
|
||||
json-glib
|
||||
libnotify
|
||||
libdbusmenu-gtk3
|
||||
] ++ lib.optionals withWayland [
|
||||
libxkbcommon
|
||||
wayland
|
||||
|
|
Loading…
Reference in a new issue