summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2006-10-14 16:01:37 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2006-10-14 16:01:37 +0000
commit582bab65e2d21c60dbabe280a42a18a0a18f15b7 (patch)
tree5028ce805bbd143215e0974250feb5c1d92c935e /sys-block
parentStable on ia64. (diff)
downloadhistorical-582bab65e2d21c60dbabe280a42a18a0a18f15b7.tar.gz
historical-582bab65e2d21c60dbabe280a42a18a0a18f15b7.tar.bz2
historical-582bab65e2d21c60dbabe280a42a18a0a18f15b7.zip
Merged additional patches (fixes/improvements).
Package-Manager: portage-2.1-r1
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/partimage/ChangeLog8
-rw-r--r--sys-block/partimage/Manifest38
-rw-r--r--sys-block/partimage/files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch61
-rw-r--r--sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch127
-rw-r--r--sys-block/partimage/files/partimage-0.6.4-varargs.patch11
-rw-r--r--sys-block/partimage/partimage-0.6.4-r4.ebuild5
6 files changed, 240 insertions, 10 deletions
diff --git a/sys-block/partimage/ChangeLog b/sys-block/partimage/ChangeLog
index b5bea950df81..23c1b6284134 100644
--- a/sys-block/partimage/ChangeLog
+++ b/sys-block/partimage/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-block/partimage
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.23 2006/10/05 03:02:26 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.24 2006/10/14 16:01:37 xmerlin Exp $
+
+ 14 Oct 2006; Christian Zoffoli <xmerlin@gentoo.org>
+ +files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch,
+ +files/partimage-0.6.4-save_file_and_rest_file_actions.patch,
+ +files/partimage-0.6.4-varargs.patch, partimage-0.6.4-r4.ebuild:
+ Merged additional patches (fixes/improvements).
05 Oct 2006; Joseph Jezak <josejx@gentoo.org> partimage-0.6.4-r3.ebuild,
partimage-0.6.4-r4.ebuild:
diff --git a/sys-block/partimage/Manifest b/sys-block/partimage/Manifest
index 973b351568e5..777d6434d279 100644
--- a/sys-block/partimage/Manifest
+++ b/sys-block/partimage/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX partimage-0.6.4-LP64-fixes.patch 1773 RMD160 3a2e1d4d69794aaa4311b716c4a418350774707f SHA1 a76a3af0a0ca6b56e3ad58e8111cda88bf7757c3 SHA256 1f4ad532e1edc0c5772290fde3ed0285e5c09caecd786216c92f78fab2c4075b
MD5 60b6a720fc1d32cb9325428d7aeb49c2 files/partimage-0.6.4-LP64-fixes.patch 1773
RMD160 3a2e1d4d69794aaa4311b716c4a418350774707f files/partimage-0.6.4-LP64-fixes.patch 1773
@@ -10,6 +13,10 @@ AUX partimage-0.6.4-datadir-path.patch 1669 RMD160 701849f5cf02564640e41d6bd203e
MD5 12ba93fccf3cc6ddb16d47744ebae6a9 files/partimage-0.6.4-datadir-path.patch 1669
RMD160 701849f5cf02564640e41d6bd203efa59c6d6b4b files/partimage-0.6.4-datadir-path.patch 1669
SHA256 cd58f9dede1b2ea326973d7c1bdefe0ffc418015c189e8a2c93a7dd713dfa152 files/partimage-0.6.4-datadir-path.patch 1669
+AUX partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch 1938 RMD160 e74457b05ec899ca4a5c485bd2b1535f3a99385e SHA1 a7d68483f3950769dc6d99c319bd0b0fecd009a4 SHA256 b260d2c2b81d1d9ec60acd770965c995a98cceb97d468ded3607e276b9d43759
+MD5 c4184ad934f74caf3c4eaae3dac0a44e files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch 1938
+RMD160 e74457b05ec899ca4a5c485bd2b1535f3a99385e files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch 1938
+SHA256 b260d2c2b81d1d9ec60acd770965c995a98cceb97d468ded3607e276b9d43759 files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch 1938
AUX partimage-0.6.4-fflush-before-re-read-partition-table.patch 401 RMD160 d1a05f322beeee0265a8cd250fe0d70cc7a0f6b2 SHA1 c63534bc0876c1f496c2055311eacc66883b9c66 SHA256 cd94016ba2cdd4002b451f575c6e1c8308f520c0dc03c5ba6dceb63f937a156b
MD5 d4ac3ff2ae9e3225c14bbb1fc1373df9 files/partimage-0.6.4-fflush-before-re-read-partition-table.patch 401
RMD160 d1a05f322beeee0265a8cd250fe0d70cc7a0f6b2 files/partimage-0.6.4-fflush-before-re-read-partition-table.patch 401
@@ -34,6 +41,14 @@ AUX partimage-0.6.4-save_all_and_rest_all_actions.patch 10301 RMD160 ef483644116
MD5 5e328f1bb041b6b49957186d5598f3c1 files/partimage-0.6.4-save_all_and_rest_all_actions.patch 10301
RMD160 ef483644116534aedf3e1a79ba84cd8b7f7aef1c files/partimage-0.6.4-save_all_and_rest_all_actions.patch 10301
SHA256 1ba5e5b2949b6328c9745c40eaf9909fbe3a166b2df47e4b7e9974b5337d5b37 files/partimage-0.6.4-save_all_and_rest_all_actions.patch 10301
+AUX partimage-0.6.4-save_file_and_rest_file_actions.patch 3921 RMD160 9b6b5a115ca12839207d4c0554961f8743a7b6f6 SHA1 3eb76c8096b3219337876a32a85bd5f662c772f8 SHA256 a78746a720bb5e22298bcdd01b0c2412a4d675efbdd7b2716c571dc798b3e449
+MD5 e89724713d4452595b7477780641e1eb files/partimage-0.6.4-save_file_and_rest_file_actions.patch 3921
+RMD160 9b6b5a115ca12839207d4c0554961f8743a7b6f6 files/partimage-0.6.4-save_file_and_rest_file_actions.patch 3921
+SHA256 a78746a720bb5e22298bcdd01b0c2412a4d675efbdd7b2716c571dc798b3e449 files/partimage-0.6.4-save_file_and_rest_file_actions.patch 3921
+AUX partimage-0.6.4-varargs.patch 570 RMD160 94916f2ad7535d37d49e1d439babd9253ca9d8ec SHA1 26afde042d227a20dc873659ecd0ab6889d0b0bf SHA256 99ccf7696c0c14cb603f5ba2d95c051989cb3226cd7490d00bb26469b08a6099
+MD5 5e59bf081562ba14d674604aec33323c files/partimage-0.6.4-varargs.patch 570
+RMD160 94916f2ad7535d37d49e1d439babd9253ca9d8ec files/partimage-0.6.4-varargs.patch 570
+SHA256 99ccf7696c0c14cb603f5ba2d95c051989cb3226cd7490d00bb26469b08a6099 files/partimage-0.6.4-varargs.patch 570
AUX partimaged.conf 424 RMD160 e1dbe5dd5a3eec01b3061cce992f1fbee4bec167 SHA1 f571f19bf872f43df9c086162aed96992a073db3 SHA256 f794f539051e0f2e5f3ce357c4683c4a22a9e87b31f1ae113fcf58cd8bda43cf
MD5 724ac3895dc01f277b34dab251ec47bb files/partimaged.conf 424
RMD160 e1dbe5dd5a3eec01b3061cce992f1fbee4bec167 files/partimaged.conf 424
@@ -55,14 +70,14 @@ EBUILD partimage-0.6.4-r3.ebuild 4305 RMD160 f9e9dbb5cd62ffce8ceb020a5b10beeedd7
MD5 a7b0745e5e419964d7a7ebaf5034064b partimage-0.6.4-r3.ebuild 4305
RMD160 f9e9dbb5cd62ffce8ceb020a5b10beeedd746404 partimage-0.6.4-r3.ebuild 4305
SHA256 e31d7124f028040eccc70aa8f38b0b09ca315f982c7f7311d03af3569c981876 partimage-0.6.4-r3.ebuild 4305
-EBUILD partimage-0.6.4-r4.ebuild 4835 RMD160 25240bc0f3823e1d7f6286a464cd0002ffd38f13 SHA1 04ec64d3bdfa25a19b5404c9fc125a9c69226461 SHA256 5df2aa4f4cfd2f670c6605013a281d3f58fffbcce8c9b0fea23da889dbb6bcd3
-MD5 3b720eec0f8e58bac205ffdd3dc0896a partimage-0.6.4-r4.ebuild 4835
-RMD160 25240bc0f3823e1d7f6286a464cd0002ffd38f13 partimage-0.6.4-r4.ebuild 4835
-SHA256 5df2aa4f4cfd2f670c6605013a281d3f58fffbcce8c9b0fea23da889dbb6bcd3 partimage-0.6.4-r4.ebuild 4835
-MISC ChangeLog 7906 RMD160 1ee833a679f2616b0b282f49ff58d1ade0e5fc7f SHA1 d2b4ebb55cddbe1ca4bcc3e9eda7d4dfb19f7d58 SHA256 f672d994caca8628182f9e791365f89080d6cd50de8a895b6128604405d20e9d
-MD5 a74c8ba3ea5756bc0c902a8fb54eb29f ChangeLog 7906
-RMD160 1ee833a679f2616b0b282f49ff58d1ade0e5fc7f ChangeLog 7906
-SHA256 f672d994caca8628182f9e791365f89080d6cd50de8a895b6128604405d20e9d ChangeLog 7906
+EBUILD partimage-0.6.4-r4.ebuild 5031 RMD160 f67f579d34381892a2e0649abccc8cc943c6018d SHA1 88de54059485cb83429ade23efe61c72f8935ec8 SHA256 d2ec154e88dcfc1a6fe57627bdf28cbd4e2c0ea63b28ee648d92f1a42080aea0
+MD5 82eb990adebf4930842b5125daf3dac0 partimage-0.6.4-r4.ebuild 5031
+RMD160 f67f579d34381892a2e0649abccc8cc943c6018d partimage-0.6.4-r4.ebuild 5031
+SHA256 d2ec154e88dcfc1a6fe57627bdf28cbd4e2c0ea63b28ee648d92f1a42080aea0 partimage-0.6.4-r4.ebuild 5031
+MISC ChangeLog 8216 RMD160 df6234eaa65a26740068e90cdc885e5e3768ce04 SHA1 1858bbb8eecc2f94139f1acf770ebefb7af335ed SHA256 b7a20d8687374c9b68e5c1bae9c23932398dc292bcf874f82b9ab910dac33820
+MD5 07f7cbcc4861c9c9e616c07e2a4cd26d ChangeLog 8216
+RMD160 df6234eaa65a26740068e90cdc885e5e3768ce04 ChangeLog 8216
+SHA256 b7a20d8687374c9b68e5c1bae9c23932398dc292bcf874f82b9ab910dac33820 ChangeLog 8216
MISC metadata.xml 300 RMD160 1b8d549b3e7475c26f605a1a36fcab59722f51ab SHA1 7a58ba664a8a3385b8c3a16d7f0168ed656aed67 SHA256 a7042ab513648c05514689f1c2b7c1e6cbf1d339ca3aaa1a45de08ea5cfb152c
MD5 6b4c83400b7b7a44afb53e1a7ac388af metadata.xml 300
RMD160 1b8d549b3e7475c26f605a1a36fcab59722f51ab metadata.xml 300
@@ -73,3 +88,10 @@ SHA256 a0f2fcdd9dc1fb168a7ac6df7b43e9ef0cf7e53bf649d1c9d904fc2159950cf0 files/di
MD5 fcdaf20ed63fabe194aab14326dd09dc files/digest-partimage-0.6.4-r4 250
RMD160 c94f8b2bf848c148ef7cecdc9ef0b7e3b0c33fd2 files/digest-partimage-0.6.4-r4 250
SHA256 a0f2fcdd9dc1fb168a7ac6df7b43e9ef0cf7e53bf649d1c9d904fc2159950cf0 files/digest-partimage-0.6.4-r4 250
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.4 (GNU/Linux)
+
+iD8DBQFFMRlygMUyd/cdjWsRAvyIAKCKHUYWe0Y7E1TxxKxso7vAIER88QCcCY3C
+QEMofiwa/valmG7mhDkCQMc=
+=0Q/I
+-----END PGP SIGNATURE-----
diff --git a/sys-block/partimage/files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch b/sys-block/partimage/files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch
new file mode 100644
index 000000000000..17f9f3ae8a7e
--- /dev/null
+++ b/sys-block/partimage/files/partimage-0.6.4-dont-discard-error-message-in-batch-mode.patch
@@ -0,0 +1,61 @@
+--- partimage-0.6.4/src/client/main.cpp.pix 2004-02-04 01:57:36.000000000 +0100
++++ partimage-0.6.4/src/client/main.cpp 2005-10-20 17:02:36.000000000 +0200
+@@ -133,6 +133,12 @@
+ }*/
+ }
+
++void ensure_interface_is_non_interactive()
++{
++ delete g_interface;
++ g_interface = new CInterfaceNone("");
++}
++
+ // =======================================================
+ int main(int argc, char *argv[])
+ {
+@@ -568,8 +574,9 @@
+ goto beginMainWin;
+ }
+
+- if (!options.bBatchMode)
+- g_interface -> Error(excep, szImageFile, szDevice);
++ if (options.bBatchMode) ensure_interface_is_non_interactive();
++
++ g_interface -> Error(excep, szImageFile, szDevice);
+
+ showDebug(1, "\nFINAL ERROR\n\n");
+
+@@ -580,8 +587,10 @@
+ else
+ {
+ showDebug(1, "The file system of [%s] is [%s], and is not supported\n", szDevice, szFileSystem);
+- if (!options.bBatchMode)
+- g_interface->msgBoxError("The file system of [%s] is [%s], and is not supported", szDevice, szFileSystem);
++
++ if (options.bBatchMode) ensure_interface_is_non_interactive();
++
++ g_interface->msgBoxError("The file system of [%s] is [%s], and is not supported", szDevice, szFileSystem);
+ nRes = -1;
+ }
+ //#endif // DEVEL_SUPPORT
+@@ -661,7 +670,7 @@
+ // update the disk IO
+ if (options.bSync)
+ {
+- g_interface -> StatusLine(i18n("commiting buffer cache to disk."));
++ if (!options.bBatchMode) g_interface -> StatusLine(i18n("commiting buffer cache to disk."));
+ sync();
+ }
+
+--- partimage-0.6.4/src/client/interface_none.cpp.pix 2004-02-04 01:57:36.000000000 +0100
++++ partimage-0.6.4/src/client/interface_none.cpp 2005-10-20 17:03:01.000000000 +0200
+@@ -96,7 +96,8 @@
+ void CInterfaceNone::msgBoxError(char *title, ...) {
+ va_list al;
+ va_start(al,title);
+- message_only("Error", title, "", al, 0);
++ vfprintf(stderr,title,al);
++ fputc('\n',stderr);
+ va_end(al);
+ }
+
diff --git a/sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch b/sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch
new file mode 100644
index 000000000000..0c61a85673e7
--- /dev/null
+++ b/sys-block/partimage/files/partimage-0.6.4-save_file_and_rest_file_actions.patch
@@ -0,0 +1,127 @@
+--- partimage-0.6.4.orig/src/client/main.cpp 2006-10-14 14:09:50.000000000 +0200
++++ partimage-0.6.4/src/client/main.cpp 2006-10-14 14:00:30.000000000 +0200
+@@ -517,6 +517,10 @@
+ else if (strcmp(argv[optind], "imginfo")==0)
+ // show informations about the imagefile
+ nChoice = OPERATION_IMGINFO;
++ else if (strcmp(argv[optind], "save_file")==0)
++ nChoice = OPERATION_SAVE_FILE;
++ else if (strcmp(argv[optind], "rest_file")==0)
++ nChoice = OPERATION_REST_FILE;
+ else if (strcmp(argv[optind], "save_all")==0)
+ nChoice = OPERATION_SAVE_ALL;
+ else if (strcmp(argv[optind], "rest_all")==0)
+@@ -690,7 +694,35 @@
+ nRes = -1;
+ }
+ break;
+-
++
++ case OPERATION_SAVE_FILE:
++ showDebug(1, "action=SAVE_FILE\n");
++ try { save_file(szImageFile, &options); }
++ catch (CExceptions *excep)
++ {
++ showDebug(1, "save_file caught exception: %d\n", excep->GetExcept());
++
++ if (options.bBatchMode) ensure_interface_is_non_interactive();
++ g_interface -> Error(excep, szImageFile, "");
++
++ nRes = -1;
++ }
++ break;
++
++ case OPERATION_REST_FILE:
++ showDebug(1, "action=REST_FILE\n");
++ try { rest_file(szImageFile, &options); }
++ catch (CExceptions *excep)
++ {
++ showDebug(1, "rest_file caught exception: %d\n", excep->GetExcept());
++
++ if (options.bBatchMode) ensure_interface_is_non_interactive();
++ g_interface -> Error(excep, szImageFile, "");
++
++ nRes = -1;
++ }
++ break;
++
+ default: // exit
+ if (options.bSync)
+ {
+--- partimage-0.6.4.orig/src/client/misc.cpp 2006-10-14 14:09:50.000000000 +0200
++++ partimage-0.6.4/src/client/misc.cpp 2006-10-14 14:04:24.000000000 +0200
+@@ -2502,3 +2502,52 @@
+
+ RETURN;
+ }
++
++void save_file(char *szImageFile, COptions *options)
++{
++ BEGIN;
++ int in_offset = 0;
++ char *in = (char *) malloc(MAXPATHLEN);
++
++ CImage image(options);
++ image.set_szImageFilename(szImageFile);
++ image.openWriting();
++
++ while (1) {
++ int len = fread(in + in_offset, 1, MAXPATHLEN, stdin);
++ showDebug(1, "read %d chars on stdin\n", len);
++ if (!len) break;
++ in = (char *) realloc(in, MAXPATHLEN + (in_offset += len));
++ }
++ showDebug(1, "writing %d chars in %s\n", in_offset, szImageFile);
++ write_unsigned(&image, in_offset);
++ image.write((void *) in, in_offset, true);
++ free(in);
++
++ closeFilesSave(false, *options, &image, NULL);
++
++ RETURN;
++}
++
++void rest_file(char *szImageFile, COptions *options)
++{
++ BEGIN;
++
++ CImage image(options);
++
++ {
++ image.set_szImageFilename(szImageFile);
++ image.openReading();
++
++ unsigned int len = read_unsigned(&image);
++ char *s = (char *) malloc(len + 1);
++ image.read(s, len, true);
++ fwrite(s, 1, len, stdout);
++ free(s);
++
++ // since sfdisk.lst is not really nice to the library, we can't close the thread from procReadBuffer$
++ image.closeReading(false);
++ }
++
++ RETURN;
++}
+--- partimage-0.6.4.orig/src/client/misc.h 2006-10-14 14:09:50.000000000 +0200
++++ partimage-0.6.4/src/client/misc.h 2006-10-14 14:00:30.000000000 +0200
+@@ -47,6 +47,8 @@
+ void savePartition(char *szDevice, char *szImageName, /*char *szFilesystem, */COptions *options);
+ void restorePartition(char *szDevice, char *szImageName, COptions *options);
+ void restoreMbr(char *szImageFile, COptions *options);
++void save_file(char *szImageFile, COptions *options);
++void rest_file(char *szImageFile, COptions *options);
+ void save_all(char *szImageDir, COptions *options);
+ void rest_all(char *szImageDir, COptions *options);
+
+--- partimage-0.6.4.orig/src/client/partimage.h 2006-10-14 14:09:50.000000000 +0200
++++ partimage-0.6.4/src/client/partimage.h 2006-10-14 14:09:18.000000000 +0200
+@@ -96,6 +96,8 @@
+ #define OPERATION_EXIT 5
+ #define OPERATION_SAVE_ALL 6
+ #define OPERATION_REST_ALL 7
++#define OPERATION_SAVE_FILE 8
++#define OPERATION_REST_FILE 9
+
+ // returned by CExceptionsGUI::windowError
+ // user canceled the job
diff --git a/sys-block/partimage/files/partimage-0.6.4-varargs.patch b/sys-block/partimage/files/partimage-0.6.4-varargs.patch
new file mode 100644
index 000000000000..3ec8bd5d534f
--- /dev/null
+++ b/sys-block/partimage/files/partimage-0.6.4-varargs.patch
@@ -0,0 +1,11 @@
+--- partimage-0.6.4/src/client/imagefile.cpp.varargs 2004-02-03 19:57:36.000000000 -0500
++++ partimage-0.6.4/src/client/imagefile.cpp 2005-08-23 08:17:08.000000000 -0400
+@@ -470,7 +470,7 @@ void CImage::splitChangeImageFileWrite()
+ if (!fork()) // we're the child // no error check maid
+ execl("/tmp/partimage-shell",
+ get_szImageFilename(), get_szPath(),
+- get_szOriginalFilename(), get_dwVolumeNumber());
++ get_szOriginalFilename(), get_dwVolumeNumber(), (char *)NULL);
+ }
+
+ // wait for a keyboard keypress if need
diff --git a/sys-block/partimage/partimage-0.6.4-r4.ebuild b/sys-block/partimage/partimage-0.6.4-r4.ebuild
index 508d6fefac6f..81ad5430a8a5 100644
--- a/sys-block/partimage/partimage-0.6.4-r4.ebuild
+++ b/sys-block/partimage/partimage-0.6.4-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild,v 1.11 2006/10/05 03:02:26 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild,v 1.12 2006/10/14 16:01:37 xmerlin Exp $
WANT_AUTOMAKE="1.8"
@@ -61,6 +61,9 @@ src_unpack() {
epatch ${FILESDIR}/${P}-LP64-fixes.patch || die
epatch ${FILESDIR}/${P}-save_all_and_rest_all_actions.patch || die
epatch ${FILESDIR}/${P}-datadir-path.patch || die
+ epatch ${FILESDIR}/${P}-dont-discard-error-message-in-batch-mode.patch || die
+ epatch ${FILESDIR}/${P}-save_file_and_rest_file_actions.patch || die
+ epatch ${FILESDIR}/${P}-varargs.patch || die
}
src_compile() {