Skip to content

Commit ca60f89

Browse files
REF_ARRAY: merge in INI_CONFIG
API is still exposted.
1 parent b03f680 commit ca60f89

11 files changed

Lines changed: 31 additions & 120 deletions

.packit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ packages:
1414
- sed -i "s/@PACKAGE_VERSION@/0/g" contrib/ding-libs.spec
1515
- sed -i "s/@PRERELEASE_VERSION@/99/g" contrib/ding-libs.spec
1616
- sed -i "s/@DHASH_VERSION@/99.0.0/g" contrib/ding-libs.spec
17-
- sed -i "s/@REF_ARRAY_VERSION@/99.0.0/g" contrib/ding-libs.spec
1817
- sed -i "s/@INI_CONFIG_VERSION@/99.0.0/g" contrib/ding-libs.spec
1918
get-current-version:
2019
- bash -c 'grep "\\[VERSION_NUMBER\\]" version.m4 | sed -E "s/.+\\[([0-9].+)\\].+/\\1/"'

Makefile.am

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dist_noinst_DATA = \
1313
COPYING \
1414
COPYING.LESSER \
1515
dhash/libdhash.sym \
16-
refarray/libref_array.sym \
1716
ini/libini_config.sym
1817

1918
##############################################################################
@@ -164,24 +163,12 @@ endif
164163
# refarray
165164
##############################################################################
166165

167-
lib_LTLIBRARIES += libref_array.la
168-
dist_pkgconfig_DATA += refarray/ref_array.pc
169166
dist_include_HEADERS += refarray/ref_array.h
170167

171-
libref_array_la_SOURCES = \
172-
refarray/ref_array.c \
173-
trace/trace.h
174-
libref_array_la_DEPENDENCIES = refarray/libref_array.sym
175-
libref_array_la_LDFLAGS = \
176-
-version-info 3:1:2
177-
if HAVE_LD_VERSION_SCRIPT
178-
libref_array_la_LDFLAGS += -Wl,--version-script=$(top_srcdir)/refarray/libref_array.sym
179-
endif
180-
181168
check_PROGRAMS += ref_array_ut
182169
TESTS += ref_array_ut
183170
ref_array_ut_SOURCES = refarray/ref_array_ut.c
184-
ref_array_ut_LDADD = libref_array.la
171+
ref_array_ut_LDADD = libini_config_internal.la
185172

186173
dist_doc_DATA += refarray/README.ref_array
187174

@@ -221,6 +208,8 @@ libini_config_la_SOURCES = \
221208
path_utils/path_utils.h \
222209
basicobjects/simplebuffer.c \
223210
basicobjects/simplebuffer.h \
211+
refarray/ref_array.c \
212+
refarray/ref_array.h \
224213
collection/collection.c \
225214
collection/collection_tools.c \
226215
collection/collection_cnv.c \
@@ -261,7 +250,6 @@ libini_config_la_SOURCES = \
261250
trace/trace.h
262251
EXTRA_libini_config_la_DEPENDENCIES = ini/libini_config.sym
263252
libini_config_la_LIBADD = \
264-
libref_array.la \
265253
$(LTLIBICONV) \
266254
$(LTLIBINTL)
267255
libini_config_la_LDFLAGS = \
@@ -336,28 +324,23 @@ ini_parse_ut_SOURCES = ini/ini_parse_ut.c
336324
ini_parse_ut_LDADD = libini_config_internal.la
337325

338326
ini_augment_ut_SOURCES = ini/ini_augment_ut.c
339-
ini_augment_ut_LDADD = libini_config_internal.la \
340-
libref_array.la
327+
ini_augment_ut_LDADD = libini_config_internal.la
341328

342329
ini_configmod_ut_SOURCES = ini/ini_configmod_ut.c
343-
ini_configmod_ut_LDADD = libini_config_internal.la \
344-
libref_array.la
330+
ini_configmod_ut_LDADD = libini_config_internal.la
345331

346332
ini_augment_ut_check_SOURCES = ini/ini_augment_ut_check.c
347333
ini_augment_ut_check_CFLAGS = $(AM_CFLAGS) $(CHECK_CFLAGS)
348-
ini_augment_ut_check_LDADD = libini_config_internal.la $(CHECK_LIBS) \
349-
libref_array.la
334+
ini_augment_ut_check_LDADD = libini_config_internal.la $(CHECK_LIBS)
350335

