summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2008-07-04 21:16:55 +0000
committerMarkus Meier <maekke@gentoo.org>2008-07-04 21:16:55 +0000
commit507a5d5386488e4f971fe8502de607af31fa49ac (patch)
treecdab483c3c3ec4dc9e9b4b81265c1dac505f59dc /media-gfx
parentstable amd64, security bug 230633 (diff)
downloadhistorical-507a5d5386488e4f971fe8502de607af31fa49ac.tar.gz
historical-507a5d5386488e4f971fe8502de607af31fa49ac.tar.bz2
historical-507a5d5386488e4f971fe8502de607af31fa49ac.zip
revision bump for bug #222135; remove broken version
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.26-rc8 i686
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/qtpfsgui/ChangeLog9
-rw-r--r--media-gfx/qtpfsgui/Manifest11
-rw-r--r--media-gfx/qtpfsgui/files/qtpfsgui-1.9.2-trunk.patch156
-rw-r--r--media-gfx/qtpfsgui/qtpfsgui-1.9.2-r1.ebuild (renamed from media-gfx/qtpfsgui/qtpfsgui-1.9.2.ebuild)11
4 files changed, 179 insertions, 8 deletions
diff --git a/media-gfx/qtpfsgui/ChangeLog b/media-gfx/qtpfsgui/ChangeLog
index cfbdbc0729ec..0c27cda1b341 100644
--- a/media-gfx/qtpfsgui/ChangeLog
+++ b/media-gfx/qtpfsgui/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/qtpfsgui
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/qtpfsgui/ChangeLog,v 1.6 2008/05/02 22:27:40 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/qtpfsgui/ChangeLog,v 1.7 2008/07/04 21:16:55 maekke Exp $
+
+*qtpfsgui-1.9.2-r1 (04 Jul 2008)
+
+ 04 Jul 2008; Markus Meier <maekke@gentoo.org>
+ +files/qtpfsgui-1.9.2-trunk.patch, -qtpfsgui-1.9.2.ebuild,
+ +qtpfsgui-1.9.2-r1.ebuild:
+ revision bump for bug #222135; remove broken version
*qtpfsgui-1.9.2 (02 May 2008)
diff --git a/media-gfx/qtpfsgui/Manifest b/media-gfx/qtpfsgui/Manifest
index 9d5dd4159971..31f38aaa6713 100644
--- a/media-gfx/qtpfsgui/Manifest
+++ b/media-gfx/qtpfsgui/Manifest
@@ -1,16 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX qtpfsgui-1.9.2-trunk.patch 6650 RMD160 a4871cf796219f465401ad6bbd4ab0698aeeb351 SHA1 5fe75dcfb131617560cb9a6d82ee873f43ade7d5 SHA256 ab177b6887ab956e74776a69b5d6d541276a3e835d5de7718398457d7912a211
DIST qtpfsgui-1.9.1.tar.gz 1178024 RMD160 86af0c95d40a1bb7d0ba83e9407cc2393f4928bb SHA1 2c25d6762e5fa7f65b23bb43810c6eb89d15cc80 SHA256 8d94afd824b005959a7222ab6c7ca371167b2a61fbbc3282b6a20f97ea63645c
DIST qtpfsgui-1.9.2.tar.gz 1181880 RMD160 df43f95e65db5d94e0e92b562a815023d193b1da SHA1 a47bcf234318325273f64ede9f694052bc4102d8 SHA256 4462ec3ea8cf17db7b1ebe624d378bf4e239b80e0de2b2c6bbdf8c00cce16c8e
EBUILD qtpfsgui-1.9.1-r1.ebuild 1012 RMD160 d1654cb44655d38285c6c639d179c97483d672fb SHA1 77284454825d2728c8899dcf0d02b03a077c81a1 SHA256 1a2e82fa9f8dca3bebf5f5b30ea0c01a3e599d3ade7c749c2925c729ddaf0bc3
-EBUILD qtpfsgui-1.9.2.ebuild 1011 RMD160 1eac01fa77ff3b6e0b8197d5e6ca9b7c0d27cf51 SHA1 58156b410f92a4b996b9410331cf9d7d142767a7 SHA256 4eb6fea2104d1a6fb9e311de78406575b1f5a4644e80a79392e711660d8a1738
-MISC ChangeLog 1103 RMD160 d64e6fa42dbdcee03e2c481eb5bf9e68ab0ea3a3 SHA1 5bce71e500696c77412ebe3634fcbc24422a6c3c SHA256 7c13719d7228a32c9e14e8770d72ba48b96462b4c4f1cf2e80002ace20f84cfb
+EBUILD qtpfsgui-1.9.2-r1.ebuild 1132 RMD160 b2c8ee95b3660b36e202e347f03d36e35f4fa991 SHA1 3ee12dbbb9fa4b09169dae12f12cdc0db2bd0b5a SHA256 66157aae1cb4ebdadb2004eeb278832d8d14dce53a37301ad2c667501d5e1bc2
+MISC ChangeLog 1331 RMD160 7f8acdf8ad63b9b4fc6eb28fb0b48106a0f27429 SHA1 ed246a632e17e5c2809fdac1f0aba2debb7ef9c3 SHA256 eb937fe7ccf70db35b75030b6cb00f4229ef8c2a4b1c89dc0dc86f4168175902
MISC metadata.xml 937 RMD160 188c7d5bcc2a1f029b36fb4644b45e0d4c42f5f7 SHA1 54bb4fd8c2ff64ddab7173aa25792d588f4977c5 SHA256 03752b3db20bdd5f73b81a4c7ac7a6173b7825c55aef76758cd48db98e778ef6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkgblYcACgkQkKaRLQcq0GJKegCgqDdR5A8rqXAr8GHSvfCmjE1P
-C1QAnjQZevnqP4tQsXNr0laIGjQxZbiB
-=Vr91
+iEYEARECAAYFAkhuk5AACgkQkKaRLQcq0GJlBQCeJfxGARJ9S2JUIHkoI6FbvQbr
+tYoAoIl1cd5l3D80sL6oifXt6y68bs2C
+=U9+q
-----END PGP SIGNATURE-----
diff --git a/media-gfx/qtpfsgui/files/qtpfsgui-1.9.2-trunk.patch b/media-gfx/qtpfsgui/files/qtpfsgui-1.9.2-trunk.patch
new file mode 100644
index 000000000000..b817317b1af2
--- /dev/null
+++ b/media-gfx/qtpfsgui/files/qtpfsgui-1.9.2-trunk.patch
@@ -0,0 +1,156 @@
+Index: trunk/qtpfsgui/src/Fileformat/pfsoutldrimage.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Fileformat/pfsoutldrimage.cpp (revision 319)
++++ trunk/qtpfsgui/src/Fileformat/pfsoutldrimage.cpp (working copy)
+@@ -62,9 +62,9 @@
+ *(data + 2 + (y*width+x)*4) = ( clamp( (*R)( x, y )*255.f, 0, 255) );
+ *(data + 3 + (y*width+x)*4) = 0xff;
+ } else {
+- *(data + 3 + (y*width+x)*4) = ( clamp( (*B)( x, y )*255.f, 0, 255) );
++ *(data + 3 + (y*width+x)*4) = ( clamp( (*R)( x, y )*255.f, 0, 255) );
+ *(data + 2 + (y*width+x)*4) = ( clamp( (*G)( x, y )*255.f, 0, 255) );
+- *(data + 1 + (y*width+x)*4) = ( clamp( (*R)( x, y )*255.f, 0, 255) );
++ *(data + 1 + (y*width+x)*4) = ( clamp( (*B)( x, y )*255.f, 0, 255) );
+ *(data + 0 + (y*width+x)*4) = 0xff;
+ }
+ }
+Index: trunk/qtpfsgui/src/Common/gamma_and_levels.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Common/gamma_and_levels.cpp (revision 319)
++++ trunk/qtpfsgui/src/Common/gamma_and_levels.cpp (working copy)
+@@ -189,12 +189,21 @@
+ return;
+ }
+
+- //increment bins
+- for (int i=0; i<data.width()*data.height(); i+=accuracy) {
+- int v=qGray(*((QRgb*)(data.bits())+i));
+- assert(v>=0 && v<=255);
+- P[v] += 1;
+- }
++// if (data.format()==QImage::Format_Indexed8) {
++// //increment bins
++// for (int i=0; i<data.width()*data.height(); i+=accuracy) {
++// const unsigned char v=*((const unsigned char*)(data.bits())+i);
++// P[v] += 1;
++// }
++//
++// } else {
++ //increment bins
++ for (int i=0; i<data.width()*data.height(); i+=accuracy) {
++ int v=qGray(*((QRgb*)(data.bits())+i));
++ assert(v>=0 && v<=255);
++ P[v] += 1;
++ }
++// }
+
+ //find max
+ float max=-1;
+Index: trunk/qtpfsgui/src/Common/commandline.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Common/commandline.cpp (revision 319)
++++ trunk/qtpfsgui/src/Common/commandline.cpp (working copy)
+@@ -378,7 +378,7 @@
+ if (!saveHdrFilename.isEmpty()) {
+ VERBOSEPRINT("Saving to file %1.",saveHdrFilename);
+ QFileInfo qfi(saveHdrFilename);
+- const char* encodedName=QFile::encodeName(qfi.filePath()).constData();
++ char* encodedName=strdup(QFile::encodeName(qfi.filePath()).constData());
+ if (qfi.suffix().toUpper()=="EXR") {
+ writeEXRfile(HDR,encodedName);
+ } else if (qfi.suffix().toUpper()=="HDR") {
+@@ -397,6 +397,7 @@
+ } else {
+ error("Error, please specify a supported HDR file format.");
+ }
++ free(encodedName);
+ } else {
+ VERBOSEPRINT("NOT Saving HDR image to file. %1","");
+ }
+Index: trunk/qtpfsgui/src/Common/options.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Common/options.cpp (revision 319)
++++ trunk/qtpfsgui/src/Common/options.cpp (working copy)
+@@ -60,8 +60,9 @@
+ if (!settings.contains(KEY_EXTERNAL_DCRAW_OPTIONS))
+ settings.setValue(KEY_EXTERNAL_DCRAW_OPTIONS,"-T");
+ dcraw_options=settings.value(KEY_EXTERNAL_DCRAW_OPTIONS).toStringList();
+- if (!settings.contains(KEY_EXTERNAL_AIS_OPTIONS))
+- settings.setValue(KEY_EXTERNAL_AIS_OPTIONS,"-a aligned_");
++ //bug 2001032, remove spurious default QString "-a aligned_" value set by ver 1.9.2
++ if (!settings.contains(KEY_EXTERNAL_AIS_OPTIONS) || settings.value(KEY_EXTERNAL_AIS_OPTIONS).toString()=="-a aligned_")
++ settings.setValue(KEY_EXTERNAL_AIS_OPTIONS, QStringList() << "-a" << "aligned_");
+ align_image_stack_options=settings.value(KEY_EXTERNAL_AIS_OPTIONS).toStringList();
+ settings.endGroup();
+
+Index: trunk/qtpfsgui/src/Threads/loadHdrThread.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Threads/loadHdrThread.cpp (revision 319)
++++ trunk/qtpfsgui/src/Threads/loadHdrThread.cpp (working copy)
+@@ -58,7 +58,7 @@
+ QString extension = qfi.suffix().toUpper();
+ bool rawinput = (rawextensions.indexOf(extension)!=-1);
+ try {
+- const char* encodedFileName=QFile::encodeName(qfi.filePath()).constData();
++ char* encodedFileName=strdup(QFile::encodeName(qfi.filePath()).constData());
+ if (extension=="EXR") {
+ hdrpfsframe = readEXRfile(encodedFileName);
+ } else if (extension=="HDR") {
+@@ -123,6 +123,7 @@
+ emit load_failed(tr("ERROR: File %1 has unsupported extension.").arg(fname));
+ return;
+ }
++ free(encodedFileName);
+ #if 0
+ pfs::Channel *R,*G,*B;
+ hdrpfsframe->getRGBChannels( R, G, B );
+Index: trunk/qtpfsgui/src/HdrCreation/HdrCreationManager.cpp
+===================================================================
+--- trunk/qtpfsgui/src/HdrCreation/HdrCreationManager.cpp (revision 319)
++++ trunk/qtpfsgui/src/HdrCreation/HdrCreationManager.cpp (working copy)
+@@ -261,7 +261,7 @@
+ clearlists(false);
+ for (int i=0;i<fileList.size();i++) {
+ //align_image_stack can only output tiff files
+- const char* fname=QFile::encodeName(QString(qtpfsgui_options->tempfilespath + "/aligned_" + QString("%1").arg(i,4,10,QChar('0'))+".tif")).constData();
++ char* fname=strdup(QFile::encodeName(QString(qtpfsgui_options->tempfilespath + "/aligned_" + QString("%1").arg(i,4,10,QChar('0'))+".tif")).constData());
+ //qDebug("HCM: Loading back file name=%s", fname);
+ TiffReader reader(fname);
+ //if 8bit ldr tiff
+@@ -279,6 +279,7 @@
+ listmdrB.push_back(B);
+ }
+ QFile::remove(fname);
++ free(fname);
+ }
+ QFile::remove(QString(qtpfsgui_options->tempfilespath + "/hugin_debug_optim_results.txt"));
+ emit finishedAligning();
+Index: trunk/qtpfsgui/src/MainWindow/mainWindow.cpp
+===================================================================
+--- trunk/qtpfsgui/src/MainWindow/mainWindow.cpp (revision 319)
++++ trunk/qtpfsgui/src/MainWindow/mainWindow.cpp (working copy)
+@@ -192,7 +192,8 @@
+ QString fname=(fd->selectedFiles()).at(0);
+ if(!fname.isEmpty()) {
+ QFileInfo qfi(fname);
+- const char* encodedName=QFile::encodeName(qfi.filePath()).constData();
++ QString absoluteFileName=qfi.absoluteFilePath();
++ char* encodedName=strdup(QFile::encodeName(absoluteFileName).constData());
+ // if the new dir, the one just chosen by the user, is different from the one stored in the settings, update the settings.
+ if (RecentDirHDRSetting != qfi.path() )
+ // update internal field variable
+@@ -219,10 +220,11 @@
+ delete fd;
+ return;
+ }
+- setCurrentFile(fname);
++ free(encodedName);
++ setCurrentFile(absoluteFileName);
+ currenthdr->NeedsSaving=false;
+- currenthdr->filename=fname;
+- currenthdr->setWindowTitle(fname);
++ currenthdr->filename=absoluteFileName;
++ currenthdr->setWindowTitle(absoluteFileName);
+ }
+ } //if (fd->exec())
+ delete fd;
diff --git a/media-gfx/qtpfsgui/qtpfsgui-1.9.2.ebuild b/media-gfx/qtpfsgui/qtpfsgui-1.9.2-r1.ebuild
index d441f7782258..315a275c3d70 100644
--- a/media-gfx/qtpfsgui/qtpfsgui-1.9.2.ebuild
+++ b/media-gfx/qtpfsgui/qtpfsgui-1.9.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/qtpfsgui/qtpfsgui-1.9.2.ebuild,v 1.1 2008/05/02 22:27:40 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/qtpfsgui/qtpfsgui-1.9.2-r1.ebuild,v 1.1 2008/07/04 21:16:55 maekke Exp $
EAPI="1"
@@ -13,7 +13,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="doc"
DEPEND="
media-gfx/dcraw
@@ -29,8 +29,11 @@ src_unpack() {
unpack ${A}
cd "${S}"
+ epatch "${FILESDIR}/${P}-trunk.patch"
+
# no insane CXXFLAGS
sed -i -e '/QMAKE_CXXFLAGS/d' project.pro || die
+
}
src_compile() {
@@ -41,4 +44,8 @@ src_compile() {
src_install() {
emake INSTALL_ROOT="${D}" install || die
+ dodoc README TODO || die
+ if use doc ; then
+ dohtml -r html/ || die
+ fi
}