diff options
Diffstat (limited to 'source/a/eject')
-rwxr-xr-x | source/a/eject/eject.SlackBuild | 7 | ||||
-rw-r--r-- | source/a/eject/eject_for_mac.patch | 12 |
2 files changed, 17 insertions, 2 deletions
diff --git a/source/a/eject/eject.SlackBuild b/source/a/eject/eject.SlackBuild index c637ef55..94b0ccf7 100755 --- a/source/a/eject/eject.SlackBuild +++ b/source/a/eject/eject.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2006, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ PKGNAM=eject VERSION=${VERSION:-2.1.5} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -59,6 +59,9 @@ cd ${PKGNAM} # Patch a problem with spaces in the pathname: zcat $CWD/eject.spaces.diff.gz | patch -p0 --verbose || exit 1 +# Fix "eject -T": +zcat $CWD/eject_for_mac.patch.gz | patch -p4 --verbose || exit 1 + # Make sure ownerships and permissions are sane: chown -R root:root . find . \ diff --git a/source/a/eject/eject_for_mac.patch b/source/a/eject/eject_for_mac.patch new file mode 100644 index 00000000..c86e3c17 --- /dev/null +++ b/source/a/eject/eject_for_mac.patch @@ -0,0 +1,12 @@ +diff -Nru /tmp/6rrvEn4EMT/eject-2.1.4/eject.c /tmp/Jon9ZzjSLN/eject-2.1.4/eject.c +--- /tmp/6rrvEn4EMT/eject-2.1.4/eject.c 2007-03-12 14:15:26.000000000 +0100 ++++ /tmp/Jon9ZzjSLN/eject-2.1.4/eject.c 2007-03-12 14:15:28.000000000 +0100 +@@ -552,7 +552,7 @@ + gettimeofday(&time_start, NULL); + + /* Send the CDROMEJECT command to the device. */ +- if (ioctl(fd, CDROMEJECT, 0) < 0) { ++ if (ioctl(fd, CDROMEJECT, 0) < 0 && errno != EIO) { + perror("ioctl"); + exit(1); + } |