Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549260 - New package request: app-text/diff-pdf
Summary: New package request: app-text/diff-pdf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL: https://github.com/vslavik/diff-pdf
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-12 12:19 UTC by Erik Quaeghebeur
Modified: 2019-02-19 14:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for diff-pdf v0.2 release (diff-pdf-0.2.ebuild,968 bytes, text/plain)
2015-09-04 01:39 UTC, Jesse Fox
Details
ebuild for diff-pdf git repo (diff-pdf-9999.ebuild,1015 bytes, text/plain)
2015-09-04 01:44 UTC, Jesse Fox
Details
Cleaned up diff-pdf-0.2 ebuild (diff-pdf-0.2.ebuild,748 bytes, text/plain)
2015-09-04 02:39 UTC, Jesse Fox
Details
Cleaned up diff-pdf-9999 ebuild (diff-pdf-9999.ebuild,743 bytes, text/plain)
2015-09-04 02:40 UTC, Jesse Fox
Details
diff-pdf-0.3.ebuild (diff-pdf-0.3.ebuild,1.25 KB, text/plain)
2019-02-16 23:02 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2015-05-12 12:19:38 UTC
diff-pdf is a visual pdf-comparison package (and distinct in functionality from diffpdf)

See: https://github.com/vslavik/diff-pdf
Comment 1 Adam Feldman gentoo-dev 2015-05-12 21:08:08 UTC
Whoops, typo.  Sorry about that.
Comment 2 Jesse Fox 2015-09-04 01:39:24 UTC
Created attachment 410958 [details]
ebuild for diff-pdf v0.2 release
Comment 3 Jesse Fox 2015-09-04 01:44:48 UTC
Created attachment 410960 [details]
ebuild for diff-pdf git repo

The project's github page lists dependencies as:
* wxWidgets >= 2.8.11
* Cairo >= 1.4
* Poppler >= 0.10

This ebuild seems like its working well for me, but I'm new at this so it could be buggy.
Comment 4 Jesse Fox 2015-09-04 02:39:58 UTC
Created attachment 410962 [details]
Cleaned up diff-pdf-0.2 ebuild
Comment 5 Jesse Fox 2015-09-04 02:40:35 UTC
Created attachment 410964 [details]
Cleaned up diff-pdf-9999 ebuild
Comment 6 Michael Orlitzky gentoo-dev 2019-02-16 23:02:45 UTC
Created attachment 565572 [details]
diff-pdf-0.3.ebuild

I'm planning on adding the latest version of diff-pdf to the tree. Can you please give this ebuild a try?

