Compare commits

...

No commits in common. 'cs10' and 'c9' have entirely different histories.
cs10 ... c9

@ -1,54 +0,0 @@
From fcd972cbe7c8a3907ba9f091cd082b1090231492 Mon Sep 17 00:00:00 2001
From: Jiri Hnidek <jhnidek@redhat.com>
Date: Thu, 1 Oct 2020 11:47:24 +0200
Subject: [PATCH] Added some instruction for building librhsm.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
README.md | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/README.md b/README.md
index 74a2c45..9f185be 100644
--- a/README.md
+++ b/README.md
@@ -5,3 +5,32 @@ Known limitations:
* Entitlement certificates v1 are not supported
* Multiple products in one product certificate are not supported
+
+Requirements
+------------
+
+Following tools and libraries are required to be able to build librhsm library:
+
+* meson (at least 0.37.0)
+* ninja
+* gcc
+* pkg-config
+* glib-2.0 (at least 2.44)
+* gobject-2.0 (at least 2.44)
+* gio-2.0 (at least 2.44)
+* json-glib-1.0 (at least 1.2)
+* openssl
+
+Installation
+------------
+
+When required tools and libraries are installed, then it is possible to build
+librhsm using following steps:
+
+
+```
+$ mkdir ../librhsm_build
+$ meson ../librhsm_build
+$ cd ../librhsm_build
+$ ninja-build
+```
\ No newline at end of file
--
2.45.1

@ -1,37 +0,0 @@
From 5e0674cf389f14174208641ec411ba7be448d5e3 Mon Sep 17 00:00:00 2001
From: Marek Blaha <mblaha@redhat.com>
Date: Fri, 18 Jun 2021 07:48:16 +0200
Subject: [PATCH] Refactor parse_entitlement_data()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This change is meant to silence alerts from static code analysis. It
also makes the *ent variable freeing slightly more clear.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
rhsm/rhsm-entitlement-certificate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rhsm/rhsm-entitlement-certificate.c b/rhsm/rhsm-entitlement-certificate.c
index 5d37732..aa4dd7e 100644
--- a/rhsm/rhsm-entitlement-certificate.c
+++ b/rhsm/rhsm-entitlement-certificate.c
@@ -140,11 +140,11 @@ parse_entitlement_data (const gchar *data,
}
gsize hlen = strlen (ENTITLEMENT_DATA_HEADER);
- gchar *ent = g_strndup (start + hlen, end - start - hlen);
+ g_autofree gchar *ent = g_strndup (start + hlen, end - start - hlen);
gsize zlen = 0;
guchar *zdata = g_base64_decode_inplace (ent, &zlen);
- g_autoptr(GInputStream) zstream = g_memory_input_stream_new_from_data (zdata, zlen, g_free);
+ g_autoptr(GInputStream) zstream = g_memory_input_stream_new_from_data (zdata, zlen, NULL);
g_autoptr(GZlibDecompressor) decompressor = g_zlib_decompressor_new (G_ZLIB_COMPRESSOR_FORMAT_ZLIB);
g_autoptr(GInputStream) cstream = g_converter_input_stream_new (zstream, G_CONVERTER (decompressor));
g_autoptr(JsonParser) parser = json_parser_new_immutable ();
--
2.45.1

@ -1,9 +1,9 @@
Name: librhsm
Version: 0.0.3
Release: 16%{?dist}
Release: 7%{?dist}.1
Summary: Red Hat Subscription Manager library
License: LGPL-2.1-or-later
License: LGPLv2+
URL: https://github.com/rpm-software-management/librhsm
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
@ -12,9 +12,7 @@ Patch0001: 0001-Replace-bool-option-with-int-to-generate-repo-files.patch
Patch0002: 0002-Generate-repofile-for-any-architecture-if-ALL-is-spe.patch
Patch0003: 0003-Enable-repos-when-generating-a-.repo-file-based-on-e.patch
Patch0004: 0004-Append-ctx_baseurl-prefix-to-gpg_url-RhBug-1708628.patch
Patch0005: 0005-Added-some-instruction-for-building-librhsm.patch
Patch0006: 0006-Refactor-parse_entitlement_data.patch
Patch0007: 0007-Fix-relocating-certificate-paths-to-etc-rhsm-host.patch
Patch0005: 0005-Fix-relocating-certificate-paths-to-etc-rhsm-host.patch
BuildRequires: meson >= 0.37.0
BuildRequires: gcc
@ -55,46 +53,22 @@ Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.0.3-16
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Tue Nov 21 2023 Petr Pisar <ppisar@redhat.com> - 0.0.3-7.1
- Correct a License tag to LGPLv2+ (RHEL-21336)
- Fix relocating certificate paths to /etc/rhsm-host (RHEL-21335)
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.0.3-15
- Bump release for June 2024 mass rebuild
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.3-7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu May 30 2024 Petr Pisar <ppisar@redhat.com> - 0.0.3-14
- Improve a documentation (RHEL-38831)
- Refactor parse_entitlement_data() (RHEL-32365)
- Fix relocating certificate paths to /etc/rhsm-host (RHEL-37866)
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.3-6
- Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.3-5
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Aug 23 2023 Petr Pisar <ppisar@redhat.com> - 0.0.3-11
- Convert a license tag to SPDX
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.0.3-6
- Rebuilt with OpenSSL 3.0.0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Mar 24 2021 Daniel Mach - 0.0.3-4
* Thu Mar 24 2021 Daniel Mach - 0.0.3-4
- Fix License in spec to LGPLv2.1+ (was LGPLv2+)
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-3

Loading…
Cancel
Save