From patchwork Wed Feb 17 11:51:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: heinzm@sourceware.org X-Patchwork-Id: 79875 Received: from mx01.colomx.prod.int.phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1HBskKb008756 for ; Wed, 17 Feb 2010 11:55:22 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx01.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1HBqHnA012824; Wed, 17 Feb 2010 06:52:19 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1HBqCEF006774 for ; Wed, 17 Feb 2010 06:52:12 -0500 Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.13]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1HBq6EZ005257 for ; Wed, 17 Feb 2010 06:52:07 -0500 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id o1HBptWA005443 for ; Wed, 17 Feb 2010 06:51:55 -0500 Received: (qmail 28895 invoked by uid 9450); 17 Feb 2010 11:51:55 -0000 Date: 17 Feb 2010 11:51:55 -0000 Message-ID: <20100217115155.28893.qmail@sourceware.org> From: heinzm@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -1.201 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.13 X-loop: dm-devel@redhat.com Subject: [dm-devel] dmraid ./dmraid.spec lib/version.h lib/misc/li ... X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 17 Feb 2010 11:55:22 +0000 (UTC) --- dmraid/dmraid.spec 2010/01/12 12:21:09 1.11 +++ dmraid/dmraid.spec 2010/02/17 11:51:53 1.12 @@ -7,7 +7,7 @@ Summary: dmraid (Device-mapper RAID tool and library) Name: dmraid Version: 1.0.0.rc16 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://people.redhat.com/heinzm/sw/dmraid @@ -23,10 +23,6 @@ Provides: dmraid-libs = %{version}-%{release} Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/%{name}-%{version}.tar.bz2 -Patch0: dmraid-1.0.0.rc16-test_devices.patch -Patch1: ddf1_lsi_persistent_name.patch -Patch2: pdc_raid10_failure.patch - %description DMRAID supports RAID device discovery, RAID set activation, creation, removal, rebuild and display of properties for ATARAID/DDF1 metadata on @@ -65,9 +61,6 @@ %prep %setup -q -n dmraid/%{version} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 %build %define _libdir /%{_lib} @@ -90,10 +83,10 @@ # If requested, install the libdmraid and libdmraid-events (for dmeventd) DSO install -m 755 lib/libdmraid.so \ $RPM_BUILD_ROOT%{_libdir}/libdmraid.so.%{version} -(cd $RPM_BUILD_ROOT/%{_libdir} ; ln -sf libdmraid.so.%{version} libdmraid.so) +(cd $RPM_BUILD_ROOT/%{_libdir} ; ln -sf libdmraid.so.%{version} libdmraid.so ; ln -sf libdmraid.so.%{version} libdmraid.so.1) install -m 755 lib/libdmraid-events-isw.so \ $RPM_BUILD_ROOT%{_libdir}/libdmraid-events-isw.so.%{version} -(cd $RPM_BUILD_ROOT/%{_libdir} ; ln -sf libdmraid-events-isw.so.%{version} libdmraid-events-isw.so) +(cd $RPM_BUILD_ROOT/%{_libdir} ; ln -sf libdmraid-events-isw.so.%{version} libdmraid-events-isw.so ; ln -sf libdmraid-events-isw.so.%{version} libdmraid-events-isw.so.1) # Install logwatch config file and script for dmeventd install -m 644 logwatch/dmeventd.conf $RPM_BUILD_ROOT/etc/logwatch/conf/services/dmeventd.conf @@ -140,6 +133,10 @@ %ghost /var/cache/logwatch/dmeventd/syslogpattern.txt %changelog +* Tue Jan 12 2010 Heinz Mauelshagen - 1.0.0.rc16-4 +- Change dmraid DSO version to "1" and allow for display of + extended internal library version + * Tue Jan 12 2010 Heinz Mauelshagen - 1.0.0.rc16-3 - Add logwatch files and move pattern file to /var/cache - Fix multiple options (eg. "-ccc") not recognized properly --- dmraid/lib/version.h 2010/01/12 12:23:26 1.9 +++ dmraid/lib/version.h 2010/02/17 11:51:53 1.10 @@ -1,12 +1,12 @@ #ifndef DMRAID_LIB_VERSION -#define DMRAID_LIB_VERSION "1.0.0.rc16-3" +#define DMRAID_LIB_VERSION "1" #define DMRAID_LIB_MAJOR_VERSION 1 #define DMRAID_LIB_MINOR_VERSION 0 #define DMRAID_LIB_SUBMINOR_VERSION 0 -#define DMRAID_LIB_VERSION_SUFFIX "rc16-3" +#define DMRAID_LIB_VERSION_SUFFIX "rc16-4" -#define DMRAID_LIB_DATE "(2010.01.12)" +#define DMRAID_LIB_DATE "(2010.02.17)" #endif --- dmraid/lib/misc/lib_context.c 2008/06/20 21:52:18 1.3 +++ dmraid/lib/misc/lib_context.c 2010/02/17 11:51:54 1.4 @@ -138,25 +138,30 @@ static void init_version(struct lib_context *lc, void *arg) { - lc->version.text = DMRAID_LIB_VERSION; + static char version[80]; + + lc->version.text = version; lc->version.date = DMRAID_LIB_DATE; lc->version.v.major = DMRAID_LIB_MAJOR_VERSION; lc->version.v.minor = DMRAID_LIB_MINOR_VERSION; lc->version.v.sub_minor = DMRAID_LIB_SUBMINOR_VERSION; lc->version.v.suffix = DMRAID_LIB_VERSION_SUFFIX; + snprintf(version, sizeof(version), "%d.%d.%d.%s", + lc->version.v.major, lc->version.v.minor, + lc->version.v.sub_minor, lc->version.v.suffix); } /* Put init functions into an array because of the potentially growing list. */ struct init_fn { void (*func) (struct lib_context * lc, void *arg); } init_fn[] = { - { - init_options}, { - init_cmd}, { - init_lists}, { - init_mode}, { - init_paths}, { -init_version},}; + { init_options}, + { init_cmd}, + { init_lists}, + { init_mode}, + { init_paths}, + { init_version}, +}; struct lib_context * alloc_lib_context(char **argv)