Skip to content

Commit ec41dda

Browse files
committed
Don't package private library and typelib files separately.
The cinnamon-screensaver package is already arch-specific, and libcscreensaver isn't used outside of this package. - Remove the libcscreensaver0 package. - Move helpers and libcscreensaver to a /usr/libexec private folder. - Clean up some variables, various build details.
1 parent 9ee1a94 commit ec41dda

File tree

14 files changed

+24
-54
lines changed

14 files changed

+24
-54
lines changed

backup-locker/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ backup_locker = executable('cs-backup-locker',
1616
include_directories: inc,
1717
dependencies: [x11, gtk, glib],
1818
link_with: libcscreensaver,
19-
install_dir: libexecdir,
19+
install_rpath: pkglibdir,
20+
install_dir: pkglibdir,
2021
install: true
2122
)
2223

data/meson.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ endif
88
dbus_service = configure_file(
99
output: 'org.cinnamon.ScreenSaver.service',
1010
input: 'org.cinnamon.ScreenSaver.service.in',
11-
# meson 0.49
12-
# configuration: { 'EXPANDED_BINDIR': bindir }
1311
configuration: misc_conf
1412
)
1513

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[D-BUS Service]
22
Name=org.cinnamon.ScreenSaver
3-
Exec=@EXPANDED_BINDIR@/cinnamon-screensaver
3+
Exec=@bindir@/cinnamon-screensaver
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
etc/pam.d/cinnamon-screensaver
22
usr/bin
3-
usr/lib/*/cinnamon-screensaver/cinnamon-screensaver-pam-helper
4-
usr/lib/*/cinnamon-screensaver/cs-backup-locker
53
usr/share/applications
64
usr/share/cinnamon-screensaver/*.css
75
usr/share/cinnamon-screensaver/*.py
86
usr/share/cinnamon-screensaver/*/*.py
97
usr/share/dbus-1
108
usr/share/icons
9+
usr/libexec/cinnamon-screensaver

debian/control

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Depends:
3030
gir1.2-gtk-3.0,
3131
gir1.2-xapp-1.0,
3232
iso-flag-png,
33-
libcscreensaver0 (= ${binary:Version}),
3433
libxdo3,
3534
python3,
3635
python3-gi,
@@ -46,7 +45,8 @@ Recommends: libpam-gnome-keyring
4645
Breaks:
4746
cinnamon-screensaver-pam-helper (<< 3.8),
4847
cinnamon-screensaver-webkit-plugin (<< 3.9),
49-
cinnamon-screensaver-x-plugin (<< 3.9)
48+
cinnamon-screensaver-x-plugin (<< 3.9),
49+
libcscreensaver0 (<< ${source:Version})
5050
Replaces:
5151
cinnamon-screensaver-pam-helper (<< 3.8),
5252
cinnamon-screensaver-webkit-plugin (<< 3.9),
@@ -61,18 +61,6 @@ Priority: extra
6161
Architecture: any
6262
Multi-Arch: same
6363
Pre-Depends: ${misc:Pre-Depends}
64-
Depends: libcscreensaver0 (= ${binary:Version}), ${misc:Depends}
64+
Depends: cinnamon-screensaver (= ${binary:Version}), ${misc:Depends}
6565
Description: Cinnamon Screensaver library - debug symbols
6666
This package contains the symbols files needed to debug the Cinnamon Screensaver library.
67-
68-
Package: libcscreensaver0
69-
Section: libs
70-
Architecture: any
71-
Multi-Arch: same
72-
Pre-Depends: ${misc:Pre-Depends}
73-
Depends: ${misc:Depends}, ${shlibs:Depends}
74-
Description: library and introspection data used by cinnamon-screensaver
75-
cinnamon-screensaver is a screen saver and locker that aims to have simple,
76-
sane and secure defaults, and be well integrated with the Cinnamon desktop.
77-
.
78-
This package contains the library used by the screensaver.

debian/libcscreensaver0.install

Lines changed: 0 additions & 3 deletions
This file was deleted.

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ override_dh_strip:
1111

1212
override_dh_auto_configure:
1313
dh_auto_configure -- \
14-
--libexecdir=lib/$(DEB_HOST_MULTIARCH)/cinnamon-screensaver \
14+
--libexecdir=libexec \
1515
--buildtype=debugoptimized \
1616
-D use-debian-pam=true \
1717

libcscreensaver/meson.build

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,13 @@ endif
140140
libcscreensaver = library(
141141
'cscreensaver',
142142
cscreensaver_sources + gir_sources,
143-
version: '0.0.0',
144143
include_directories: inc,
145144
cpp_args: '-DG_LOG_DOMAIN="CScreensaver"',
146145
dependencies: libcscreensaver_deps,
146+
install_dir: pkglibdir,
147147
install: true
148148
)
149149

150-
pkgconfig.generate(
151-
# TODO meson 0.46 replace libraries, name, version with positional library argument
152-
libraries: libcscreensaver,
153-
name: 'cscreensaver',
154-
version: meson.project_version(),
155-
description: 'Small utility lib used by cinnamon-screensaver v3.1+ to provide a GdkWindow filter (not currently introspectable)',
156-
subdirs: 'cscreensaver',
157-
# these should be their variables, but meson < 0.46 strikes again
158-
requires: ['gobject-2.0', 'gtk+-3.0', 'gdk-3.0']
159-
)
160-
161150
cscreensaver_gir = gnome.generate_gir(
162151
libcscreensaver,
163152
sources: gir_sources,
@@ -166,8 +155,8 @@ cscreensaver_gir = gnome.generate_gir(
166155
identifier_prefix: 'Cs',
167156
symbol_prefix: 'cs_',
168157
includes: 'Gtk-3.0',
158+
install_dir_typelib: typelibdir,
169159
install: true
170-
171160
)
172161

173162
test_passwd = executable(

meson.build

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ bindir = join_paths(prefix, get_option('bindir'))
1414
datadir = join_paths(prefix, get_option('datadir'))
1515
pkgdatadir = join_paths(datadir, meson.project_name())
1616
libexecdir = join_paths(prefix, get_option('libexecdir'))
17+
pkglibdir = join_paths(libexecdir, meson.project_name())
18+
typelibdir = join_paths(pkglibdir, 'girepository-1.0')
19+
1720
libdir = join_paths(prefix, get_option('libdir'))
1821
#needed?
1922
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
@@ -24,10 +27,10 @@ localedir = join_paths(prefix, get_option('localedir'))
2427
# and 0.49 for using them in configure_file
2528
misc_conf = configuration_data()
2629
misc_conf.set('prefix', prefix)
27-
misc_conf.set('EXPANDED_BINDIR', bindir)
30+
misc_conf.set('bindir', bindir)
2831
misc_conf.set('datadir', datadir)
2932
misc_conf.set('pkgdatadir', pkgdatadir)
30-
misc_conf.set('libexecdir', libexecdir)
33+
misc_conf.set('pkglibdir', pkglibdir)
3134
misc_conf.set('libdir', libdir)
3235
misc_conf.set('PACKAGE', meson.project_name())
3336
misc_conf.set('VERSION', meson.project_version())

src/binfile.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
55
exit 1
66
fi
77

8+
export GI_TYPELIB_PATH="@typelibdir@"
9+
export LD_LIBRARY_PATH="@pkglibdir@"
10+
811
exec @install_dir@/@target@ "$@"

0 commit comments

Comments
 (0)