diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-12-31 20:25:31 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-12-31 20:25:31 +0400 |
commit | ff54ee6788504481c2dcb1cb8a18b02c236f770a (patch) | |
tree | 4bbb7018795080e0d78b8dd59c950888d505fc56 | |
parent | f0d58cf26d1e6917c953f7670a8d64c27194c3a9 (diff) | |
download | cdrkit-ff54ee6788504481c2dcb1cb8a18b02c236f770a.tar.gz |
libvolmgt is a stub
-rw-r--r-- | debian/patches/libusal-libvolmgt-is-stub.patch | 65 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 66 insertions, 0 deletions
diff --git a/debian/patches/libusal-libvolmgt-is-stub.patch b/debian/patches/libusal-libvolmgt-is-stub.patch new file mode 100644 index 0000000..5e7ff52 --- /dev/null +++ b/debian/patches/libusal-libvolmgt-is-stub.patch @@ -0,0 +1,65 @@ +Description: libvolmgt is a stub, it does nothing. + Obviously this file should be rewritten or removed, + but I can just cutoff libvolmgt. +Index: cdrkit/libusal/scsi-sun.c +=================================================================== +--- cdrkit.orig/libusal/scsi-sun.c 2012-12-31 20:14:48.343051065 +0400 ++++ cdrkit/libusal/scsi-sun.c 2012-12-31 20:21:35.560310606 +0400 +@@ -62,7 +62,6 @@ + */ + #ifdef __SVR4 + /*#define VOLMGT_DEBUG*/ +-#include <volmgt.h> + #include <statdefs.h> + # define USE_USCSI + #endif +@@ -87,7 +86,7 @@ + static int usalo_ureset(SCSI *usalp, int what); + static int usalo_usend(SCSI *usalp); + +-static int have_volmgt = -1; ++static int have_volmgt = 0; + + static usal_ops_t sun_uscsi_ops = { + usalo_usend, +@@ -455,9 +454,6 @@ + register int nopen = 0; + char devname[32]; + +- if (have_volmgt < 0) +- have_volmgt = volmgt_running(); +- + if (usalp->overbose) { + fprintf((FILE *)usalp->errfile, + "Warning: Using USCSI interface.\n"); +@@ -637,9 +633,6 @@ + * First try to translate between a symbolic name and a /dev/... + * based device name. Then translate back to a symbolic name. + */ +- symdev = volmgt_symdev(devname); +- if (symdev) +- name = volmgt_symname(symdev); + if (usalp->debug > 0) { + fprintf((FILE *)usalp->errfile, + "volmgt_symdev(%s)=%s -> %s\n", devname, symdev, name); +@@ -650,11 +643,6 @@ + * a /dev/... based device name. Try to translate it into a + * symbolic name. Then translate back to a /dev/... name. + */ +- if (name == NULL) { +- name = volmgt_symname(devname); +- if (name) +- symdev = volmgt_symdev(name); +- } + if (usalp->debug > 0) { + fprintf((FILE *)usalp->errfile, + "volmgt_symdev(%s)=%s -> %s\n", devname, symdev, name); +@@ -677,7 +665,7 @@ + */ + if (usalp->debug > 0) { + fprintf((FILE *)usalp->errfile, +- "volmgt_inuse(%s) %d\n", symdev, volmgt_inuse(symdev)); ++ "volmgt_inuse(%s) %d\n", symdev, 0); + } + if (mname) + f = usalo_openmedia(usalp, mname); diff --git a/debian/patches/series b/debian/patches/series index 92cedfc..db11265 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ AddNetworkBits.cmake-libnsl.patch +libusal-libvolmgt-is-stub.patch |