From dfd127f6661d289dff2d389d140be19c16bb868d166a1d3e4bc45355160839c3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 11 Apr 2018 19:07:15 +0000 Subject: [PATCH] - Add iconv-name.diff; rename cp10000 to macintosh to workaround glibc [boo#1089126] OBS-URL: https://build.opensuse.org/package/show/utilities/schily?expand=0&rev=9 --- iconv-name.diff | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ schily.changes | 6 ++++ schily.spec | 9 +++--- 3 files changed, 84 insertions(+), 4 deletions(-) create mode 100644 iconv-name.diff diff --git a/iconv-name.diff b/iconv-name.diff new file mode 100644 index 0000000..a6019f2 --- /dev/null +++ b/iconv-name.diff @@ -0,0 +1,73 @@ +From: Jan Engelhardt +Date: 2018-04-11 20:00:58.584068848 +0200 + +Workaround a shortcoming in glibc which lacks cp1XXX identifiers +without having to install any siconv tables. +--- + mkisofs/mkisofs.8 | 13 ++++++------- + mkisofs/mkisofs.c | 4 ++-- + 2 files changed, 8 insertions(+), 9 deletions(-) + +Index: schily-2018-03-16/mkisofs/mkisofs.8 +=================================================================== +--- schily-2018-03-16.orig/mkisofs/mkisofs.8 ++++ schily-2018-03-16/mkisofs/mkisofs.8 +@@ -2344,8 +2344,8 @@ Input charset that defines the character + used with the + .I \-mac\-name + option. +-The default charset is cp10000 (Mac Roman) +-.I cp10000 ++The default charset is ++.I macintosh + (Mac Roman) + See + .B "CHARACTER SETS +@@ -2555,7 +2555,7 @@ any of the various Apple/Unix file forma + option. See the + .B HFS MACINTOSH FILE NAMES + for more information. Defaults to +-.I cp10000 ++.I macintosh + (Mac Roman). + .TP + .B \-output\-hfs\-charset +@@ -3070,13 +3070,12 @@ name will be used in the TRANS.TBL file, + .PP + The character set used to convert any HFS file name to a Joliet/Rock Ridge + file name defaults to +-.I cp10000 ++.I macintosh + (Mac Roman). + The character set used can be specified using the + .I \-input\-hfs\-charset +-option. Other built in HFS character sets are: cp10006 (MacGreek), +-cp10007 (MacCyrillic), cp10029 (MacLatin2), cp10079 (MacIcelandic) and +-cp10081 (MacTurkish). ++option. Other built in HFS character sets are: ++MAC-CYRILLIC (MacCyrillic), MAC-CENTRALEUROPE (MacLatin2), MAC-IS (MacIcelandic). + .PP + Note: the character codes used by HFS file names taken from the various + Apple/Unix formats will not be converted as they are assumed to be in the +Index: schily-2018-03-16/mkisofs/mkisofs.c +=================================================================== +--- schily-2018-03-16.orig/mkisofs/mkisofs.c ++++ schily-2018-03-16/mkisofs/mkisofs.c +@@ -2849,7 +2849,7 @@ setcharset: + + #ifdef APPLE_HYB + if (hfs_icharset == NULL || strcmp(hfs_icharset, "mac-roman") == 0) { +- hfs_icharset = "cp10000"; ++ hfs_icharset = "macintosh"; + } + hfs_inls = sic_open(hfs_icharset); + +@@ -2857,7 +2857,7 @@ setcharset: + hfs_ocharset = hfs_inls ? hfs_inls->sic_name : NULL; + } + if (hfs_ocharset == NULL || strcmp(hfs_ocharset, "mac-roman") == 0) { +- hfs_ocharset = "cp10000"; ++ hfs_ocharset = "macintosh"; + } + hfs_onls = sic_open(hfs_ocharset); + diff --git a/schily.changes b/schily.changes index 308f5e0..d9cda4d 100644 --- a/schily.changes +++ b/schily.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 11 19:03:52 UTC 2018 - jengelh@inai.de + +- Add iconv-name.diff; rename cp10000 to macintosh to workaround + glibc [boo#1089126] + ------------------------------------------------------------------- Wed Apr 4 12:10:08 UTC 2018 - jengelh@inai.de diff --git a/schily.spec b/schily.spec index 2b055ad..7b88202 100644 --- a/schily.spec +++ b/schily.spec @@ -32,6 +32,7 @@ Url: http://cdrtools.sourceforge.net/private/cdrecord.html Source: https://downloads.sf.net/schilytools/%name-%rver.tar.bz2 Patch1: gcc48wa.diff Patch2: mkisofs-j-crash.diff +Patch3: iconv-name.diff # Honor https://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Upstream_policy # and submit patches upstream FIRST (cc to the bspkg maintainer perhaps). BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -155,9 +156,10 @@ to programs. %package -n libparanoia1_0 Summary: Compact Disc Digital audio extraction library -Version: %cdr_version -License: LGPL-2.1 +License: LGPL-2.1-only Group: System/Libraries +Version: %cdr_version +Release: 0 %description -n libparanoia1_0 libparanoia is a Compact Disc Digital Audio (CD-DA) Digital Audio @@ -356,7 +358,7 @@ connection, and through that, have the rmt program executed. %prep %setup -qn %name-%rver -%patch -P 1 -P 2 -p1 +%patch -P 1 -P 2 -P 3 -p1 find . "(" -type d -o -type f ")" -exec chmod u+w "{}" "+" %build @@ -643,7 +645,6 @@ rm -f \ $b/usr/share/man/man5/streamarchive.5 \ $b/usr/share/man/man8/sformat.8 - # Remove documentation (will be added in %_datadir/doc/packages/*) #rm -Rf "$b/%_datadir/doc"/*