Package management service
CentOS Sources
2016-11-03 ae72492940a1f9a626e12358c0b785758044c748
import PackageKit-1.0.7-6.el7
1 files added
1 files deleted
1 files modified
56 ■■■■■ changed files
SOURCES/0001-Make-pk_console_get_prompt-big-endian-safe.patch 27 ●●●●● patch | view | raw | blame | history
SOURCES/CentOS-Vendor-Branding.patch 10 ●●●●● patch | view | raw | blame | history
SPECS/PackageKit.spec 19 ●●●● patch | view | raw | blame | history
SOURCES/0001-Make-pk_console_get_prompt-big-endian-safe.patch
New file
@@ -0,0 +1,27 @@
From 710a9445777793e49160587882860cbb7b43e311 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Mon, 16 May 2016 15:27:35 +0100
Subject: [PATCH] Make pk_console_get_prompt() big endian safe
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1255079
---
 lib/packagekit-glib2/pk-console-shared.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/packagekit-glib2/pk-console-shared.c b/lib/packagekit-glib2/pk-console-shared.c
index 66cb372..d61f3a1 100644
--- a/lib/packagekit-glib2/pk-console-shared.c
+++ b/lib/packagekit-glib2/pk-console-shared.c
@@ -116,7 +116,8 @@ pk_readline_unbuffered (const gchar *prompt)
             g_warning ("Got unexpected EOF.");
             break;
         } else {
-            g_string_append_len (str, (const gchar *) &c, 1);
+            gchar c_safe = (gchar) c;
+            g_string_append_len (str, (const gchar *) &c_safe, 1);
         }
     }
     tcsetattr (fileno (tty), TCSAFLUSH, &ots);
--
2.7.4
SOURCES/CentOS-Vendor-Branding.patch
File was deleted
SPECS/PackageKit.spec
@@ -6,19 +6,22 @@
Summary:   Package management service
Name:      PackageKit
Version:   1.0.7
Release:   5%{?dist}
Release:   6%{?dist}
License:   GPLv2+ and LGPLv2+
URL:       http://www.freedesktop.org/software/PackageKit/
Source0:   http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz
# Fedora-specific: set Vendor.conf up for Fedora.
Patch0:    PackageKit-0.3.8-Fedora-Vendor.conf.patch
# Backported from upstream; record the session UID in the yumdb
Patch1:    0001-yum-Record-the-UID-of-the-session-user-in-the-yumdb.patch
# Backported from upstream; support getting details from local files
Patch2:    0001-yum-Add-support-for-GetDetailsLocal.patch
Patch0:    CentOS-Vendor-Branding.patch
# Backported from upstream; make BE safe
Patch3:    0001-Make-pk_console_get_prompt-big-endian-safe.patch
Requires: %{name}-glib%{?_isa} = %{version}-%{release}
Requires: PackageKit-backend
@@ -187,9 +190,10 @@
%prep
%setup -q
%patch0 -p1 -b .fedora
%patch1 -p1 -b .yumdb
%patch2 -p1 -b .yumdetailslocal
%patch0 -p1
%patch3 -p1 -b .be-safe
NOCONFIGURE=1 ./autogen.sh
@@ -339,12 +343,9 @@
%{_datadir}/gtk-doc/html/PackageKit
%changelog
* Sun Nov 22 2015 Johnny Hughes <johnny@centos.org> -  1.0.7-5.el7.centos
- Modify Vendor Patch
* Thu Nov 19 2015 CentOS Sources <bugs@centos.org> - 1.0.7-5.el7.centos
- remove old branding patch
- Update Vendor patch to reference CentOS
* Mon May 16 2016 Richard Hughes <rhughes@redhat.com> - 1.0.7-6
- Make pk_console_get_prompt() big endian safe to fix PPC64
- Resolves: #1255079
* Tue Jul 28 2015 Richard Hughes <rhughes@redhat.com> - 1.0.7-5
- Add support for GetDetailsLocal