.gear/ell-e2k.patch | 66 ++++++++++++++ .gear/libell.spec | 100 +++++++++++++++++++++ .gear/rules | 4 + .../tags/1450464b9ef911e6d9b31354632cf8f95e150e94 | 6 ++ .../tags/48434d60c646a2f24487a7c5620d8ecfa76263a1 | 6 ++ .../tags/5e2d0f2f5f6ea8f96c5b68cb2511318b6f47d80d | 6 ++ .../tags/61a9c8f70282f3bb325adebaf0f7c5fdfb4bd144 | 6 ++ .../tags/f5f13665b7fef6ba79e9b543c4db593f0ef09ab5 | 6 ++ .../tags/ff17443e060291c508e5c960168dc6d53d0eadb9 | 6 ++ .gear/tags/list | 6 ++ 10 files changed, 212 insertions(+) diff --git a/.gear/ell-e2k.patch b/.gear/ell-e2k.patch new file mode 100644 index 0000000..0a59f80 --- /dev/null +++ b/.gear/ell-e2k.patch @@ -0,0 +1,66 @@ +diff --git a/ell/cert.c b/ell/cert.c +index 141ea1c..2149d4c 100644 +--- a/ell/cert.c ++++ b/ell/cert.c +@@ -446,6 +446,8 @@ static struct l_key *cert_try_link(struct l_cert *cert, struct l_keyring *ring) + return false; \ + } while (0) + ++_auto_func_(l_keyring_free) ++ + LIB_EXPORT bool l_certchain_verify(struct l_certchain *chain, + struct l_queue *ca_certs, + const char **error) +diff --git a/ell/tls.c b/ell/tls.c +index c246f1f..42c73bd 100644 +--- a/ell/tls.c ++++ b/ell/tls.c +@@ -1888,6 +1888,8 @@ decode_error: + "ServerHello decode error"); + } + ++_auto_func_(l_certchain_free) ++ + static void tls_handle_certificate(struct l_tls *tls, + const uint8_t *buf, size_t len) + { +diff --git a/ell/useful.h b/ell/useful.h +index 6de57de..ec8f9f7 100644 +--- a/ell/useful.h ++++ b/ell/useful.h +@@ -52,6 +52,17 @@ static inline unsigned char bit_field(const unsigned char oct, + return (oct >> start) & mask; + } + ++/* workaround for compilers without nested functions support */ ++#ifdef __e2k__ ++#define _auto_func_(func) \ ++ static inline void cleanup_ ## func(void *ptr) \ ++ { func(*(void **) ptr); } \ ++ ++#define _auto_(func) \ ++ __attribute((cleanup(cleanup_ ## func))) ++#else ++#define _auto_func_(func) ++ + #define __AUTODESTRUCT(var, func) \ + void cleanup_ ## var(void *ptr) \ + { func(*(void **) ptr); } \ +@@ -62,3 +73,4 @@ static inline unsigned char bit_field(const unsigned char oct, + + #define _auto_(func) \ + _AUTODESTRUCT(__COUNTER__, func) ++#endif +diff --git a/ell/util.h b/ell/util.h +index bdf6935..0fb632d 100644 +--- a/ell/util.h ++++ b/ell/util.h +@@ -317,7 +317,7 @@ const char *l_util_get_debugfs_path(void); + + /* Warning: evaluates all set elements even after @val has matched one */ + #define L_IN_SET(val, ...) \ +- _L_IN_SET_CMP((val), __auto_type, __v == __elems[__i], ##__VA_ARGS__) ++ _L_IN_SET_CMP((val), typeof(val), __v == __elems[__i], ##__VA_ARGS__) + + #define L_IN_STRSET(val, ...) \ + _L_IN_SET_CMP((val), const char *, __v == __elems[__i] || \ diff --git a/.gear/libell.spec b/.gear/libell.spec new file mode 100644 index 0000000..72b4494 --- /dev/null +++ b/.gear/libell.spec @@ -0,0 +1,100 @@ +%define git %nil + +Name: ell +Version: 0.53 +Release: alt1 +Summary: Embedded Linux library +Group: System/Libraries +License: LGPLv2+ +Url: https://01.org/ell +Source0: https://www.kernel.org/pub/linux/libs/%name/%name-%version.tar +Patch: %name-%version-%release.patch +Patch2000: %name-e2k.patch + +%description +The Embedded Linux* Library (ELL) provides core, low-level functionality for +system daemons. It typically has no dependencies other than the Linux kernel, C +standard library, and libdl (for dynamic linking). While ELL is designed to be +efficient and compact enough for use on embedded Linux platforms, it is not +limited to resource-constrained systems. + +%package -n lib%name +Summary: Embedded Linux library +Group: System/Libraries + +%description -n lib%name +The Embedded Linux* Library (ELL) provides core, low-level functionality for +system daemons. It typically has no dependencies other than the Linux kernel, C +standard library, and libdl (for dynamic linking). While ELL is designed to be +efficient and compact enough for use on embedded Linux platforms, it is not +limited to resource-constrained systems. + +%package -n lib%name-devel +Summary: Embedded Linux library development files +Group: Development/C +Requires: lib%name = %EVR + +%description -n lib%name-devel +Headers for developing against libell. + +%prep +%setup +%ifarch %e2k +%patch2000 -p1 +%endif + +%build +%autoreconf +%configure +%make_build V=1 + +%install +%set_verify_elf_method unresolved=relaxed +%makeinstall + +%files -n lib%name +%_libdir/libell.so.* +%doc AUTHORS README TODO ChangeLog COPYING + +%files -n lib%name-devel +%_includedir/ell +%_libdir/libell.so +%_pkgconfigdir/ell.pc + +%changelog +* Wed Oct 19 2022 L.A. Kostis 0.53-alt1 +- 0.53. + +* Sat Oct 30 2021 L.A. Kostis 0.44-alt1 +- 0.44. + +* Wed Jul 14 2021 Ilya Kurdyukov 0.40-alt2 +- added patch with workarounds for Elbrus compiler + +* Fri Jun 11 2021 L.A. Kostis 0.40-alt1 +- 0.40. + +* Wed Aug 05 2020 L.A. Kostis 0.32-alt1 +- 0.32. + +* Sun Mar 15 2020 L.A. Kostis 0.28-alt1 +- 0.28. + +* Sat Mar 31 2018 L.A. Kostis 0.4-alt1.g1b8e643 +- rebuild for ALTLinux. + +* Wed Feb 07 2018 Fedora Release Engineering - 0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Oct 26 2017 Lubomir Rintel - 0.2-2 +- Renamed to libell to fix a naming conflict +- Addressed review issues (Igor Gnatenko, #1505237): +- Added BR gcc +- Made build verbose +- Moved pkgconfig file to devel subpackage +- Fixed license tag +- Dropped Group tag +- Packaged changelog + +* Sun Oct 22 2017 Lubomir Rintel - 0.2-1 +- Initial packaging diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..4bffca5 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,4 @@ +tar: @version@:. +diff: @version@:. . +spec: .gear/libell.spec +copy?: .gear/*.patch diff --git a/.gear/tags/1450464b9ef911e6d9b31354632cf8f95e150e94 b/.gear/tags/1450464b9ef911e6d9b31354632cf8f95e150e94 new file mode 100644 index 0000000..ca7df43 --- /dev/null +++ b/.gear/tags/1450464b9ef911e6d9b31354632cf8f95e150e94 @@ -0,0 +1,6 @@ +object 01794be4052276ad81fd5d8c02c7bd3f0ffe3050 +type commit +tag 0.32 +tagger Marcel Holtmann 1592218667 +0200 + +Release 0.32 diff --git a/.gear/tags/48434d60c646a2f24487a7c5620d8ecfa76263a1 b/.gear/tags/48434d60c646a2f24487a7c5620d8ecfa76263a1 new file mode 100644 index 0000000..ca90f63 --- /dev/null +++ b/.gear/tags/48434d60c646a2f24487a7c5620d8ecfa76263a1 @@ -0,0 +1,6 @@ +object 64b0bf9191263f38a4155974621f7845aaa6475c +type commit +tag 0.44 +tagger Marcel Holtmann 1631648872 +0200 + +Release 0.44 diff --git a/.gear/tags/5e2d0f2f5f6ea8f96c5b68cb2511318b6f47d80d b/.gear/tags/5e2d0f2f5f6ea8f96c5b68cb2511318b6f47d80d new file mode 100644 index 0000000..02558c8 --- /dev/null +++ b/.gear/tags/5e2d0f2f5f6ea8f96c5b68cb2511318b6f47d80d @@ -0,0 +1,6 @@ +object 408f6a8150c5e5dfc812146f9f8a3f9f149f727a +type commit +tag 0.53 +tagger Marcel Holtmann 1662574823 +0200 + +Release 0.53 diff --git a/.gear/tags/61a9c8f70282f3bb325adebaf0f7c5fdfb4bd144 b/.gear/tags/61a9c8f70282f3bb325adebaf0f7c5fdfb4bd144 new file mode 100644 index 0000000..55c7897 --- /dev/null +++ b/.gear/tags/61a9c8f70282f3bb325adebaf0f7c5fdfb4bd144 @@ -0,0 +1,6 @@ +object 69ac28c7f9f607ea50d4cd2f34d6201d249c4c32 +type commit +tag 0.28 +tagger Marcel Holtmann 1581231227 +0100 + +Release 0.28 diff --git a/.gear/tags/f5f13665b7fef6ba79e9b543c4db593f0ef09ab5 b/.gear/tags/f5f13665b7fef6ba79e9b543c4db593f0ef09ab5 new file mode 100644 index 0000000..ac149cd --- /dev/null +++ b/.gear/tags/f5f13665b7fef6ba79e9b543c4db593f0ef09ab5 @@ -0,0 +1,6 @@ +object 4cb908f7fb7191eb45838dbd95de2460470f75f7 +type commit +tag 0.40 +tagger Marcel Holtmann 1619952901 +0200 + +Release 0.40 diff --git a/.gear/tags/ff17443e060291c508e5c960168dc6d53d0eadb9 b/.gear/tags/ff17443e060291c508e5c960168dc6d53d0eadb9 new file mode 100644 index 0000000..ea65d48 --- /dev/null +++ b/.gear/tags/ff17443e060291c508e5c960168dc6d53d0eadb9 @@ -0,0 +1,6 @@ +object b4aea06fabb2af1af01f861f8f394c75950b6d47 +type commit +tag 0.4 +tagger Marcel Holtmann 1518285508 +0100 + +Release 0.4 diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..06d738c --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1,6 @@ +ff17443e060291c508e5c960168dc6d53d0eadb9 0.4 +61a9c8f70282f3bb325adebaf0f7c5fdfb4bd144 0.28 +1450464b9ef911e6d9b31354632cf8f95e150e94 0.32 +f5f13665b7fef6ba79e9b543c4db593f0ef09ab5 0.40 +48434d60c646a2f24487a7c5620d8ecfa76263a1 0.44 +5e2d0f2f5f6ea8f96c5b68cb2511318b6f47d80d 0.53