* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/, dev-libs/libmspack/
@ 2018-11-22 13:54 Thomas Deutschmann
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Deutschmann @ 2018-11-22 13:54 UTC (permalink / raw
To: gentoo-commits
commit: 87f69c522fb67cdfb9e04f10e5ced3f88420fc86
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 22 13:45:29 2018 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Nov 22 13:46:00 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f69c52
dev-libs/libmspack: fix big endian
Closes: https://bugs.gentoo.org/670654
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
.../files/libmspack-0.9.1_alpha-fix-bigendian.patch | 17 +++++++++++++++++
...9.1_alpha.ebuild => libmspack-0.9.1_alpha-r1.ebuild} | 2 ++
2 files changed, 19 insertions(+)
diff --git a/dev-libs/libmspack/files/libmspack-0.9.1_alpha-fix-bigendian.patch b/dev-libs/libmspack/files/libmspack-0.9.1_alpha-fix-bigendian.patch
new file mode 100644
index 00000000000..c134fa0760d
--- /dev/null
+++ b/dev-libs/libmspack/files/libmspack-0.9.1_alpha-fix-bigendian.patch
@@ -0,0 +1,17 @@
+https://github.com/kyz/libmspack/commit/c19e707936947b45cf05bc9aaee68517c6c2aca6
+
+---
+ configure.ac | 1 +
+ 1 files changed, 1 insertions(+)
+
+diff --git a/libmspack/configure.ac b/libmspack/configure.ac
+--- a/configure.ac
++++ b/configure.ac
+@@ -30,6 +30,7 @@ AC_CHECK_HEADERS([inttypes.h])
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+ AC_C_INLINE
++AC_C_BIGENDIAN
+ AC_TYPE_MODE_T
+ AC_TYPE_OFF_T
+ AC_TYPE_SIZE_T
diff --git a/dev-libs/libmspack/libmspack-0.9.1_alpha.ebuild b/dev-libs/libmspack/libmspack-0.9.1_alpha-r1.ebuild
similarity index 96%
rename from dev-libs/libmspack/libmspack-0.9.1_alpha.ebuild
rename to dev-libs/libmspack/libmspack-0.9.1_alpha-r1.ebuild
index 8cdcb1c82b7..d7bd17fac0b 100644
--- a/dev-libs/libmspack/libmspack-0.9.1_alpha.ebuild
+++ b/dev-libs/libmspack/libmspack-0.9.1_alpha-r1.ebuild
@@ -26,6 +26,8 @@ IUSE="debug doc static-libs"
DEPEND=""
RDEPEND=""
+PATCHES=( "${FILESDIR}"/${P}-fix-bigendian.patch )
+
S="${WORKDIR}/${MY_P}"
src_prepare() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/, dev-libs/libmspack/
@ 2017-10-30 6:05 Maciej Mrozowski
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Mrozowski @ 2017-10-30 6:05 UTC (permalink / raw
To: gentoo-commits
commit: ac489776e5c17f2e6a91b0ee7603caa7ad797a4e
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 30 06:05:30 2017 +0000
Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 30 06:05:45 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac489776
dev-libs/libmspack: Fix tests, bug #635776
Package-Manager: Portage-2.3.8, Repoman-2.3.4
.../files/libmspack-0.6_alpha-fix-tests.patch | 96 ++++++++++++++++++++++
dev-libs/libmspack/libmspack-0.6_alpha.ebuild | 4 +
2 files changed, 100 insertions(+)
diff --git a/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
new file mode 100644
index 00000000000..2f010d87a37
--- /dev/null
+++ b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
@@ -0,0 +1,96 @@
+From deb65056f436a4ce06946c4dde270f533e3cab4d Mon Sep 17 00:00:00 2001
+From: Stuart Caie <kyzer@cabextract.org.uk>
+Date: Mon, 16 Oct 2017 13:59:05 +0100
+Subject: [PATCH] Fix cabd_test.c test and msdecompile_md5 script
+
+---
+ libmspack/ChangeLog | 10 +++++++++
+ libmspack/test/cabd_test.c | 3 ++-
+ libmspack/test/msdecompile_md5 | 47 +++++++++++++++++++++---------------------
+ 3 files changed, 36 insertions(+), 24 deletions(-)
+
+diff --git a/libmspack/ChangeLog b/libmspack/ChangeLog
+index 6861b19..4aef85f 100644
+--- a/libmspack/ChangeLog
++++ b/libmspack/ChangeLog
+@@ -1,3 +1,13 @@
++2017-10-16 Stuart Caie <kyzer@cabextract.org.uk>
++
++ * test/cabd_test.c: update the short string tests to expect not only
++ MSPACK_ERR_DATAFORMAT but also MSPACK_ERR_READ, because of the recent
++ change to cabd_read_string(). Thanks to maitreyee43 for spotting this.
++
++ * test/msdecompile_md5: update the setup instructions for this script,
++ and also change the script so it works with current Wine. Again, thanks
++ to maitreyee43 for trying to use it and finding it not working.
++
+ 2017-08-13 Stuart Caie <kyzer@cabextract.org.uk>
+
+ * src/chmextract.c: support MinGW one-arg mkdir(). Thanks to AntumDeluge
+diff --git a/libmspack/test/cabd_test.c b/libmspack/test/cabd_test.c
+index 5e8851c..abed65c 100644
+--- a/libmspack/test/cabd_test.c
++++ b/libmspack/test/cabd_test.c
+@@ -186,7 +186,8 @@ void cabd_open_test_05() {
+ for (i = 0; i < (sizeof(str_files)/sizeof(char *)); i++) {
+ cab = cabd->open(cabd, str_files[i]);
+ TEST(cab == NULL);
+- TEST(cabd->last_error(cabd) == MSPACK_ERR_DATAFORMAT);
++ TEST(cabd->last_error(cabd) == MSPACK_ERR_DATAFORMAT ||
++ cabd->last_error(cabd) == MSPACK_ERR_READ);
+ }
+
+ /* lack of data blocks should NOT be a problem for merely reading */
+diff --git a/libmspack/test/msdecompile_md5 b/libmspack/test/msdecompile_md5
+index a1d3b4b..9efbfac 100755
+--- a/libmspack/test/msdecompile_md5
++++ b/libmspack/test/msdecompile_md5
+@@ -1,24 +1,25 @@
+-#!/usr/bin/perl -w
+-# put hh.exe, hhctrl.ocx and itss.dll into this directory
+-# for this script to work. You can get them by downloading
+-# the HTML Help Workshop from Microsoft and then doing:
+-# $ cabextract -F 'hh*' htmlhelp.exe
+-# $ cabextract -F itircl.dll hhupd.exe
+-# $ cabextract -F itss.dll hhupd.exe
+-# $ cp -a itircl.dll ~/.wine/drive_c/windows/system32/
+-# $ cp -a itss.dll ~/.wine/drive_c/windows/system32/
+-# $ wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itircl.dll'
+-# $ wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itss.dll'
++#!/bin/sh
++# This script needs the following setup to work:
++# - hh.exe and hhctrl.ocx copied to Wine's system32
++# - itss.dll and itircl.dll installed as Wine DLLs
++#
++# Download the HTML Help Workshop (htmlhelp.exe) from Microsoft:
++#
++# https://msdn.microsoft.com/en-us/library/windows/desktop/ms669985(v=vs.85).aspx
++#
++# and then run these commands:
++#
++# cabextract htmlhelp.exe -F hhupd.exe
++# cabextract hhupd.exe -F hh.exe
++# cabextract hhupd.exe -F hhctrl.ocx
++# cabextract hhupd.exe -F itircl.dll
++# cabextract hhupd.exe -F itss.dll
++# mv hh.exe hhctrl.ocx itircl.dll itss.dll ~/.wine/drive_c/windows/system32/
++# wine regsvr32 /s 'c:\windows\system32\itircl.dll'
++# wine regsvr32 /s 'c:\windows\system32\itss.dll'
+
+-use strict;
+-use File::Temp qw(tempdir);
+-
+-die "Usage: $0 <file.chm>\n" unless @ARGV == 1;
+-my $hh = $0; $hh =~ s{[^/]+$}{hh.exe};
+-my $dir = tempdir("./.tempXXXX", CLEANUP => 1);
+-
+-$ENV{LANG} = 'C';
+-$ENV{WINEDLLOVERRIDES}='hhctrl.ocx,itss=n';
+-print "*** $ARGV[0]\n";
+-system("wine $hh -decompile $dir $ARGV[0] 1>&2 && " .
+- "cd $dir && find * -type f -print0 | xargs -0 md5sum");
++dir=`mktemp -d`
++echo "*** $1"
++LANG=C WINEDLLOVERRIDES='hhctrl.ocx=n' wine hh -decompile $dir "$1"
++cd $dir && find * -type f -exec md5sum {} +
++rm -rf $dir
diff --git a/dev-libs/libmspack/libmspack-0.6_alpha.ebuild b/dev-libs/libmspack/libmspack-0.6_alpha.ebuild
index b8c96e78ed0..6a40351178f 100644
--- a/dev-libs/libmspack/libmspack-0.6_alpha.ebuild
+++ b/dev-libs/libmspack/libmspack-0.6_alpha.ebuild
@@ -20,6 +20,10 @@ IUSE="debug doc static-libs"
DEPEND=""
RDEPEND=""
+PATCHES=(
+ "${FILESDIR}/${P}-fix-tests.patch"
+)
+
S="${WORKDIR}/${MY_P}"
multilib_src_configure() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-22 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-22 13:54 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/, dev-libs/libmspack/ Thomas Deutschmann
-- strict thread matches above, loose matches on Subject: below --
2017-10-30 6:05 Maciej Mrozowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox