Hello community,
here is the log from the commit of package mt_st
checked in at Thu Mar 15 01:45:07 CET 2007.
--------
--- mt_st/mt_st.changes 2006-11-11 10:31:11.000000000 +0100
+++ /mounts/work_src_done/STABLE/mt_st/mt_st.changes 2007-03-14 16:35:05.000000000 +0100
@@ -1,0 +2,13 @@
+Wed Mar 14 16:32:27 CET 2007 - pth@suse.de
+
+- Update to 0.9b:
+ Changes since 0.7:
+ - add local copy of qic117.h missing from recent kernels.
+ - only stinit changed
+ - more density codes
+ - put man page into /usr/share/man/man1
+ - documentation cleanup
+ - add some density translations
+ - counts can use the k, M, or G postfix
+
+-------------------------------------------------------------------
Old:
----
mt-st-0.7.diff
mt-st-0.7.tar.gz
New:
----
mt-st-0.9b-local_qic117_h.patch
mt-st-0.9b.patch
mt-st-0.9b.tar.bz2
mt-st-codecleanup.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mt_st.spec ++++++
--- /var/tmp/diff_new_pack.d11927/_old 2007-03-15 01:44:33.000000000 +0100
+++ /var/tmp/diff_new_pack.d11927/_new 2007-03-15 01:44:33.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package mt_st (Version 0.7)
+# spec file for package mt_st (Version 0.9b)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -11,16 +11,17 @@
# norootforbuild
Name: mt_st
-Version: 0.7
-Release: 450
-License: GNU General Public License (GPL) - all versions, Other License(s), see package
+Version: 0.9b
+Release: 1
+License: GNU General Public License (GPL)
Group: Productivity/Archiving/Backup
Provides: mt-st
Autoreqprov: on
Summary: mt-st Controls Magnetic Tape Drives
-Source: ftp://ftp.ibiblio.org/pub/Linux/system/backup/mt-st-%{version}.tar.gz
-#Source2: mt-st-%{version}.lsm
-Patch: mt-st-%{version}.diff
+Source: mt-st-%{version}.tar.bz2
+Patch: mt-st-%{version}.patch
+Patch1: mt-st-0.9b-local_qic117_h.patch
+Patch2: mt-st-codecleanup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -37,14 +38,16 @@
Kai Makisara
%prep
-%setup -n mt-st-%{version}
-%patch -p1
+%setup -q -n mt-st-%{version}
+%patch
+%patch1
+%patch2
%build
- make CFLAGS="$RPM_OPT_FLAGS"
+make CFLAGS="%{optflags} -W -Wall"
%install
- make install DESTDIR=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir}
+ make install DESTDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir}
%files
#%docdir %attr(755,root,root) %{_defaultdocdir}/%{name}
@@ -56,10 +59,20 @@
%doc %attr(644,root,root) %{_mandir}/man8/stinit.8.gz
%clean
-rm -rf $RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_DIR/mt-st-%{version}
+rm -rf %{buildroot}
+rm -rf %{buildroot}/mt-st-%{version}
-%changelog -n mt_st
+%changelog
+* Wed Mar 14 2007 - pth@suse.de
+- Update to 0.9b:
+ Changes since 0.7:
+ - add local copy of qic117.h missing from recent kernels.
+ - only stinit changed
+ - more density codes
+ - put man page into /usr/share/man/man1
+ - documentation cleanup
+ - add some density translations
+ - counts can use the k, M, or G postfix
* Sat Nov 11 2006 - olh@suse.de
- fix doc file permission
* Wed Jan 25 2006 - mls@suse.de
++++++ mt-st-0.9b-local_qic117_h.patch ++++++
--- mtio.h
+++ mtio.h
@@ -10,7 +10,7 @@
#include
#include
-#include
+#include "qic117.h"
/*
* Structures and definitions for mag tape io control commands
++++++ mt-st-0.9b.patch ++++++
--- Makefile
+++ Makefile
@@ -1,7 +1,8 @@
-CFLAGS= -Wall -O2
-SBINDIR= /sbin
-BINDIR= /bin
-MANDIR= /usr/share/man
+CFLAGS = -Wall -O2 -pipe
+PREFIX = $(DESTDIR)/usr
+SBINDIR = $(PREFIX)/sbin
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/share/man
all: mt stinit
@@ -12,14 +13,12 @@
$(CC) $(CFLAGS) -o stinit stinit.c
install: mt stinit
- install -s mt $(BINDIR)
- install -c -m 444 mt.1 $(MANDIR)/man1
- (if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
- rm -f $(MANDIR)/man1/mt.1.gz; gzip $(MANDIR)/man1/mt.1; fi)
- install -s stinit $(SBINDIR)
- install -c -m 444 stinit.8 $(MANDIR)/man8
- (if [ -f $(MANDIR)/man8/stinit.8.gz ] ; then \
- rm -f $(MANDIR)/man8/stinit.8.gz; gzip $(MANDIR)/man8/stinit.8; fi)
+ mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR) $(MANDIR)/man1 $(MANDIR)/man8
+ install mt $(BINDIR)/mtst
+ install -c -m 644 mt.1 $(MANDIR)/man1/mtst.1
+ install stinit $(SBINDIR)
+ install -c -m 644 stinit.8 $(MANDIR)/man8
+
dist: clean
(mydir=`basename \`pwd\``;\
++++++ mt-st-codecleanup.patch ++++++
--- mt.c 2005-08-21 20:48:06.000000000 +0200
+++ mt.c 2007-03-14 17:06:12.000000000 +0100
@@ -29,9 +29,11 @@
#define VERSION "0.9b"
-typedef int (* cmdfunc)(/* int, struct cmdef_tr *, int, char ** */);
+typedef struct cmdef_tr cmdef_tr;
-typedef struct cmdef_tr {
+typedef int (* cmdfunc)(int, struct cmdef_tr *, int, char **);
+
+struct cmdef_tr {
char *cmd_name;
int cmd_code;
cmdfunc cmd_function;
@@ -39,7 +41,7 @@ typedef struct cmdef_tr {
unsigned char cmd_fdtype;
unsigned char arg_cnt;
int error_tests;
-} cmdef_tr;
+};
#define NO_FD 0
#define FD_RDONLY 1
@@ -159,7 +161,7 @@ static cmdef_tr cmds[] = {
ET_ONLINE },
{ "asf", 0, do_asf, MTREW, FD_RDONLY, ONE_ARG,
ET_ONLINE },
- { NULL, 0, 0, 0 }
+ { NULL, 0, 0, 0, NO_FD, NO_ARGS, 0 }
};
@@ -259,7 +261,8 @@ static struct booleans {
{"sysv", MT_ST_SYSV, "enable the SystemV semantics"},
#endif
{"cleaning", MT_ST_SET_CLN, "set the cleaning bit location and mask"},
- {NULL, 0}};
+ {NULL, 0, ""}
+};
static char *tape_name; /* The tape name for messages */
@@ -267,7 +270,8 @@ static char *tape_name; /* The tape na
int
main(int argc, char **argv)
{
- int mtfd, cmd_code, i, argn, len, oflags;
+ int mtfd, cmd_code, i, argn, oflags;
+ size_t len;
char *cmdstr;
cmdef_tr *comp, *comp2;
@@ -464,7 +468,8 @@ do_drvbuffer(int mtfd, cmdef_tr *cmd, in
static int
do_options(int mtfd, cmdef_tr *cmd, int argc, char **argv)
{
- int i, an, len;
+ int i, an;
+ size_t len;
struct mtop mt_com;
mt_com.mt_op = MTSETDRVBUFFER;
@@ -518,7 +523,8 @@ do_options(int mtfd, cmdef_tr *cmd, int
/* Tell where the tape is */
static int
-do_tell(int mtfd, cmdef_tr *cmd, int argc, char **argv)
+do_tell(int mtfd, cmdef_tr *cmd __attribute__((unused)),
+ int argc __attribute__((unused)), char **argv __attribute__((unused)))
{
struct mtpos mt_pos;
@@ -533,7 +539,7 @@ do_tell(int mtfd, cmdef_tr *cmd, int arg
/* Position the tape to a specific location within a specified partition */
static int
-do_partseek(int mtfd, cmdef_tr *cmd, int argc, char **argv)
+do_partseek(int mtfd, cmdef_tr *cmd __attribute__((unused)), int argc, char **argv)
{
struct mtop mt_com;
@@ -556,7 +562,7 @@ do_partseek(int mtfd, cmdef_tr *cmd, int
/* Position to start of file n. This might be implemented more intelligently
some day. */
static int
-do_asf(int mtfd, cmdef_tr *cmd, int argc, char **argv)
+do_asf(int mtfd, cmdef_tr *cmd __attribute__((unused)), int argc, char **argv)
{
struct mtop mt_com;
@@ -581,10 +587,13 @@ do_asf(int mtfd, cmdef_tr *cmd, int argc
/*** Decipher the status ***/
static int
-do_status(int mtfd, cmdef_tr *cmd, int argc, char **argv)
+do_status(int mtfd, cmdef_tr *cmd __attribute__((unused)),
+ int argc __attribute__((unused)),
+ char **argv __attribute__((unused)))
{
struct mtget status;
- int dens, i;
+ int dens;
+ size_t i;
char *type, *density;
if (ioctl(mtfd, MTIOCGET, (char *)&status) < 0) {
@@ -675,7 +684,11 @@ do_status(int mtfd, cmdef_tr *cmd, int a
/* Print a list of possible density codes */
static int
-print_densities(int fd, cmdef_tr *cmd, int argc, char **argv)
+print_densities(int fd __attribute__((unused)),
+ cmdef_tr *cmd __attribute__((unused)),
+ int argc __attribute__((unused)),
+ char **argv __attribute__((unused)))
+
{
int i, offset;
@@ -683,7 +696,7 @@ print_densities(int fd, cmdef_tr *cmd, i
offset = (NBR_DENSITIES + 1) / 2;
for (i=0; i < offset; i++) {
printf("0x%02x %-28s", density_tbl[i].code, density_tbl[i].name);
- if (i + offset < NBR_DENSITIES)
+ if ((size_t)(i + offset) < NBR_DENSITIES)
printf(" 0x%02x %s\n", density_tbl[i + offset].code, density_tbl[i + offset].name);
else
printf("\n");
--- stinit.c 2005-08-21 20:47:51.000000000 +0200
+++ stinit.c 2007-03-14 17:09:25.000000000 +0100
@@ -163,7 +163,7 @@ find_string(char *s, char *target, char
if (buf == NULL)
buf = strdup(argp);
else {
- if (strlen(argp) < buflen)
+ if (strlen(argp) < (size_t)buflen)
strcpy(buf, argp);
else {
strncpy(buf, argp, buflen);
@@ -208,7 +208,7 @@ num_arg(char *t)
static int
-next_block(FILE *dbf, char *buf, int buflen, int limiter)
+next_block(FILE *dbf, char *buf, int buflen __attribute__((unused)), int limiter)
{
int len;
char *cp, *bp;
@@ -521,10 +521,10 @@ do_inquiry(char *tname, char *company, c
}
if (result) {
close(fn);
- sprintf(buffer,
+ sprintf((char *)buffer,
"The SCSI INQUIRY for device '%s' failed (power off?)",
tname);
- perror(buffer);
+ perror((char *)buffer);
return FALSE;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org