|
|
e0f6e2 |
diff -ru libmp3splt-0.9.2.orig/configure.ac libmp3splt-0.9.2/configure.ac
|
|
|
e0f6e2 |
--- libmp3splt-0.9.2.orig/configure.ac 2014-11-09 17:48:11.000000000 +0100
|
|
|
e0f6e2 |
+++ libmp3splt-0.9.2/configure.ac 2021-03-26 14:20:04.371752554 +0100
|
|
|
e0f6e2 |
@@ -42,7 +42,7 @@
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
AC_PREREQ([2.62])
|
|
|
e0f6e2 |
AC_INIT([libmp3splt],[libmp3splt_version],[m@ioalex.net])
|
|
|
e0f6e2 |
-AC_CONFIG_AUX_DIR([libltdl/config])
|
|
|
e0f6e2 |
+LT_INIT
|
|
|
e0f6e2 |
AM_INIT_AUTOMAKE
|
|
|
e0f6e2 |
AC_CONFIG_HEADERS([config.h])
|
|
|
e0f6e2 |
AM_MAINTAINER_MODE([enable])
|
|
|
e0f6e2 |
@@ -78,20 +78,6 @@
|
|
|
e0f6e2 |
AC_DEFINE_UNQUOTED([SPLT_SONAME], "$SONAME", [library SONAME])
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
#################################################################
|
|
|
e0f6e2 |
-# Enable libtool, check for libltdl and define @LIBLTDL@ and @INCLTDL@
|
|
|
e0f6e2 |
-#################################################################
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
-ifdef([LT_CONFIG_LTDL_DIR],
|
|
|
e0f6e2 |
- [ LT_CONFIG_LTDL_DIR([libltdl]) ],
|
|
|
e0f6e2 |
- [])
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
-ifdef([LT_INIT],
|
|
|
e0f6e2 |
- [ LT_INIT([win32-dll]) ],
|
|
|
e0f6e2 |
- [ AC_PROG_LIBTOOL ])
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
-AC_WITH_LTDL
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
-#################################################################
|
|
|
e0f6e2 |
# Check for the type of the host
|
|
|
e0f6e2 |
#################################################################
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
@@ -161,9 +147,6 @@
|
|
|
e0f6e2 |
#check for -lm
|
|
|
e0f6e2 |
AC_CHECK_LIB(m, pow, [ haslm="yes" ] , [ AC_MSG_ERROR([libm not found !]) ] )
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
-#check for -ltld
|
|
|
e0f6e2 |
-AC_CHECK_LIB(ltdl, lt_dlopen, [ hasltdl="yes" ], [ AC_MSG_ERROR([libltdl not found - check libtool installation !]) ] )
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
#################################################################
|
|
|
e0f6e2 |
# helper for windows compilation
|
|
|
e0f6e2 |
#################################################################
|
|
|
e0f6e2 |
diff -ru libmp3splt-0.9.2.orig/src/Makefile.am libmp3splt-0.9.2/src/Makefile.am
|
|
|
e0f6e2 |
--- libmp3splt-0.9.2.orig/src/Makefile.am 2014-03-23 00:57:40.000000000 +0100
|
|
|
e0f6e2 |
+++ libmp3splt-0.9.2/src/Makefile.am 2021-03-26 14:23:40.736094662 +0100
|
|
|
e0f6e2 |
@@ -3,7 +3,7 @@
|
|
|
e0f6e2 |
include_HEADERS = $(top_srcdir)/include/libmp3splt/mp3splt.h \
|
|
|
e0f6e2 |
$(top_srcdir)/include/libmp3splt/version.h
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
-INCLUDES=-DSPLT_PLUGINS_DIR=\"$(libdir)/libmp3splt$(SONAME)\" -DLIBMP3SPLT_VERSION=\"$(VERSION)\" @INCLTDL@
|
|
|
e0f6e2 |
+INCLUDES=-DSPLT_PLUGINS_DIR=\"$(libdir)/libmp3splt$(SONAME)\" -DLIBMP3SPLT_VERSION=\"$(VERSION)\"
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
lib_LTLIBRARIES = libmp3splt.la
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
@@ -30,8 +30,6 @@
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
libmp3splt_la_LIBADD += -lws2_32 -lintl -lshlwapi
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
-else
|
|
|
e0f6e2 |
-libmp3splt_la_LIBADD += @LIBLTDL@
|
|
|
e0f6e2 |
endif
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
libmp3splt_la_SOURCES = \
|
|
|
e0f6e2 |
diff -ru libmp3splt-0.9.2.orig/src/mp3splt.c libmp3splt-0.9.2/src/mp3splt.c
|
|
|
e0f6e2 |
--- libmp3splt-0.9.2.orig/src/mp3splt.c 2014-09-16 23:39:39.000000000 +0200
|
|
|
e0f6e2 |
+++ libmp3splt-0.9.2/src/mp3splt.c 2021-03-26 14:09:23.011836062 +0100
|
|
|
e0f6e2 |
@@ -45,7 +45,7 @@
|
|
|
e0f6e2 |
#include <sys/stat.h>
|
|
|
e0f6e2 |
#include <string.h>
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
-#include <ltdl.h>
|
|
|
e0f6e2 |
+#include <dlfcn.h>
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
#include "splt.h"
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
@@ -119,13 +119,6 @@
|
|
|
e0f6e2 |
int *err = &err;;
|
|
|
e0f6e2 |
if (error != NULL) { err = error; }
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
- if (lt_dlinit() != 0)
|
|
|
e0f6e2 |
- {
|
|
|
e0f6e2 |
- *err = SPLT_ERROR_CANNOT_INIT_LIBLTDL;
|
|
|
e0f6e2 |
- }
|
|
|
e0f6e2 |
- else
|
|
|
e0f6e2 |
- {
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
#ifdef ENABLE_NLS
|
|
|
e0f6e2 |
#ifndef __WIN32__
|
|
|
e0f6e2 |
bindtextdomain(MP3SPLT_LIB_GETTEXT_DOMAIN, LOCALEDIR);
|
|
|
e0f6e2 |
@@ -135,8 +128,7 @@
|
|
|
e0f6e2 |
#endif
|
|
|
e0f6e2 |
#endif
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
- state = splt_t_new_state(state, err);
|
|
|
e0f6e2 |
- }
|
|
|
e0f6e2 |
+ state = splt_t_new_state(state, err);
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
return state;
|
|
|
e0f6e2 |
}
|
|
|
e0f6e2 |
diff -ru libmp3splt-0.9.2.orig/src/plugins.c libmp3splt-0.9.2/src/plugins.c
|
|
|
e0f6e2 |
--- libmp3splt-0.9.2.orig/src/plugins.c 2014-05-28 23:30:15.000000000 +0200
|
|
|
e0f6e2 |
+++ libmp3splt-0.9.2/src/plugins.c 2021-03-26 14:07:59.351838681 +0100
|
|
|
e0f6e2 |
@@ -37,7 +37,7 @@
|
|
|
e0f6e2 |
#include <dirent.h>
|
|
|
e0f6e2 |
#include <errno.h>
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
-#include <ltdl.h>
|
|
|
e0f6e2 |
+#include <dlfcn.h>
|
|
|
e0f6e2 |
#include <stdlib.h>
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
#ifdef __WIN32__
|
|
|
e0f6e2 |
@@ -400,7 +400,7 @@
|
|
|
e0f6e2 |
}
|
|
|
e0f6e2 |
if (pl_data->plugin_handle)
|
|
|
e0f6e2 |
{
|
|
|
e0f6e2 |
- lt_dlclose(pl_data->plugin_handle);
|
|
|
e0f6e2 |
+ dlclose(pl_data->plugin_handle);
|
|
|
e0f6e2 |
pl_data->plugin_handle = NULL;
|
|
|
e0f6e2 |
}
|
|
|
e0f6e2 |
if (pl_data->func)
|
|
|
e0f6e2 |
@@ -477,13 +477,12 @@
|
|
|
e0f6e2 |
splt_d_print_debug(state,"\nTrying to open the plugin _%s_ ...\n",
|
|
|
e0f6e2 |
pl->data[i].plugin_filename);
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
- //ltdl currently does not supports windows unicode path/filename
|
|
|
e0f6e2 |
- pl->data[i].plugin_handle = lt_dlopen(pl->data[i].plugin_filename);
|
|
|
e0f6e2 |
+ pl->data[i].plugin_handle = dlopen(pl->data[i].plugin_filename, RTLD_NOW);
|
|
|
e0f6e2 |
//error
|
|
|
e0f6e2 |
if (! pl->data[i].plugin_handle)
|
|
|
e0f6e2 |
{
|
|
|
e0f6e2 |
splt_d_print_debug(state,"Error loading the plugin _%s_\n", pl->data[i].plugin_filename);
|
|
|
e0f6e2 |
- splt_d_print_debug(state," - error message from libltdl: _%s_\n", lt_dlerror());
|
|
|
e0f6e2 |
+ splt_d_print_debug(state," - error message from dlopen: _%s_\n", dlerror());
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
//keep the index of this failed plugin in order to remove it
|
|
|
e0f6e2 |
//afterwards
|
|
|
e0f6e2 |
@@ -503,7 +502,7 @@
|
|
|
e0f6e2 |
splt_d_print_debug(state," - success !\n");
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_set_plugin_info =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
|
|
|
e0f6e2 |
if (pl->data[i].func->splt_pl_set_plugin_info != NULL)
|
|
|
e0f6e2 |
{
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_set_plugin_info(&pl->data[i].info,&error);
|
|
|
e0f6e2 |
@@ -613,34 +612,34 @@
|
|
|
e0f6e2 |
int err = 0;
|
|
|
e0f6e2 |
for (i = 0;i < pl->number_of_plugins_found;i++)
|
|
|
e0f6e2 |
{
|
|
|
e0f6e2 |
- pl->data[i].plugin_handle = lt_dlopen(pl->data[i].plugin_filename);
|
|
|
e0f6e2 |
+ pl->data[i].plugin_handle = dlopen(pl->data[i].plugin_filename, RTLD_NOW);
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_check_plugin_is_for_file =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_check_plugin_is_for_file");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_check_plugin_is_for_file");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_search_syncerrors =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_search_syncerrors");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_search_syncerrors");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_import_internal_sheets =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_import_internal_sheets");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_import_internal_sheets");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_dewrap =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_dewrap");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_dewrap");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_offset_split =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_offset_split");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_offset_split");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_split =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_split");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_split");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_init =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_init");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_init");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_end =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_end");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_end");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_scan_silence =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_scan_silence");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_scan_silence");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_scan_trim_silence =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_scan_trim_silence");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_scan_trim_silence");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_set_original_tags =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_set_original_tags");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_set_original_tags");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_clear_original_tags =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_clear_original_tags");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_clear_original_tags");
|
|
|
e0f6e2 |
pl->data[i].func->splt_pl_set_plugin_info =
|
|
|
e0f6e2 |
- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
|
|
|
e0f6e2 |
+ dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
|
|
|
e0f6e2 |
if (pl->data[i].func->splt_pl_set_plugin_info != NULL)
|
|
|
e0f6e2 |
{
|
|
|
e0f6e2 |
splt_p_free_plugin_data_info(&pl->data[i]);
|
|
|
e0f6e2 |
diff -ru libmp3splt-0.9.2.orig/src/splt.h libmp3splt-0.9.2/src/splt.h
|
|
|
e0f6e2 |
--- libmp3splt-0.9.2.orig/src/splt.h 2014-05-29 00:04:08.000000000 +0200
|
|
|
e0f6e2 |
+++ libmp3splt-0.9.2/src/splt.h 2021-03-26 14:09:08.619836513 +0100
|
|
|
e0f6e2 |
@@ -34,11 +34,6 @@
|
|
|
e0f6e2 |
#include <stdio.h>
|
|
|
e0f6e2 |
#include <sys/types.h>
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
-//libtool 1.4e is buggy on mingw if we include ltdl.h
|
|
|
e0f6e2 |
-#ifndef __WIN32__
|
|
|
e0f6e2 |
-#include <ltdl.h>
|
|
|
e0f6e2 |
-#endif
|
|
|
e0f6e2 |
-
|
|
|
e0f6e2 |
#include "mp3splt.h"
|
|
|
e0f6e2 |
|
|
|
e0f6e2 |
struct _splt_freedb_one_result {
|