Hello community,

here is the log from the commit of package microcode_ctl.1443 for 
openSUSE:12.1:Update checked in at 2013-03-20 12:52:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update/microcode_ctl.1443 (Old)
 and      /work/SRC/openSUSE:12.1:Update/.microcode_ctl.1443.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "microcode_ctl.1443", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2013-02-26 18:15:11.936010755 +0100
+++ 
/work/SRC/openSUSE:12.1:Update/.microcode_ctl.1443.new/microcode_ctl.changes    
    2013-03-20 12:52:05.000000000 +0100
@@ -0,0 +1,303 @@
+-------------------------------------------------------------------
+Wed Mar 13 17:54:49 UTC 2013 - crrodrig...@opensuse.org
+- bnc#809348
+- Update intel microcode to 20130222
+- Update amd microcode to 2012-09-10
+- Changelog not available (confidential)
+
+-------------------------------------------------------------------
+Tue Oct 11 15:14:21 UTC 2011 - crrodrig...@opensuse.org
+
+- Update microcode to 20110915, Intel does not disclose 
+  what this fixes.
+
+-------------------------------------------------------------------
+Sun Jun 26 20:46:37 UTC 2011 - a...@suse.de
+
+- Update microcode to 20110428, Intel does not disclose
+  what this fixes.
+
+-------------------------------------------------------------------
+Sun May 22 02:07:20 UTC 2011 - crrodrig...@opensuse.org
+
+- Open all FD with O_CLOEXEC 
+
+-------------------------------------------------------------------
+Tue May 10 02:04:01 UTC 2011 - crrodrig...@opensuse.org
+
+- microcode.init, do not load microcode on Virtual Machines
+  ugly error messages shown in syslog otherwise.
+
+-------------------------------------------------------------------
+Tue Jan 18 14:17:54 UTC 2011 - tr...@novell.com
+
+- Revive microcode.ctl service as 2.6.37 does not throw cpu add
+  uevents. This is a workaround for 11.4 and will get reverted
+  as soon as we go for 2.6.38 where cpu driver autoloading patches
+  are included.
+- Service will be forced to be enabled on all Intel and all
+  AMD new than fam 10h.
+- Add AMD microcode patch and logic to get it loaded
+
+-------------------------------------------------------------------
+Sun Dec 19 03:34:19 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- Update microcode to 20101123, Intel does not disclose
+  what this fixes. 
+
+-------------------------------------------------------------------
+Tue Sep 21 15:25:49 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- Update Intel microcode to version 20100914, vendor
+  does not provide information regarding what it fixes. 
+
+-------------------------------------------------------------------
+Mon May 31 19:25:24 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- udev rules back into /lib/udev ,as suggested by Kay 
+
+-------------------------------------------------------------------
+Mon May 31 16:00:04 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- udev rules must live in %{_sysconfdir} otherwise it wont work.
+
+-------------------------------------------------------------------
+Sat May 29 19:54:49 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- merge both Fedora and Debian improvements, most notably:
+  * microcode.dat is now considered firmware, and installed in /lib/firmware
+  * package no longer includes an init script microcode is loaded
+    using udev rules. 
+
+-------------------------------------------------------------------
+Mon May 17 18:08:23 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- the microcode.dat file is a %config file 
+
+-------------------------------------------------------------------
+Fri Feb 12 13:38:10 UTC 2010 - tr...@novell.com
+
+- Updated microcode file to: 20100209
+
+-------------------------------------------------------------------
+Tue Feb  2 14:40:48 CET 2010 - r...@suse.de
+
+- Updated microcode file to: 20090927
+  Fate#306807 (again) 
+
+-------------------------------------------------------------------
+Wed Sep  2 17:12:33 CEST 2009 - p...@suse.de
+
+- Updated microcode file to: 20090330
+  Fate: 306807
+
+-------------------------------------------------------------------
+Wed Oct 15 09:51:57 CEST 2008 - bwa...@suse.de
+
+- Fix syntax error in microcode.init (bnc#435518).
+- Add rpmlintrc.
+- Fix %install-no-mkdir-buildroot warning of rpmlint.
+
+-------------------------------------------------------------------
+Wed Sep 17 18:51:17 CEST 2008 - tr...@suse.de
+
+- Updated microcode file to: 20080910
+  Fate: 303949
+
+-------------------------------------------------------------------
+Wed Aug 13 09:22:16 CEST 2008 - bwa...@suse.de
+
+- exit with "skipped" status when the microcode module does not
+  exist for a given kernel like the (old) VMI flavour (bnc#415117)
+
+-------------------------------------------------------------------
+Thu Jul 24 00:17:55 CEST 2008 - bwa...@suse.de
+
+- remove dependency on kernel since that's no real functional
+  dependency
+
+-------------------------------------------------------------------
+Mon May  5 17:20:50 CEST 2008 - bwa...@suse.de
+
+- return '4' for status, which is not implemented (bnc#383794)
+
+-------------------------------------------------------------------
+Sun Apr  6 17:27:51 CEST 2008 - bwa...@suse.de
+
+- update microcode version to 20080401 (bnc#374261)
+
+-------------------------------------------------------------------
+Thu Feb 21 10:18:58 CET 2008 - bwa...@suse.de
+
+- update microcode version to 20080220 (bnc#363537)
+
+-------------------------------------------------------------------
+Tue Feb  5 10:37:48 CET 2008 - bwa...@suse.de
+
+- update microcode version to 20080131 (fate#302618)
+
+-------------------------------------------------------------------
+Fri Jan 11 10:02:23 CET 2008 - bwa...@suse.de
+
+- update microcode version to 20080108 (#302618)
+
+-------------------------------------------------------------------
+Tue Oct  9 12:49:06 CEST 2007 - bwa...@suse.de
+
+- updated microcode version to 20070907 (#302618)
+
+-------------------------------------------------------------------
+Thu Aug 16 08:38:30 CEST 2007 - bwa...@suse.de
+
+- udpate microcode version to 20070815 (#302336)
+
+-------------------------------------------------------------------
+Thu Jul 12 20:14:05 CEST 2007 - bwa...@suse.de
+
+- Don't unload the microcode driver to re-load the microcode on
+  resume (#290586)
+
+-------------------------------------------------------------------
+Wed Jun 20 17:47:08 CEST 2007 - bwa...@suse.de
+
+- fix script name in fillup_and_insserv macro
+
+-------------------------------------------------------------------
+Tue Jun 19 23:38:07 CEST 2007 - bwa...@suse.de
+
+- make init script name LSB conformant
+- move microcode_ctl binary to /sbin, removing the need of a
+  remove file system dependency for the init script
+- added missing 'Short-Descripton' tag in the init script
+- add a 'reload' section to the init script
+
+-------------------------------------------------------------------
+Thu Apr 26 20:57:05 CEST 2007 - bwa...@suse.de
+
+- updgraded to latest microcode from Intel (1.17)
+
+-------------------------------------------------------------------
+Thu Jan 25 22:48:43 CET 2007 - bwa...@suse.de
+
+- upgraded to latest microcode from intel (1.16)
+
+-------------------------------------------------------------------
+Thu Jan 25 13:29:43 CET 2007 - bwa...@suse.de
+
+- only start the service if we have a Intel CPU
+
+-------------------------------------------------------------------
+Wed Nov 15 10:29:20 CET 2006 - bwa...@suse.de
+
+- microcode_ctl-1.15: Latest microcode from Intel
+  (19th September 2006)
+- updated RPM dependencies because a kernel patch is required
+  in the microcode code of the kernel so that this new
+  update works
+
++++ 106 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:12.1:Update/.microcode_ctl.1443.new/microcode_ctl.changes

New:
----
  amd-ucode-2012-09-10.tar.bz2
  microcode-20130222.tgz
  microcode-ctl-cloexec.patch
  microcode.ctl_1.17-13.diff.gz
  microcode.init
  microcode_ctl-1.17-suse_rh_paths.patch
  microcode_ctl-1.17.tar.bz2
  microcode_ctl.changes
  microcode_ctl.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ microcode_ctl.spec ++++++
#
# spec file for package microcode_ctl
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           microcode_ctl
%define intel_version 20130222
%define amd_version 2012-09-10
ExclusiveArch:  %ix86 x86_64
Url:            http://www.urbanmyth.org/microcode/
Summary:        Microcode Updates for Intel CPUs
License:        GPL-2.0+ and "the microcode itself has this license: ..."
Group:          Hardware/Other
Version:        1.17
Release:        0
Source0:        microcode_ctl-%{version}.tar.bz2
Source1:        microcode.init
Source2:        microcode-%{intel_version}.tgz
Source3:        amd-ucode-%{amd_version}.tar.bz2
Patch0:         microcode.ctl_1.17-13.diff.gz
Patch1:         microcode_ctl-1.17-suse_rh_paths.patch
Patch2:         microcode-ctl-cloexec.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  %insserv_prereq

%description
This utility allows updating the microcode of Intel and AMD x86 and x86-64
CPUs.

%prep
%setup -q -a 2 -a 3
%patch0 -p1
%patch1
%patch2

%build
make CFLAGS="$RPM_OPT_FLAGS -I."

%install
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
install -m 0755 %SOURCE1 ${RPM_BUILD_ROOT}/etc/init.d/microcode.ctl
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
ln -s /etc/init.d/microcode.ctl ${RPM_BUILD_ROOT}/usr/sbin/rcmicrocode.ctl

%makeinstall
install -D -m 0644 microcode.dat %{buildroot}/lib/firmware/microcode.dat

# AMD
install -D -m 0644 amd-ucode-%{amd_version}/microcode_amd.bin 
$RPM_BUILD_ROOT/lib/firmware/amd-ucode/microcode_amd.bin
install -D -m 0644 amd-ucode-%{amd_version}/README 
$RPM_BUILD_ROOT/%{_defaultdocdir}/microcode_ctl/amd/README
install -D -m 0644 amd-ucode-%{amd_version}/LICENSE 
$RPM_BUILD_ROOT/%{_defaultdocdir}/microcode_ctl/amd/LICENSE
install -D -m 0644 amd-ucode-%{amd_version}/INSTALL 
$RPM_BUILD_ROOT/%{_defaultdocdir}/microcode_ctl/amd/INSTALL

%post
# Install service on affected Intel/AMD machines by default
# Remove this after openSUSE 11.4 when the kernel can autoload microcode.ko

if grep Intel /proc/cpuinfo > /dev/null ; then
    %{fillup_and_insserv -fY microcode.ctl}
elif grep -q -i AuthenticAMD /proc/cpuinfo; then
    fam=`head /proc/cpuinfo |sed -n -e 's/cpu family.*: \([0-9]\+\)/\1/p'`
    # Only try to update when family >= 16 (0x10, fam 10h)
    if [ $fam -ge 16 >& /dev/null ];then
        %{fillup_and_insserv -fY microcode.ctl}
    fi
fi

%clean
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
/lib/firmware/microcode.dat
/sbin/microcode_ctl
/etc/init.d/microcode.ctl
/usr/sbin/rcmicrocode.ctl
%dir /lib/firmware/amd-ucode
/lib/firmware/amd-ucode/microcode_amd.bin
%{_mandir}/man8/microcode_ctl.8.gz
%doc %{_defaultdocdir}/microcode_ctl

%changelog
++++++ microcode-ctl-cloexec.patch ++++++
--- microcode_ctl.c.orig
+++ microcode_ctl.c
@@ -10,6 +10,7 @@
  *
  */
 
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -66,7 +67,7 @@ static int do_update(char *device, char
                return ENOMEM;
        }
 
-       if( (fp=fopen(filename, "r")) == NULL){
+       if( (fp=fopen(filename, "re")) == NULL){
                if(print_error_messages)
                        fprintf(stderr,
                                "%s: cannot open source file '%s' errno=%d 
(%s)\n",
@@ -117,7 +118,7 @@ static int do_update(char *device, char
        if(print_normal_messages)
                fprintf(stderr, "%s: writing microcode (length: %d)\n",  
progname, length);
        
-       if((outfd = open(device, O_WRONLY)) == -1){
+       if((outfd = open(device, O_WRONLY|O_CLOEXEC)) == -1){
                if(print_error_messages)
                        fprintf(stderr, "%s: cannot open %s for writing 
errno=%d (%s)\n",
                                progname, device, errno, strerror(errno));
++++++ microcode.ctl_1.17-13.diff.gz ++++++
++++ 1927 lines (skipped)

++++++ microcode.init ++++++
#! /bin/sh
# Copyright (c) 2001-2002 SuSE Linux AG Nuernberg.  All rights reserved.
#
# Author: Björn Jacke <feedb...@suse.de>
#
# /etc/init.d/microcode
#
# description: init script for Intel amd AMD CPU microcode update
### BEGIN INIT INFO
# Provides:          microcode
# Required-Start:
# Required-Stop:
# Default-Start:     1 2 3 5
# Default-Stop:
# X-UnitedLinux-Default-Enabled: yes
# Short-Description: CPU microcode updater
# Description:       update the Intel or AMD CPU microcode (both 32 and 64 bit)
### END INIT INFO

. /etc/rc.status

rc_reset

do_start()
{
    echo -n "Checking/updating CPU microcode "

    if test -x /usr/sbin/dmidecode \
        && /usr/sbin/dmidecode -s system-product-name \
        | grep -q -i -P "\b(?:VirtualBox|VMware|Bochs|Parallels|Qemu)\b"; then
        rc_status -u
    elif grep -q -i intel /proc/cpuinfo \
            && /sbin/modinfo microcode >& /dev/null; then
        /sbin/modprobe -q microcode
        /sbin/microcode_ctl -Qu
    elif grep -q -i AuthenticAMD /proc/cpuinfo \
        && /sbin/modinfo microcode >& /dev/null; then
        fam=`head /proc/cpuinfo |sed -n -e 's/cpu family.*: \([0-9]\+\)/\1/p'`
        # Only try to update when family >= 16 (0x10, fam 10h)
        if [ $fam -ge 16 >& /dev/null ];then
            # Loading the driver automatically requests the firmware
            rmmod microcode >& /dev/null
            logger "Requesting microcode for AMD fam10h or newer CPU(s)"
            echo -n ".. AMD fam10h or newer CPU(s) found"
            /sbin/modprobe -q microcode
        else
            printf ".. unsupported AMD CPU family: 0x%x" $fam
            rc_failed 5
        fi
    else
        rc_failed 6
    fi
    rc_status -v
}

# See how we were called.
case "$1" in
    start)
        do_start
        ;;
    status)
        echo "$0: reading the microcode status is not yet suported"
        rc_failed 4
        rc_status -v
        ;;
    stop)
        ;;
    reload)
        do_start
        ;;
    *)
        echo "Usage: $0 start"
        exit 1
        ;;
esac
rc_exit


# vim: set sw=4 ts=4 et ft=sh:
++++++ microcode_ctl-1.17-suse_rh_paths.patch ++++++
Index: Makefile
===================================================================
--- Makefile.orig       2010-05-29 17:38:49.000000000 +0200
+++ Makefile    2010-05-29 21:42:56.932967000 +0200
@@ -24,34 +24,22 @@ endif
 DESTDIR                =
 PREFIX         = /usr
 
-INSDIR         = $(PREFIX)/sbin
+INSDIR         = /sbin
 MANDIR         = $(PREFIX)/share/man/man8
-MICDIR         = /usr/share/misc
-
-RCFILE         = microcode_ctl.start
-RCFILEFINAL    = microcode_ctl
-# this is a bit nasty...
-RCDIR          = $(shell if [ -d /etc/init.d ]; then echo "/etc"; else echo 
"/etc/rc.d"; fi)
-RCHOMEDIR      = init.d
-RCFILETO       = $(RCDIR)/$(RCHOMEDIR)
+MICDIR         = /lib/firmware
 
 all: microcode_ctl
 
 microcode_ctl: microcode_ctl.c
        $(CC) $(CFLAGS) -o $(PROGRAM) microcode_ctl.c
-       echo "$(RCDIR)/$(RCHOMEDIR)/microcode_ctl" > microcode-filelist
 
 clean:
        rm -f $(PROGRAM) microcode_ctl.o microcode-filelist
 
 install:
-       $(INS) -s -m 755 $(PROGRAM) $(DESTDIR)$(INSDIR)
-
-ifndef DESTDIR
-               chkconfig --add $(RCFILEFINAL)
-else
-               echo "MAKE: Skipping chkconfig operation (rpm build?)"
-endif
+       mkdir -p $(DESTDIR){$(MICDIR),$(INSDIR),$(MANDIR)}
+       $(INS) -m 644 microcode_ctl.8 $(DESTDIR)$(MANDIR)
+       $(INS) -m 755 $(PROGRAM) $(DESTDIR)$(INSDIR)
 
 device:
        mkdir -p $(DESTDIR)/dev/cpu
Index: microcode_ctl.c
===================================================================
--- microcode_ctl.c.orig        2010-05-29 17:38:49.000000000 +0200
+++ microcode_ctl.c     2010-05-29 17:44:47.376445000 +0200
@@ -26,7 +26,7 @@ static int print_error_messages=1;
 #define FILENAME_MAXLEN 2048
 
 #define MICROCODE_DEVICE_DEFAULT       "/dev/cpu/microcode"
-#define MICROCODE_FILE_DEFAULT         "/usr/share/misc/intel-microcode.dat"
+#define MICROCODE_FILE_DEFAULT         "/lib/firmware/microcode.dat"
 
 
 static void usage(FILE *file)
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to