about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-02-06 18:49:23 +0100
committerJan Tojnar <jtojnar@gmail.com>2020-02-06 22:32:13 +0100
commitc942013dbc270cdeb3f36c8d36d9b0c29b57c057 (patch)
tree99c8450c8fd258bd3b4aa81b98f50106a3689f28 /pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
parent444538ee973c408072f1f26f0ba8de882a92c127 (diff)
downloadnixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.tar
nixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.tar.gz
nixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.tar.bz2
nixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.tar.lz
nixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.tar.xz
nixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.tar.zst
nixlib-c942013dbc270cdeb3f36c8d36d9b0c29b57c057.zip
fwupd: split daemon again
In 1.3.5, fwupdprivate library was made into a shared fwupdplugin library.
This library is considered semi-private and is used by fwupd daemon and
fwupd plug-ins and now possibly third party plug-ins.

The fwupdplugin library refers to the plug-in directory in fwupd.out
causing a dependency cycle. For that reason we need to move it to out.
Diffstat (limited to 'pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch')
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch b/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
new file mode 100644
index 000000000000..347b6862146d
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
@@ -0,0 +1,37 @@
+diff --git a/libfwupdplugin/meson.build b/libfwupdplugin/meson.build
+index 0abcd45c..51cbc912 100644
+--- a/libfwupdplugin/meson.build
++++ b/libfwupdplugin/meson.build
+@@ -114,7 +114,8 @@
+   ],
+   link_args : vflag,
+   link_depends : fwupdplugin_mapfile,
+-  install : true
++  install : true,
++  install_dir : bindir / '..' / 'lib',
+ )
+ 
+ fwupdplugin_pkgg = import('pkgconfig')
+@@ -167,7 +168,8 @@
+       'GUsb-1.0',
+       fwupd_gir[0],
+     ],
+-    install : true
++    install : true,
++    install_dir_typelib : bindir / '..' / 'lib' / 'girepository-1.0',
+   )
+   gnome.generate_vapi('fwupdplugin',
+     sources : fwupd_gir[0],
+diff --git a/meson.build b/meson.build
+index b1a523d2..00125997 100644
+--- a/meson.build
++++ b/meson.build
+@@ -389,7 +389,7 @@
+ if host_machine.system() == 'windows'
+   plugin_dir = 'fwupd-plugins-3'
+ else
+-  plugin_dir = join_paths(libdir, 'fwupd-plugins-3')
++  plugin_dir = join_paths(bindir, '..', 'lib', 'fwupd-plugins-3')
+ endif
+ conf.set_quoted('FWUPD_PLUGINDIR', plugin_dir)
+ endif