I've tested the dependencies as well as I can without crashing my system, but there are some differences between mine and yours. If you see any mistakes in my (R)DEPEND, that would be especially helpful.
Comment 7 Erik Quaeghebeur 2019-02-17 20:22:19 UTC
(In reply to Michael Orlitzky from comment #6)
> Created attachment 565572 [details]
> diff-pdf-0.3.ebuild
> 
> I'm planning on adding the latest version of diff-pdf to the tree. Can you
> please give this ebuild a try?
It seems the required wxGTK is not in portage anymore:

emerge: there are no ebuilds to satisfy ">=x11-libs/wxGTK-2.8.11:2.8[X]".
Comment 8 Michael Orlitzky gentoo-dev 2019-02-17 22:25:49 UTC
(In reply to Erik Quaeghebeur from comment #7)
> 
> It seems the required wxGTK is not in portage anymore:

That's the main reason I didn't pick this up earlier... but version 0.3 was released a few days ago with updated dependencies. I uploaded a new ebuild (diff-pdf-0.3.ebuild) attached to this bug. Can you try that one instead?
Comment 9 Erik Quaeghebeur 2019-02-18 06:27:36 UTC
(In reply to Michael Orlitzky from comment #8)
> 
> I uploaded a new ebuild
> (diff-pdf-0.3.ebuild) attached to this bug. Can you try that one instead?

$ diff-pdf 
Gtk-Message: 07:25:28.739: Failed to load module "canberra-gtk-module"

So I guess some dependency is missing.
Comment 10 Michael Orlitzky gentoo-dev 2019-02-18 15:21:33 UTC
(In reply to Erik Quaeghebeur from comment #9)
> 
> $ diff-pdf 
> Gtk-Message: 07:25:28.739: Failed to load module "canberra-gtk-module"
> 
> So I guess some dependency is missing.

Does diff-pdf still function after that error message?

Canberra is for sound, and I don't think diff-pdf uses any sound libraries. But, diff-pdf DOES load a bunch of wxGTK stuff, so it's possible that it's showing you an unrelated GTK error. In other words, that error might be displayed if you start any other wxGTK application from the command-line.

In any case, thanks for testing.
Comment 11 Erik Quaeghebeur 2019-02-18 22:22:22 UTC
(In reply to Michael Orlitzky from comment #10)
> Does diff-pdf still function after that error message?
No, it does not start.
Comment 12 Michael Orlitzky gentoo-dev 2019-02-19 00:43:48 UTC
Everything I can find suggests that this is a problem with GTK (e.g. bug 358131), but I don't like the fact that it prevents diff-pdf from starting.

Are you running diff-pdf with arguments? Note that with no arguments it will do nothing:

  $ diff-pdf
  Usage: diff-pdf [-h] [-v] [--output-diff <str>] [--view] file1.pdf file2.pdf
    -h, --help         	show this help message
    -v, --verbose      	be verbose
    --output-diff=<str>	output differences to given PDF file
    --view             	view the differences in a window
  The required parameter 'file1.pdf' was not specified.


To make anything happen, I have to use

  $ diff-pdf --view prev.pdf new.pdf

Aside from that, I can only think of the usual see-what-sticks advice:

  * Try updating @world,
  * Run "emerge --depclean"
  * Run "revdep-rebuild"
  * Run "strace" on diff-pdf to see what's going on when it crashes
  * Run "ldd /usr/bin/diff-pdf" to make sure that it's not linked against
    something that isn't there

And if none of those things work... post your emerge --info and I'll see if I can get someone who knows more about GTK to take a look.
Comment 13 Erik Quaeghebeur 2019-02-19 07:17:38 UTC
(In reply to Michael Orlitzky from comment #12)
> Are you running diff-pdf with arguments? Note that with no arguments it will
> do nothing:
D'oh! That was it. Sorry about that.

It seems to work fine. The Gtk message I can live with.
Comment 14 Larry the Git Cow gentoo-dev 2019-02-19 14:26:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc3af652207b2bfa99af736802d98cb78b837a9

commit 0cc3af652207b2bfa99af736802d98cb78b837a9
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2019-02-16 17:30:19 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2019-02-19 14:22:56 +0000

    app-text/diff-pdf: new package to visually compare two PDF files.
    
    This has been an open request (and desire of mine) for a while, but
    the older releases depended on the deprecated 2.8 slot of wxGTK.
    However a new release was recently made with all of the upstream
    improvements from the past few years, so it is now possible to
    package this properly. Here it is.
    
    Thanks to Erik Quaeghebeur who opened the package request bug,
    supplied an ebuild, and helped me do some testing.
    
    Closes: https://bugs.gentoo.org/549260
    Reported-by: Erik Quaeghebeur
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 app-text/diff-pdf/Manifest            |  1 +
 app-text/diff-pdf/diff-pdf-0.3.ebuild | 39 +++++++++++++++++++++++++++++++++++
 app-text/diff-pdf/metadata.xml        |  8 +++++++
 3 files changed, 48 insertions(+)
Comment 15 Michael Orlitzky gentoo-dev 2019-02-19 14:39:05 UTC
Oh, shit. I didn't realize the two ebuilds were attached by somebody else. I started from scratch, but they were helpful in particular for the "poppler[cairo]" dependency. So thanks Jesse, and I apologize for the mis-attribution.