Skip to content

Commit daa4057

Browse files
Fantuclefebvre
authored andcommitted
[mozjs-128] fix packaging (#128)
* remove debian/watch* not needed for native package and was of gjs * d/copyright: restore cjs header * fix debian/shlibs.local * autopkgtest: partially fixed and disable installed test part for now * d/rules: restore strict check of symbols * d/gbp.conf: remove major of things as not needed or wrong for this repo * remove gitlab-ci of gjs * other fixes for autopkgtest build * d/control: replace old priority extra that was replaced by optional * debian: restore symbols with right cinnamon versions and readd the new ones * debian: fix version of new symbols
1 parent f43d5b5 commit daa4057

12 files changed

+108
-660
lines changed

.gitlab-ci.yml

-526
This file was deleted.

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Description: Mozilla-based javascript bindings for the Cinnamon platform
5959
Package: libcjs-dbg
6060
Section: debug
6161
Architecture: any
62-
Priority: extra
62+
Priority: optional
6363
Depends:
6464
libcjs0 (= ${binary:Version}),
6565
${misc:Depends},

debian/copyright

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2-
Source: https://download.gnome.org/sources/gjs/
3-
Comment:
4-
This work was packaged for Debian by:
5-
.
6-
Gustavo Noronha Silva <[email protected]> on Mon, 12 Oct 2009 18:38:36 -0300
7-
.
8-
Upstream Author:
9-
.
10-
litl, LLC
11-
Upstream-Name: gjs
2+
Upstream-Name: cjs
3+
Upstream-Contact: Clement Lefebvre <[email protected]>
4+
Source: https://github.com/linuxmint/cjs
125

136
Files: *
147
Copyright:

debian/gbp.conf

-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
[DEFAULT]
2-
pristine-tar = True
3-
debian-branch = debian/latest
4-
upstream-branch = upstream/latest
5-
upstream-vcs-tag = %(version)s
6-
71
[buildpackage]
82
sign-tags = True
93

104
[dch]
115
multimaint-merge = True
12-
13-
[import-orig]
14-
postimport = dch -v%(version)s New upstream release; git add debian/changelog; debcommit
15-
16-
[pq]
17-
patch-numbers = False

debian/libcjs0.symbols

+90-90
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
11
libcjs.so.0 libcjs0 #MINVER#
22
* Build-Depends-Package: libcjs-dev
3-
gjs_bindtextdomain@Base 1.63.90
4-
gjs_cairo_pdf_surface_proto_props@Base 1.70.0
5-
gjs_clear_terminal@Base 1.70.0
6-
gjs_console_clear@Base 1.70.0
7-
gjs_console_is_tty@Base 1.70.0
8-
gjs_context_define_string_array@Base 1.63.90
9-
gjs_context_eval@Base 1.63.90
10-
gjs_context_eval_file@Base 1.63.90
11-
gjs_context_eval_module@Base 1.67.2
12-
gjs_context_eval_module_file@Base 1.67.2
13-
gjs_context_gc@Base 1.63.90
14-
gjs_context_get_all@Base 1.63.90
15-
gjs_context_get_current@Base 1.63.90
16-
gjs_context_get_native_context@Base 1.63.90
17-
gjs_context_get_profiler@Base 1.63.90
18-
gjs_context_get_type@Base 1.63.90
19-
gjs_context_make_current@Base 1.63.90
20-
gjs_context_maybe_gc@Base 1.63.90
21-
gjs_context_new@Base 1.63.90
22-
gjs_context_new_with_search_path@Base 1.63.90
23-
gjs_context_print_stack_stderr@Base 1.63.90
24-
gjs_context_register_module@Base 1.67.2
25-
gjs_context_run_in_realm@Base 1.77.90
26-
gjs_context_set_argv@Base 1.67.2
27-
gjs_context_setup_debugger_console@Base 1.63.90
28-
gjs_coverage_enable@Base 1.65.90
29-
gjs_coverage_get_type@Base 1.70.0
30-
gjs_coverage_new@Base 1.63.90
31-
gjs_coverage_write_statistics@Base 1.63.90
32-
gjs_dbus_implementation_emit_property_changed@Base 1.63.90
33-
gjs_dbus_implementation_emit_signal@Base 1.63.90
34-
gjs_dbus_implementation_get_type@Base 1.63.90
35-
gjs_dbus_implementation_unexport@Base 1.71.1
36-
gjs_dbus_implementation_unexport_from_connection@Base 1.71.1
37-
gjs_dumpstack@Base 1.63.90
38-
gjs_error_quark@Base 1.63.90
39-
gjs_format_int_alternative_output@Base 1.63.90
40-
gjs_g_binding_group_bind_full@Base 1.73.2
41-
gjs_g_object_bind_property_full@Base 1.70.0
42-
gjs_get_js_version@Base 1.63.90
43-
gjs_gobject_class_info@Base 1.70.0
44-
gjs_gobject_interface_info@Base 1.70.0
45-
gjs_gtk_container_child_set_property@Base 1.63.90
46-
gjs_gtk_custom_sorter_new@Base 1.71.1
47-
gjs_gtk_custom_sorter_set_sort_func@Base 1.71.1
48-
gjs_importer_class@Base 1.70.0
49-
gjs_importer_proto_funcs@Base 1.70.0
50-
gjs_js_error_get_type@Base 1.63.90
51-
gjs_js_error_quark@Base 1.63.90
52-
gjs_list_store_insert_sorted@Base 1.70.0
53-
gjs_list_store_sort@Base 1.70.0
54-
gjs_locale_category_get_type@Base 1.63.90
55-
gjs_log_set_writer_default@Base 1.70.0
56-
gjs_log_set_writer_func@Base 1.70.0
57-
gjs_match_info_expand_references@Base 1.81.2
58-
gjs_match_info_fetch@Base 1.81.2
59-
gjs_match_info_fetch_all@Base 1.81.2
60-
gjs_match_info_fetch_named@Base 1.81.2
61-
gjs_match_info_fetch_named_pos@Base 1.81.2
62-
gjs_match_info_fetch_pos@Base 1.81.2
63-
gjs_match_info_free@Base 1.81.2
64-
gjs_match_info_get_match_count@Base 1.81.2
65-
gjs_match_info_get_regex@Base 1.81.2
66-
gjs_match_info_get_string@Base 1.81.2
67-
gjs_match_info_get_type@Base 1.81.2
68-
gjs_match_info_is_partial_match@Base 1.81.2
69-
gjs_match_info_matches@Base 1.81.2
70-
gjs_match_info_next@Base 1.81.2
71-
gjs_match_info_ref@Base 1.81.2
72-
gjs_match_info_unref@Base 1.81.2
73-
gjs_memory_report@Base 1.63.90
74-
gjs_native_promise_module_funcs@Base 1.71.1
75-
gjs_param_class@Base 1.70.0
76-
gjs_param_spec_get_flags@Base 1.63.90
77-
gjs_param_spec_get_owner_type@Base 1.63.90
78-
gjs_param_spec_get_value_type@Base 1.63.90
79-
gjs_profiler_chain_signal@Base 1.63.90
80-
gjs_profiler_get_type@Base 1.63.90
81-
gjs_profiler_set_capture_writer@Base 1.67.2
82-
gjs_profiler_set_fd@Base 1.63.90
83-
gjs_profiler_set_filename@Base 1.63.90
84-
gjs_profiler_start@Base 1.63.90
85-
gjs_profiler_stop@Base 1.63.90
86-
gjs_regex_match@Base 1.81.2
87-
gjs_regex_match_all@Base 1.81.2
88-
gjs_regex_match_all_full@Base 1.81.2
89-
gjs_regex_match_full@Base 1.81.2
90-
gjs_repo_class@Base 1.70.0
91-
gjs_setlocale@Base 1.63.90
92-
gjs_textdomain@Base 1.63.90
3+
gjs_bindtextdomain@Base 2.4.1
4+
gjs_cairo_pdf_surface_proto_props@Base 5.4.0
5+
gjs_clear_terminal@Base 5.4.0
6+
gjs_console_clear@Base 5.4.0
7+
gjs_console_is_tty@Base 5.4.0
8+
gjs_context_define_string_array@Base 2.0.0
9+
gjs_context_eval@Base 2.0.0
10+
gjs_context_eval_file@Base 2.0.0
11+
gjs_context_eval_module@Base 5.4.0
12+
gjs_context_eval_module_file@Base 5.4.0
13+
gjs_context_gc@Base 2.0.0
14+
gjs_context_get_all@Base 2.0.0
15+
gjs_context_get_current@Base 2.4.1
16+
gjs_context_get_native_context@Base 2.0.0
17+
gjs_context_get_profiler@Base 4.0.0
18+
gjs_context_get_type@Base 2.0.0
19+
gjs_context_make_current@Base 2.4.1
20+
gjs_context_maybe_gc@Base 2.0.0
21+
gjs_context_new@Base 2.0.0
22+
gjs_context_new_with_search_path@Base 2.0.0
23+
gjs_context_print_stack_stderr@Base 2.0.0
24+
gjs_context_register_module@Base 5.4.0
25+
gjs_context_run_in_realm@Base 6.0.0
26+
gjs_context_set_argv@Base 5.4.0
27+
gjs_context_setup_debugger_console@Base 4.6.0
28+
gjs_coverage_enable@Base 4.6.0
29+
gjs_coverage_get_type@Base 5.4.0
30+
gjs_coverage_new@Base 2.4.1
31+
gjs_coverage_write_statistics@Base 2.4.1
32+
gjs_dbus_implementation_emit_property_changed@Base 2.0.0
33+
gjs_dbus_implementation_emit_signal@Base 2.0.0
34+
gjs_dbus_implementation_get_type@Base 2.0.0
35+
gjs_dbus_implementation_unexport@Base 5.7.0
36+
gjs_dbus_implementation_unexport_from_connection@Base 5.7.0
37+
gjs_dumpstack@Base 2.0.0
38+
gjs_error_quark@Base 2.0.0
39+
gjs_format_int_alternative_output@Base 2.4.1
40+
gjs_g_binding_group_bind_full@Base 5.7.0
41+
gjs_g_object_bind_property_full@Base 5.4.0
42+
gjs_get_js_version@Base 4.0.0
43+
gjs_gobject_class_info@Base 5.4.0
44+
gjs_gobject_interface_info@Base 5.4.0
45+
gjs_gtk_container_child_set_property@Base 2.4.1
46+
gjs_gtk_custom_sorter_new@Base 5.7.0
47+
gjs_gtk_custom_sorter_set_sort_func@Base 5.7.0
48+
gjs_importer_class@Base 5.4.0
49+
gjs_importer_proto_funcs@Base 5.4.0
50+
gjs_js_error_get_type@Base 4.0.0
51+
gjs_js_error_quark@Base 4.0.0
52+
gjs_list_store_insert_sorted@Base 5.4.0
53+
gjs_list_store_sort@Base 5.4.0
54+
gjs_locale_category_get_type@Base 3.4.4
55+
gjs_log_set_writer_default@Base 5.4.0
56+
gjs_log_set_writer_func@Base 5.4.0
57+
gjs_match_info_expand_references@Base 6.5.0
58+
gjs_match_info_fetch@Base 6.5.0
59+
gjs_match_info_fetch_all@Base 6.5.0
60+
gjs_match_info_fetch_named@Base 6.5.0
61+
gjs_match_info_fetch_named_pos@Base 6.5.0
62+
gjs_match_info_fetch_pos@Base 6.5.0
63+
gjs_match_info_free@Base 6.5.0
64+
gjs_match_info_get_match_count@Base 6.5.0
65+
gjs_match_info_get_regex@Base 6.5.0
66+
gjs_match_info_get_string@Base 6.5.0
67+
gjs_match_info_get_type@Base 6.5.0
68+
gjs_match_info_is_partial_match@Base 6.5.0
69+
gjs_match_info_matches@Base 6.5.0
70+
gjs_match_info_next@Base 6.5.0
71+
gjs_match_info_ref@Base 6.5.0
72+
gjs_match_info_unref@Base 6.5.0
73+
gjs_memory_report@Base 2.0.0
74+
gjs_native_promise_module_funcs@Base 5.7.0
75+
gjs_param_class@Base 5.4.0
76+
gjs_param_spec_get_flags@Base 3.4.4
77+
gjs_param_spec_get_owner_type@Base 3.4.4
78+
gjs_param_spec_get_value_type@Base 3.4.4
79+
gjs_profiler_chain_signal@Base 4.0.0
80+
gjs_profiler_get_type@Base 4.0.0
81+
gjs_profiler_set_capture_writer@Base 5.4.0
82+
gjs_profiler_set_fd@Base 4.6.0
83+
gjs_profiler_set_filename@Base 4.0.0
84+
gjs_profiler_start@Base 4.0.0
85+
gjs_profiler_stop@Base 4.0.0
86+
gjs_regex_match@Base 6.5.0
87+
gjs_regex_match_all@Base 6.5.0
88+
gjs_regex_match_all_full@Base 6.5.0
89+
gjs_regex_match_full@Base 6.5.0
90+
gjs_repo_class@Base 5.4.0
91+
gjs_setlocale@Base 3.4.4
92+
gjs_textdomain@Base 2.4.1

debian/rules

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ built_binaries := $(shell dh_listpackages)
44

55
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
66
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
7+
export DPKG_GENSYMBOLS_CHECK_LEVEL = 2
78

89
include /usr/share/dpkg/default.mk
910

debian/shlibs.local

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
libgjs 0 libgjs0g (= ${binary:Version})
1+
libcjs 0 libcjs0 (= ${binary:Version})

debian/tests/build

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ else
1616
CROSS_COMPILE=
1717
fi
1818

19-
cat <<EOF > gjstest.c
19+
cat <<EOF > cjstest.c
2020
#include <cjs/gjs.h>
2121
2222
int main()
@@ -29,8 +29,8 @@ EOF
2929

3030
# Deliberately word-splitting, that's how pkg-config works:
3131
# shellcheck disable=SC2046
32-
"${CROSS_COMPILE}gcc" -o gjstest gjstest.c $("${CROSS_COMPILE}pkg-config" --cflags --libs gjs-1.0)
32+
"${CROSS_COMPILE}gcc" -o cjstest cjstest.c $("${CROSS_COMPILE}pkg-config" --cflags --libs cjs-1.0)
3333
echo "build: OK"
34-
[ -x gjstest ]
35-
./gjstest
34+
[ -x cjstest ]
35+
./cjstest
3636
echo "run: OK"

debian/tests/control

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Tests: build
22
Restrictions: superficial
33
Depends: build-essential,
4-
libgjs-dev
4+
libcjs-dev
55

6-
Tests: installed-tests
7-
Depends: dbus-daemon,
8-
gjs-tests,
9-
gnome-desktop-testing,
10-
xauth,
11-
xvfb
6+
#Tests: installed-tests
7+
#Depends: dbus-daemon,
8+
# cjs-tests,
9+
# gnome-desktop-testing,
10+
# xauth,
11+
# xvfb

debian/tests/installed-tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export XDG_RUNTIME_DIR=$AUTOPKGTEST_TMP
99
export LC_ALL=C.UTF-8
1010

1111
# dbus outputs activation messages to stderr which fails the test
12-
dbus-run-session -- xvfb-run -a gnome-desktop-testing-runner gjs 2> >(grep -vE '^(Activating|Successfully activated)')>&2
12+
dbus-run-session -- xvfb-run -a gnome-desktop-testing-runner cjs 2> >(grep -vE '^(Activating|Successfully activated)')>&2

debian/watch

-4
This file was deleted.

debian/watch.devel

-4
This file was deleted.

0 commit comments

Comments
 (0)