351336
ini_configmod_ut_check_SOURCES = ini/ini_configmod_ut_check.c
352337
ini_configmod_ut_check_CFLAGS = $(AM_CFLAGS) $(CHECK_CFLAGS)
353338
ini_configmod_ut_check_LDADD = libini_config_internal.la \
354-
libref_array.la \
355339
$(CHECK_LIBS)
356340

357341
ini_parse_ut_check_SOURCES = ini/ini_parse_ut_check.c
358342
ini_parse_ut_check_CFLAGS = $(AM_CFLAGS) $(CHECK_CFLAGS)
359343
ini_parse_ut_check_LDADD = libini_config_internal.la \
360-
libref_array.la \
361344
$(CHECK_LIBS)
362345

363346
ini_validators_ut_check_SOURCES = ini/ini_validators_ut_check.c
@@ -366,8 +349,7 @@ ini_validators_ut_check_LDADD = libini_config_internal.la $(CHECK_LIBS)
366349

367350

368351
ini_save_ut_SOURCES = ini/ini_save_ut.c
369-
ini_save_ut_LDADD = libini_config_internal.la \
370-
libref_array.la
352+
ini_save_ut_LDADD = libini_config_internal.la
371353

372354
ini_config-docs:
373355
if HAVE_DOXYGEN

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ AC_SUBST([PRERELEASE_VERSION],
3131
PRERELEASE_VERSION_NUMBER)
3232

3333
AC_SUBST([DHASH_VERSION], DHASH_VERSION_NUMBER)
34-
AC_SUBST([REF_ARRAY_VERSION], REF_ARRAY_VERSION_NUMBER)
3534
AC_SUBST([INI_CONFIG_VERSION], INI_CONFIG_VERSION_NUMBER)
3635

3736
AM_CONDITIONAL([GIT_CHECKOUT], [git log -1 >/dev/null 2>&1])
@@ -81,7 +80,7 @@ AC_CONFIG_FILES([Makefile contrib/ding-libs.spec
8180
path_utils/path_utils.cfg.doxy
8281
dhash/dhash.pc
8382
collection/collection.cfg.doxy
84-
refarray/ref_array.cfg.doxy refarray/ref_array.pc
83+
refarray/ref_array.cfg.doxy
8584
basicobjects/basicobjects.cfg.doxy
8685
ini/ini_config.cfg.doxy ini/ini_config.pc])
8786
AC_OUTPUT

contrib/ding-libs.spec.in

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
99
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
1010

1111
%global dhash_version @DHASH_VERSION@
12-
%global ref_array_version @REF_ARRAY_VERSION@
1312
%global ini_config_version @INI_CONFIG_VERSION@
1413

1514
### Patches ###
@@ -20,8 +19,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2019
Obsoletes: libpath_utils <= 0.2.1
2120
Obsoletes: libcollection <= 0.7.0
2221
Obsoletes: libbasicobjects <= 0.1.1
22+
Obsoletes: libref_array <= 0.1.5
2323
Requires: libdhash = %{dhash_version}-%{release}
24-
Requires: libref_array = %{ref_array_version}-%{release}
2524
Requires: libini_config = %{ini_config_version}-%{release}
2625

2726
### Build Dependencies ###
@@ -36,8 +35,7 @@ BuildRequires: check-devel
3635
BuildRequires: gettext-devel
3736

3837
%description
39-
A meta-package that pulls in libdhash, libini_config,
40-
librefarray.
38+
A meta-package that pulls in libdhash and libini_config.
4139

4240
%package devel
4341
Summary: Development packages for ding-libs
@@ -49,13 +47,13 @@ License: LGPLv3+
4947
Obsoletes: libpath_utils-devel <= 0.2.1
5048
Obsoletes: libcollection-devel <= 0.7.0
5149
Obsoletes: libbasicobjects-devel <= 0.1.1
50+
Obsoletes: libref_array-devel <= 0.1.5
5251
Requires: libdhash-devel = %{dhash_version}-%{release}
53-
Requires: libref_array-devel = %{ref_array_version}-%{release}
5452
Requires: libini_config-devel = %{ini_config_version}-%{release}
5553

5654
%description devel
5755
A meta-package that pulls in development libraries for
58-
libdhash, libini_config, librefarray.
56+
libdhash and libini_config.
5957

