new scanner ebuild Reproducible: Always
Created attachment 178272 [details] gscan2pdf-0.9.27.ebuild
Created attachment 178274 [details] gtk2-imageview-0.04.ebuild
Created attachment 178276 [details] gtkimageview-1.6.3.ebuild
I'm going to take a look to this, I wanted to prepare an ebuild for this a long time ago already...
I get this error when emerging media-gfx/gtkimageview-1.6.3: checking whether the i686-pc-linux-gnu-gfortran linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so (cached) (cached) checking how to hardcode library paths into programs... immediate ./configure: line 20113: GNOME_COMMON_INIT: command not found ./configure: line 20114: syntax error near unexpected token `error' ./configure: line 20114: `GNOME_COMPILE_WARNINGS(error)' !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-gfx/gtkimageview-1.6.3/work/gtkimageview-1.6.3/config.log * * ERROR: media-gfx/gtkimageview-1.6.3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2943: Called econf * ebuild.sh, line 529: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed I hope I don't have to install gnome libs.
That's a missing dependency over gnome-common
(In reply to comment #6) > That's a missing dependency over gnome-common > Yes, installing gnome-common solved this issue.
Next error: >>> Compiling source in /var/tmp/portage/dev-perl/Gtk2-Ex-PodViewer-0.17/work/Gtk2-Ex-PodViewer-0.17 ... * Using ExtUtils::MakeMaker MakeMaker FATAL: prerequisites not found (Locale::gettext not installed) Please install these modules first and rerun 'perl Makefile.PL'. * * ERROR: dev-perl/Gtk2-Ex-PodViewer-0.17 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2800: Called perl-module_src_compile * environment, line 2227: Called perl-module_src_prep * environment, line 2280: Called die * The specific snippet of code: * echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none' PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE="build"?)"; * The die message: * Unable to build! (are you using USE="build"?) # emerge --search gettext * dev-perl/Locale-gettext Latest version available: 1.05 Latest version installed: 1.05
Could emerge dev-perl/Gtk2-Ex-PodViewer-0.18 But when I try to start gscan2pdf: $ gscan2pdf Can't locate Locale/gettext.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/bin/gscan2pdf line 117. BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 117.
(In reply to comment #8) > # emerge --search gettext > * dev-perl/Locale-gettext > Latest version available: 1.05 > Latest version installed: 1.05 (In reply to comment #9) > Can't locate Locale/gettext.pm in @INC (@INC contains: /etc/perl Where did dev-perl/Locale-gettext install Locale/gettext.pm? ( grep gettext.pm /var/db/pkg/dev-perl/Locale-gettext-1.05/CONTENTS ) Did you change USE=ithreads recently?
(In reply to comment #10) > (In reply to comment #9) > > Can't locate Locale/gettext.pm in @INC (@INC contains: /etc/perl > > Where did dev-perl/Locale-gettext install Locale/gettext.pm? > ( grep gettext.pm /var/db/pkg/dev-perl/Locale-gettext-1.05/CONTENTS ) # grep gettext.pm /var/db/pkg/dev-perl/Locale-gettext-1.05/CONTENTS obj /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Locale/gettext.pm cfb8f18915662ab571bc228d0507967c 1230260128 > Did you change USE=ithreads recently? Yes indeed, I had to for emerging mod_perl a few days ago: ERROR: www-apache/mod_perl-2.0.3-r2 failed. The die message: Need missing USE flag 'ithreads' in dev-lang/perl
If you change the ithreads useflag (you have to do it for dev-lang/perl and sys-devel/libperl), you have to reinstall the modules. Run `perl-cleaner --reallyall` to fix your system.
(In reply to comment #12) > Run `perl-cleaner --reallyall` to fix your system. This didn't hep. I know this is not the right place for support questions, but do you know any other way to get perl fixed again.
(In reply to comment #13) > (In reply to comment #12) > > Run `perl-cleaner --reallyall` to fix your system. To be more precise `perl-cleaner --reallyall` does nothing.
(In reply to comment #13) > (In reply to comment #12) > > Run `perl-cleaner --reallyall` to fix your system. > > This didn't hep. I know this is not the right place for support questions, So if reinstalling dev-perl/Locale-gettext doesn't solve your problems, please file a new bug and assign it to perl@gentoo.org.
(In reply to comment #15) > (In reply to comment #13) > > (In reply to comment #12) > > > Run `perl-cleaner --reallyall` to fix your system. The correct command `perl-cleaner reallyall` worked and now gscan2pdf works too. Thanks.
Comment on attachment 178276 [details] gtkimageview-1.6.3.ebuild a new and improved ebuild can be found at #192239
Created attachment 193316 [details] media-gfx/gscan2pdf-0.9.27.ebuild - fixed ebuild headers; - added missing checks and EAPI 2; - added missing dependencies (see blockers); - updated ebuilds of some dependencies (see blockers);
Comment on attachment 178274 [details] gtk2-imageview-0.04.ebuild deprecated see bug 192239 and bug 272303
*** Bug 157887 has been marked as a duplicate of this bug. ***
0.9.29 is available on http://gscan2pdf.sourceforge.net/. I used the gscan2pdf-0.9.27.ebuild and just renamed it. Intalls without problems, but gscan2pdf does not start, because forks.pm and Set::IntSpan are needed. After installing these two via CPAN it works fine.
After installing 0.9.27 gscan2pdf did not start due to dependency issues. After installing virtual/perl-Archive-Tar gscan2pdf started. Please add this perl module as dependency to the ebuild.
media-gfx/gscan2pdf-0.9.27.ebuild depends on media-gfx/unpaper which is not in tree (bug #172958). Please add bug #172958 as dependency into bugzilla.
Ooookay this should be updated to 0.9.29 I guess, any volunteer? ;)
Created attachment 206509 [details] media-gfx/gscan2pdf-0.9.29.ebuild Updated the ebuild to the last package version, added new dependencies and fixed declaration of 'media-gfx/unpaper' dependency.
Created attachment 206511 [details] metadata.xml the metadata.xml with the use flag descriptions.
Created attachment 206834 [details] media-gfx/gscan2pdf-0.9.29.ebuild added missing virtual/perl-Archive-Tar as reported by @Lars in comment #22.
After emerging gscan2pdf on x86 system, I ran into some missing runtime perl modules: forks.pm at /usr/bin/gscan2pdf line 106. Image/Magick.pm at /usr/bin/gscan2pdf line 121. which weren't in portage, so I installed them using g-cpan: g-cpan -i forks Image::Magick which pulled in: * perl-gcpan/forks * perl-gcpan/IO-CaptureOutput * perl-gcpan/Sys-SigAction * perl-gcpan/Acme-Damn There were a few other runtime perl modules which also needed to be installed from portage: Gtk2/ImageView.pm at/usr/bin/gscan2pdf line 111. Gtk2/Ex/Simple/List.pm at /usr/bin/gscan2pdf line 112. So I emerged: dev-perl/Gtk2-ImageView dev-perl/Gtk2-Ex-Simple-List dev-perl/List-MoreUtils perl-core/Scalar-List-Utils virtual/perl-Scalar-List-Utils
to build gscan2pdf-0.9.30, i had to add these to the RDEPEND variable in the ebuild file: x11-libs/goocanvas dev-perl/Goo-Canvas and had to add this via CPAN since i couldn't find an ebuild for it: Proc::Killfam
Created attachment 239539 [details] media-gfx/gscan2pdf-0.9.31.ebuild gscan2pdf-0.9.31 version bump. I had to add some more runtime dependencies: >=dev-perl/glib-perl-1.100-r1 dev-perl/Proc-ProcessTable dev-perl/Goo-Canvas I have also added cuneiform and ocropus use flags which pull in these: cuneiform? ( app-text/cuneiform ) ocropus? ( app-text/ocropus )
gscan2pdf-0.9.31 appears to build and install fine but hangs on start. No window appears and there is no output in the terminal. Running "gscan2pdf --debug": gscan2pdf 0.9.31 Using en_IE@euro locale Startup LC_NUMERIC C Running init Running sane_init Gtk2-Perl version 1.222 Built for 2.20.1 Running with 2.20.1 Using GtkImageView version 1.6.4 Using Gtk2::ImageView version 0.05 Using PDF::API2 version 0.57 $VAR1 = { 'frontend' => 'libsane-perl', 'Paper' => { 'US Legal' => { 'l' => 0, 'y' => 356, 'x' => 216, 't' => 0 }, 'US Letter' => { 'l' => 0, 'y' => 279, 'x' => 216, 't' => 0 }, 'A4' => { 'l' => 0, 'y' => 297, 'x' => 210, 't' => 0 } }, 'unsharp radius' => 0, 'window_maximize' => 1, 'ocr engine' => 'ocropus', 'layout' => 'single', 'unsharp amount' => 1, 'OCR output' => 'replace', 'OCR on scan' => 1, 'Page range' => 'all', 'window_height' => 600, 'user_defined_tools' => [ 'gimp %i' ], 'default filename' => '%a %y-%m-%d', 'rotate reverse' => 0, 'startup warning' => '', 'Dark threshold' => '0.12', 'pages to scan' => 1, 'Blank threshold' => '0.005', 'unpaper on scan' => 1, 'rotate facing' => 0, 'libsane-perl version' => '0.03', 'cache options' => 1, 'downsample dpi' => 150, 'window_width' => 800, 'threshold tool' => 80, 'quality' => 75, 'unsharp sigma' => 1, 'date offset' => 0, 'thumb panel' => 100, 'unsharp threshold' => '0.05', 'scan prefix' => '', 'SANE version' => '1.0.19', 'downsample' => '', 'restore window' => 1, 'pdf compression' => 'auto' };
media-gfx/gscan2pdf-0.9.29 that worked perfectly hangs on start-up now too. I guess it's because of perl upgrade to 5.12 or some of its dependecies. Actually, it's not indefinit hang. It just forks, creates TCP connection on localhost between the two processes and after some time it times out and main window appears.
Created attachment 254825 [details] media-gfx/gscan2pdf-0.9.31-r1 gscan2pdf requires >=dev-perl/fork-0.34 to run correctly. This should fix the bug described above.
Thanks. gscan2pdf-0.9.31-r1 with fork-0.34 starts fast now.
(In reply to comment #33) > Created an attachment (id=254825) [details] > media-gfx/gscan2pdf-0.9.31-r1 > > gscan2pdf requires >=dev-perl/fork-0.34 to run correctly. This should fix the > bug described above. > Ebuild works without problems now. Would be nice to see the ebuild in portage tree soon.
Created attachment 257574 [details, diff] Replace forks with threads Alternative to using forks is to back-port the attached change from current upstream development (combination of the links below). This does require perl with USE="ithreads", so DEPEND="dev-lang/perl[ithreads]" http://gscan2pdf.git.sourceforge.net/git/gitweb.cgi?p=gscan2pdf/gscan2pdf;a=commitdiff;h=449ff83d85182a037a15bb42d47579d677afa480;hp=b9ba2a611b50cdcf794bda7133cd1653cadbcd2c http://gscan2pdf.git.sourceforge.net/git/gitweb.cgi?p=gscan2pdf/gscan2pdf;a=commitdiff;h=a6110951d88420fe292f41c060651b7f56f952d8;hp=5973ae31af66d739af37f502eecb4ce083fae9ac
Created attachment 260993 [details] Can use either forks or threads, add ithread use flag This is ebuild that includes patch from http://bugs.gentoo.org/show_bug.cgi?id=254704#c36 In this ebuild added ithreads use flag, if you use ithreads use flag then patch used and forks excludes from dependencies.
Created attachment 268503 [details] ebuild update to 0.9.32 ebuild update to 0.9.32 Just removed the ithreads patch and useflag, and added dev-perl/Log-Log4perl as a dependency. Really powerful and useful app by the way. It would be nice to have it in portage.
(In reply to comment #38) > Created attachment 268503 [details] > ebuild update to 0.9.32 > > ebuild update to 0.9.32 > > Just removed the ithreads patch and useflag, and added dev-perl/Log-Log4perl as > a dependency. > > Really powerful and useful app by the way. It would be nice to have it in > portage. Version 0.9.32 requires dependency dev-lang/perl[ithreads] so ebuild should be fixed.
Created attachment 275783 [details, diff] gscan2pdf-0.9.32.ebuild requiring perl[ithreads]
Created attachment 289497 [details] updated ebuild version 1.0 +DEPEND="dev-lang/perl[ithreads] +dev-perl/Proc-ProcessTable +dev-perl/Readonly-XS +dev-perl/Goo-Canvas +dev-perl/Log-Log4perl
Created attachment 289499 [details] gscan2pdf-1.0.0.ebuild updated ebuild using gscan2pdf-0.9.32.ebuild
Created attachment 289501 [details] gscan2pdf-1.0.0.ebuild fiexed
(In reply to comment #43) > Created attachment 289501 [details] > gscan2pdf-1.0.0.ebuild fiexed Any reason why to depend on dev-perl/forks or dev-perl/prefork? Also you mix tabs and spaces in indentation.
(In reply to comment #43) > Created attachment 289501 [details] > gscan2pdf-1.0.0.ebuild fiexed 1.0.0 should RDEPEND dev-perl/HTML-Parser (lib/Gscan2pdf/Page.pm:11).
Created attachment 293461 [details] gscan2pdf-1.0.0-r1.ebuild I updated the ebuild provided by jamatik in Comment 43, making the changes suggested by Petr Pisar in Comment 44 and Comment 45. Clemmitt
also need RDEPEND on dev-perl/HTML-TokeParser-Simple $ cd gscan2pdf-1.0.0/lib/Gscan2pdf $ grep "^use " *.pm | grep "HTML::TokeParser" Page.pm:use HTML::TokeParser;
HTML::TokeParser is a module from HTML-Parser, not from HTML-TokeParser-Simple. HTML-Parser is already in RDEPEND.
Created attachment 311519 [details] gscan2pdf-1.0.4.ebuild version bump
At least version 1.0.4 depends on bug 414705 (dev-perl/Sane-0.50).
The 1.0.4 ebuuild works for me without adding any additional dependencies into my overlay. THank you!
The 1.0.4 ebuild worked for me as well. Additionally, copying the build to *-1.0.6 successfully built the latest version for me.
There's a dependence missing on dev-perl/HTML-Parser which provides HTML/TokeParser.pm needed by, at least, Gscan2pdf/Page.pm. It also needs dev-perl/Locale-gettext.
Created attachment 327236 [details] gscan2pdf-1.0.6.ebuild Same with small changes, mainly updated license and corrected dependencies. By the way, this bug should no longer depend on bug 288177 and bug 288181.
Created attachment 327238 [details] gscan2pdf-1.0.6.ebuild, variant 2 More binary package friendly ebuild. Better suited for my needs; everyone is free to choose his. Also the message about Thunderbird is removed - related bug is fixed upstream: https://bugs.launchpad.net/ubuntu/+source/gscan2pdf/+bug/202709 (if I had noticed it before, I would have removed the notice from the previous ebuild too).
After emerging the most recent media-gfx/gscan2pdf-1.1.0 from the sabayon overlay, gscan2pdf fails on my system with the following error message; open3: exec of unpaper --version failed at /usr/lib64/perl5/vendor_perl/5.16.1/Gscan2pdf/Document.pm line 1126. Perl exited with active threads: 2 running and unjoined 0 finished and unjoined 0 running and detached Emerging unpaper, fixed this. Perhaps unpaper may not be an optional dependency anymore.
Unpaper is still optional. I have dev-lang/perl 5.12.4-r1 and it works for me. (Actually, it turns out that version detection is broken also here when unpaper is not installed, but at least it doesn't fail.) Reason of this bug: IPC::Open3::open3 in your Perl version raises an exception as documented; it's not handled and the application aborts. In my older Perl's IPC::Open3 (1.05) it doesn't raise an exception. Gscan2pdf doesn't handle the correct behaviour from more recent Perls, and therefore needs to be fixed. https://sourceforge.net/tracker/?func=detail&aid=3591872&group_id=174140&atid=868098
Version 1.1.3 is available on http://gscan2pdf.sourceforge.net/
Created attachment 394354 [details] app-office/gscan2pdf-1.2.7.ebuild Bump to version 1.2.7. Works for me without any problems. Added use flags to easier depend on the optional packages. This may or may not be a good idea. Comments welcome.
Created attachment 403818 [details] media-gfx/gscan2pdf-1.2.7 with corrected dependencied This corrects previous ebuild which had misspelled dependencies or dependencies with unnecessary too high versions.
This is the only way to get pdf from scanners in a friendly manner (gui).
Created attachment 429050 [details] media-gfx/gscan2pdf-1.3.9 ebuild Ebuild for latest upstream version 1.3.9.
Just a quick note to say that the sabayon overlay has an ebuild as media-gfx/gscan2pdf-1.5.2 https://gpo.zugaina.org/media-gfx/gscan2pdf
Hello guys, Is there anyone who would be willing to maintain this ebuild through Proxy Maintainers project? https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
I offer to Proxy it, bug 604162. PR for ebuild here: https://github.com/gentoo/gentoo/pull/3287 Thanks to everyone on this bug it has been a source of news of new versions and pointers to changes to dependencies for a long time (plus the 2 years on bug 157887).
commit 82f3aa4407ad16afde14d2f382dabdc4c4c65f53 Author: Chris Mayo <aklhfex@gmail.com> AuthorDate: Thu Feb 9 19:38:11 2017 +0000 Commit: Göktürk Yüksek <gokturk@gentoo.org> CommitDate: Thu Feb 9 17:55:26 2017 -0500 media-gfx/gscan2pdf: New package Gentoo-Bug: https://bugs.gentoo.org/254704 Gentoo-Bug: https://bugs.gentoo.org/604162