From 34f3d7ddc26c5666ebc40af4406c9fe12bb42b93b1fead6507a4fe1e82182418 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 21 Oct 2022 08:49:53 +0000 Subject: [PATCH] Extend version linker script OBS-URL: https://build.opensuse.org/package/show/Base:System/readline?expand=0&rev=34 --- readline.changes | 5 ++++ readline.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/readline.changes b/readline.changes index 352a9ce..aef1162 100644 --- a/readline.changes +++ b/readline.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 21 08:36:57 UTC 2022 - Dr. Werner Fink + +- Extend version linker map file to detect usage of new symbols (boo#1204336) + ------------------------------------------------------------------- Thu Oct 6 11:27:00 UTC 2022 - Dr. Werner Fink diff --git a/readline.spec b/readline.spec index b9db501..889dc92 100644 --- a/readline.spec +++ b/readline.spec @@ -134,7 +134,7 @@ cflags () case "$flag" in -Wl,*) if echo 'int main () { return 0; }' | \ - ${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then + ${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi ;; @@ -168,7 +168,68 @@ LARGEFILE="$(getconf LFS_CFLAGS)" rl_print_last_kbd_macro; rl_signal_event_hook; }; + + READLINE_7.0 { + rl_bracketed_paste_begin; + rl_callback_sigcleanup; + rl_clear_visible_line; + rl_pending_signal; + rl_redraw_prompt_last_line; + rl_tty_set_echoing; + rl_vi_unix_word_rubout; + rl_vi_yank_pop; + history_file_version; + history_lines_read_from_file; + history_lines_written_to_file; + history_multiline_entries; + rl_persistent_signal_handlers; + history_file_version; + history_lines_read_from_file; + history_lines_written_to_file; + history_multiline_entries; + rl_persistent_signal_handlers; + } READLINE_6.3; + + READLINE_8.0 { + remove_history_range; + rl_check_signals; + rl_empty_keymap; + rl_function_of_keyseq_len; + rl_next_screen_line; + rl_previous_screen_line; + rl_set_keymap_name; + history_quoting_state; + } READLINE_7.0; + + READLINE_8.1 { + rl_activate_mark; + rl_clear_display; + rl_deactivate_mark; + rl_keep_mark_active; + rl_mark_active_p; + rl_operate_and_get_next; + } READLINE_8.0; + + READLINE_8.2 { + rl_fetch_history; + rl_set_timeout; + rl_timeout_remaining; + rl_trim_arg_from_keyseq; + rl_eof_found; + rl_timeout_event_hook; + } READLINE_8.1; EOF +found=0 +for rl in %{_libdir}/libreadline.so.*.* +do + test READLINE_${rl##/*.so.} = READLINE_%{version} && found=1 +done +if test $found = 0 +then + %{warn:Warning, ABI change likely} + sleep 5 +fi + CFLAGS="%{optflags} $LARGEFILE -D_GNU_SOURCE -D_RPM_OPT_FLAGS -g" LDFLAGS="" cflags -Wuninitialized CFLAGS