summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-31 21:45:12 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-31 21:45:12 +0000
commitd61d247d704b8f6c8d81f9556af1ee3a35399e14 (patch)
treef3f5f2fd61ce2ab18088357cfc89f2c09f87b053 /app-cdr/kiso/files
parentRemoved vegastrike from the tree as it has been masked for about 2 months now... (diff)
downloadgentoo-2-d61d247d704b8f6c8d81f9556af1ee3a35399e14.tar.gz
gentoo-2-d61d247d704b8f6c8d81f9556af1ee3a35399e14.tar.bz2
gentoo-2-d61d247d704b8f6c8d81f9556af1ee3a35399e14.zip
Add patch to build with last version of libcdio. Closes bug #128206.
(Portage version: 2.1_pre7-r3)
Diffstat (limited to 'app-cdr/kiso/files')
-rw-r--r--app-cdr/kiso/files/kiso-0.8.3-libcdio-077.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/app-cdr/kiso/files/kiso-0.8.3-libcdio-077.patch b/app-cdr/kiso/files/kiso-0.8.3-libcdio-077.patch
new file mode 100644
index 000000000000..0d0467720c84
--- /dev/null
+++ b/app-cdr/kiso/files/kiso-0.8.3-libcdio-077.patch
@@ -0,0 +1,33 @@
+Index: kiso-0.8.3/src/kiso.cpp
+===================================================================
+--- kiso-0.8.3.orig/src/kiso.cpp
++++ kiso-0.8.3/src/kiso.cpp
+@@ -43,6 +43,11 @@
+
+ #define DEFAULT_TIMEOUT_MS 10000
+
++#if LIBCDIO_VERSION_NUM < 77
++#define mmc_csb_t scsi_mmc_t
++#define mmc_run_cmd scsi_run_cmd
++#endif
++
+ static const char* const image2_data[] = {
+ "32 32 41 1",
+ ". c None",
+@@ -3591,14 +3596,14 @@ void Mainform::showdrive()
+
+ int i_status;
+ uint8_t buf[500] = { 0, };
+- scsi_mmc_cdb_t cdb = {{0, }};
++ mmc_cdb_t cdb = {{0, }};
+
+ CDIO_MMC_SET_COMMAND(cdb.field, CDIO_MMC_GPCMD_GET_CONFIGURATION);
+ CDIO_MMC_SET_READ_LENGTH8(cdb.field, sizeof(buf));
+ cdb.field[1] = CDIO_MMC_GET_CONF_ALL_FEATURES;
+ cdb.field[3] = 0x0;
+
+- i_status = scsi_mmc_run_cmd(p_cdio, 0, &cdb, SCSI_MMC_DATA_READ, sizeof(buf), &buf);
++ i_status = mmc_run_cmd(p_cdio, 0, &cdb, SCSI_MMC_DATA_READ, sizeof(buf), &buf);
+ if (i_status == 0) {
+ uint8_t *p;
+ uint32_t i_data;