6058
##############################################################################
6159
# dhash
@@ -99,47 +97,6 @@ time properties
9997
%doc dhash/README.dhash
10098
%doc dhash/examples/*.c
10199

102-
##############################################################################
103-
# ref_array
104-
##############################################################################
105-
106-
%package -n libref_array
107-
Summary: A refcounted array for C
108-
Group: Development/Libraries
109-
License: LGPLv3+
110-
Version: %{ref_array_version}
111-
112-
%description -n libref_array
113-
A dynamically-growing, reference-counted array
114-
115-
%package -n libref_array-devel
116-
Summary: Development files for libref_array
117-
Group: Development/Libraries
118-
Requires: libref_array = %{ref_array_version}-%{release}
119-
License: LGPLv3+
120-
Version: %{ref_array_version}
121-
122-
%description -n libref_array-devel
123-
A dynamically-growing, reference-counted array
124-
125-
%post -n libref_array -p /sbin/ldconfig
126-
%postun -n libref_array -p /sbin/ldconfig
127-
128-
%files -n libref_array
129-
%defattr(-,root,root,-)
130-
%doc COPYING
131-
%doc COPYING.LESSER
132-
%{_libdir}/libref_array.so.1
133-
%{_libdir}/libref_array.so.1.2.1
134-
135-
%files -n libref_array-devel
136-
%defattr(-,root,root,-)
137-
%{_includedir}/ref_array.h
138-
%{_libdir}/libref_array.so
139-
%{_libdir}/pkgconfig/ref_array.pc
140-
%doc refarray/README.ref_array
141-
%doc refarray/doc/html/
142-
143100
##############################################################################
144101
# ini_config
145102
##############################################################################
@@ -148,7 +105,6 @@ A dynamically-growing, reference-counted array
148105
Summary: INI file parser for C
149106
Group: Development/Libraries
150107
License: LGPLv3+
151-
Requires: libref_array = %{ref_array_version}-%{release}
152108
Version: %{ini_config_version}
153109

154110
%description -n libini_config
@@ -159,7 +115,6 @@ Summary: Development files for libini_config
159115
Group: Development/Libraries
160116
License: LGPLv3+
161117
Requires: libini_config = %{ini_config_version}-%{release}
162-
Requires: libref_array-devel = %{ref_array_version}-%{release}
163118
Version: %{ini_config_version}
164119

165120
%description -n libini_config-devel
@@ -179,9 +134,11 @@ Library to process config files in INI format
179134
%defattr(-,root,root,-)
180135
%{_includedir}/ini_configobj.h
181136
%{_includedir}/ini_configmod.h
137+
%{_includedir}/ref_array.h
182138
%{_libdir}/libini_config.so
183139
%{_libdir}/pkgconfig/ini_config.pc
184140
%doc ini/doc/html/
141+
%doc refarray/README.ref_array
185142

186143

187144
##############################################################################

ini/ini_config.cfg.doxy.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ WARN_LOGFILE =
578578
# directories like "/usr/src/myproject". Separate the files or directories
579579
# with spaces.
580580

581-
INPUT = @srcdir@/ini_configobj.h @srcdir@/ini_configmod.h
581+
INPUT = @srcdir@/ini_configobj.h @srcdir@/ini_configmod.h @srcdir@/../refarray/ref_array.h
582582

583583
# This tag can be used to specify the character encoding of the source files
584584
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

ini/ini_config.pc.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ includedir=@includedir@
66
Name: ini_config
77
Description: Library to process config files in INI format
88
Version: @INI_CONFIG_VERSION@
9-
Requires: ref_array
109
Libs: -L${libdir} -lini_config
1110
Cflags: -I${includedir}
1211
URL: https://github.com/SSSD/ding-libs

ini/libini_config.sym

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,22 @@ global:
9595
ini_config_get_bom;
9696
ini_config_set_bom;
9797

98+
/* ref_array.h */
99+
ref_array_create;
100+
ref_array_getref;
101+
ref_array_destroy;
102+
ref_array_append;
103+
ref_array_get;
104+
ref_array_getlen;
105+
ref_array_len;
106+
ref_array_insert;
107+
ref_array_replace;
108+
ref_array_remove;
109+
ref_array_swap;
110+
ref_array_reset;
111+
ref_array_debug;
112+
ref_array_copy;
113+
98114
local:
99115
*;
100116
};

ini/m4/libref_array.m4

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

refarray/libref_array.sym

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

refarray/ref_array.pc.in

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

0 commit comments

Comments
 (0)