From: "Alexandre Restovtsev" <tetromino@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: app-arch/file-roller/files/, app-arch/file-roller/
Date: Wed, 20 Jul 2011 06:44:38 +0000 (UTC) [thread overview]
Message-ID: <dfc5d33fb8cf8cd6d93203ca8f37686053ed6236.tetromino@gentoo> (raw)
commit: dfc5d33fb8cf8cd6d93203ca8f37686053ed6236
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
AuthorDate: Wed Jul 20 04:25:31 2011 +0000
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Wed Jul 20 05:18:08 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=dfc5d33f
app-arch/file-roller: 3.0.2 → 3.0.2-r1
Fix nautilus dependency (a gtk3 file-roller plugin will not work with a
gtk2 nautilus). Add an upstream patch to fix pointer arithmetic in path
parsing in 7z files.
---
...er-3.0.2.ebuild => file-roller-3.0.2-r1.ebuild} | 5 ++-
app-arch/file-roller/file-roller-9999.ebuild | 2 +-
.../file-roller-3.0.2-pointer-arithmetic.patch | 35 ++++++++++++++++++++
3 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/app-arch/file-roller/file-roller-3.0.2.ebuild b/app-arch/file-roller/file-roller-3.0.2-r1.ebuild
similarity index 92%
rename from app-arch/file-roller/file-roller-3.0.2.ebuild
rename to app-arch/file-roller/file-roller-3.0.2-r1.ebuild
index 9bccd68..6e14bc2 100644
--- a/app-arch/file-roller/file-roller-3.0.2.ebuild
+++ b/app-arch/file-roller/file-roller-3.0.2-r1.ebuild
@@ -26,7 +26,7 @@ fi
RDEPEND=">=dev-libs/glib-2.25.5:2
>=x11-libs/gtk+-3.0.2:3
sys-apps/file
- nautilus? ( >=gnome-base/nautilus-2.22.2 )
+ nautilus? ( >=gnome-base/nautilus-3.0.0 )
packagekit? ( app-admin/packagekit-base )
"
DEPEND="${RDEPEND}
@@ -57,6 +57,9 @@ src_prepare() {
# Use absolute path to GNU tar since star doesn't have the same
# options. On Gentoo, star is /usr/bin/tar, GNU tar is /bin/tar
epatch "${FILESDIR}"/${PN}-2.10.3-use_bin_tar.patch
+
+ # Upstream patch to fix path parsing in 7z files, will be in next release
+ epatch "${FILESDIR}/${P}-pointer-arithmetic.patch"
}
pkg_postinst() {
diff --git a/app-arch/file-roller/file-roller-9999.ebuild b/app-arch/file-roller/file-roller-9999.ebuild
index 9bccd68..1b36eeb 100644
--- a/app-arch/file-roller/file-roller-9999.ebuild
+++ b/app-arch/file-roller/file-roller-9999.ebuild
@@ -26,7 +26,7 @@ fi
RDEPEND=">=dev-libs/glib-2.25.5:2
>=x11-libs/gtk+-3.0.2:3
sys-apps/file
- nautilus? ( >=gnome-base/nautilus-2.22.2 )
+ nautilus? ( >=gnome-base/nautilus-3.0.0 )
packagekit? ( app-admin/packagekit-base )
"
DEPEND="${RDEPEND}
diff --git a/app-arch/file-roller/files/file-roller-3.0.2-pointer-arithmetic.patch b/app-arch/file-roller/files/file-roller-3.0.2-pointer-arithmetic.patch
new file mode 100644
index 0000000..d535e2c
--- /dev/null
+++ b/app-arch/file-roller/files/file-roller-3.0.2-pointer-arithmetic.patch
@@ -0,0 +1,35 @@
+From 3d7fa24ca267e333d7406eff38ec02b519110ecc Mon Sep 17 00:00:00 2001
+From: Iain Nicol <iainn@src.gnome.org>
+Date: Sun, 29 May 2011 21:50:58 +0000
+Subject: Pointer arithmetic fixes for end of string access
+
+[bug #651416]
+---
+diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
+index 3f66338..5e505fa 100644
+--- a/src/fr-command-7z.c
++++ b/src/fr-command-7z.c
+@@ -158,7 +158,7 @@ list__process_line (char *line,
+ fdata->original_path = g_strdup (fields[1]);
+ fdata->full_path = g_strconcat ((fdata->original_path[0] != '/') ? "/" : "",
+ fdata->original_path,
+- (fdata->dir && (fdata->original_path[strlen (fdata->original_path - 1)] != '/')) ? "/" : "",
++ (fdata->dir && (fdata->original_path[strlen (fdata->original_path) - 1] != '/')) ? "/" : "",
+ NULL);
+ }
+ else if (strcmp (fields[0], "Folder") == 0) {
+diff --git a/src/fr-window.c b/src/fr-window.c
+index 743c8fe..db8c8c6 100644
+--- a/src/fr-window.c
++++ b/src/fr-window.c
+@@ -1236,7 +1236,7 @@ fr_window_dir_exists_in_archive (FrWindow *window,
+ return TRUE;
+ }
+ else if (fdata->dir
+- && (fdata->full_path[strlen (fdata->full_path)] != '/')
++ && (fdata->full_path[strlen (fdata->full_path) - 1] != '/')
+ && (strncmp (dir_name, fdata->full_path, dir_name_len - 1) == 0))
+ {
+ return TRUE;
+--
+cgit v0.9
next reply other threads:[~2011-07-20 6:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 6:44 Alexandre Restovtsev [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-07-26 8:29 [gentoo-commits] proj/gnome:gnome-next commit in: app-arch/file-roller/files/, app-arch/file-roller/ Alexandre Restovtsev
2011-08-20 11:01 Alexandre Restovtsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dfc5d33fb8cf8cd6d93203ca8f37686053ed6236.tetromino@gentoo \
--to=tetromino@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox