perl-Image-Sane build failed

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
galmei
Posts: 166
Joined: 1. Jun 2018, 21:54

perl-Image-Sane build failed

Post by galmei »

Hello,

I tried to build the package gscan2pdf and failed. After I had to install several packages manually and the sourcery-triggered build process also installed other packages, the compilation ran until it stopped with perl-Image-Sane.

Attempts to build perl-Image-Sane-0.14 separately failed, too.

/usr/src/slapt-src/perl/perl-Image-Sane/Image-Sane-0.14/blib/arch/auto/Image/Sane/Sane.so is created and the first automated test seems to be successful. All following tests fail. As a consequence the creation of the package perl-Image-Sane is aborted.

What can be the cause?

errorlog from /var/log/sourcery/perl-Image-Sane-0.14

Code: Select all

The following packages will be fetched:
 perl-Image-Sane 
Fetching README...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%100%100%100%100%Done
Fetching perl-Image-Sane.SlackBuild...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0% 38% 38% 84% 84%100%100%100%100%Done
Fetching perl-Image-Sane.info...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%100%100%100%100%Done
Fetching slack-desc...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%100%100%100%100%Done
The following packages will be installed:
 perl-Image-Sane 
Fetching README...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%100%100%100%100%Done
Fetching perl-Image-Sane.SlackBuild...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0% 38% 38% 84% 84%100%100%100%100%Done
Fetching perl-Image-Sane.info...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%100%100%100%100%Done
Fetching slack-desc...  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%  0%100%100%100%100%Done
Image-Sane-0.14/
Image-Sane-0.14/Sane.xs
Image-Sane-0.14/Makefile.PL
Image-Sane-0.14/examples/
Image-Sane-0.14/examples/scanadf-perl
Image-Sane-0.14/examples/scanimage-perl
Image-Sane-0.14/Changes
Image-Sane-0.14/lib/
Image-Sane-0.14/lib/Image/
Image-Sane-0.14/lib/Image/Sane/
Image-Sane-0.14/lib/Image/Sane/Device.pm
Image-Sane-0.14/lib/Image/Sane.pm
Image-Sane-0.14/META.yml
Image-Sane-0.14/saneperl.h
Image-Sane-0.14/README
Image-Sane-0.14/META.json
Image-Sane-0.14/MANIFEST
Image-Sane-0.14/t/
Image-Sane-0.14/t/pod.t
Image-Sane-0.14/t/data.t
Image-Sane-0.14/t/90_MANIFEST.t
Image-Sane-0.14/t/non-blocking.t
Image-Sane-0.14/t/1_init.t
Image-Sane-0.14/t/err.t
Image-Sane-0.14/t/enums.t
Image-Sane-0.14/t/perlcriticrc
Image-Sane-0.14/t/81_scanimage-perl.t
Image-Sane-0.14/t/91_critic.t
Image-Sane-0.14/t/options.t
Image-Sane-0.14/typemap
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Image::Sane
Writing MYMETA.yml and MYMETA.json
cp lib/Image/Sane.pm blib/lib/Image/Sane.pm
cp lib/Image/Sane/Device.pm blib/lib/Image/Sane/Device.pm
Running Mkbootstrap for Sane ()
chmod 644 "Sane.bs"
"/usr/bin/perl5.22.2" -MExtUtils::Command::MM -e 'cp_nonempty' -- Sane.bs blib/arch/auto/Image/Sane/Sane.bs 644
"/usr/bin/perl5.22.2" "/usr/share/perl5/ExtUtils/xsubpp"  -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/usr/src/slapt-src/perl/perl-Image-Sane/Image-Sane-0.14/typemap'  Sane.xs > Sane.xsc
mv Sane.xsc Sane.c
cc -c  -I.  -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -fPIC   -DVERSION=\"0.14\" -DXS_VERSION=\"0.14\" -fPIC "-I/usr/lib64/perl5/CORE"   Sane.c
rm -f blib/arch/auto/Image/Sane/Sane.so
LD_RUN_PATH="/usr/lib64" cc  -shared -O2 -fPIC -L/usr/local/lib -fstack-protector-strong Sane.o  -o blib/arch/auto/Image/Sane/Sane.so  \
   -lsane   \
  
chmod 755 blib/arch/auto/Image/Sane/Sane.so
Manifying 1 pod document
"/usr/bin/perl5.22.2" -MExtUtils::Command::MM -e 'cp_nonempty' -- Sane.bs blib/arch/auto/Image/Sane/Sane.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl5.22.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1_init.t ............. ok
Output format is not set, using pnm as a default.

#   Failed test '--device=test --test 2>&1'
#   at t/81_scanimage-perl.t line 41.
#          got: 'scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame, 8 bits/sample
# scanimage: reading one scanline, 157 bytes...	PASS
# scanimage: reading one byte...		PASS
# scanimage: stepped read, 2 bytes... 	PASS
# scanimage: stepped read, 4 bytes... 	PASS
# scanimage: stepped read, 8 bytes... 	PASS
# scanimage: stepped read, 16 bytes... 	PASS
# scanimage: stepped read, 32 bytes... 	PASS
# scanimage: stepped read, 64 bytes... 	PASS
# scanimage: stepped read, 128 bytes... 	PASS
# scanimage: stepped read, 256 bytes... 	PASS
# scanimage: stepped read, 255 bytes... 	PASS
# scanimage: stepped read, 127 bytes... 	PASS
# scanimage: stepped read, 63 bytes... 	PASS
# scanimage: stepped read, 31 bytes... 	PASS
# scanimage: stepped read, 15 bytes... 	PASS
# scanimage: stepped read, 7 bytes... 	PASS
# scanimage: stepped read, 3 bytes... 	PASS
# '
#     expected: 'Output format is not set, using pnm as a default.
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame, 8 bits/sample
# scanimage: reading one scanline, 157 bytes...	PASS
# scanimage: reading one byte...		PASS
# scanimage: stepped read, 2 bytes... 	PASS
# scanimage: stepped read, 4 bytes... 	PASS
# scanimage: stepped read, 8 bytes... 	PASS
# scanimage: stepped read, 16 bytes... 	PASS
# scanimage: stepped read, 32 bytes... 	PASS
# scanimage: stepped read, 64 bytes... 	PASS
# scanimage: stepped read, 128 bytes... 	PASS
# scanimage: stepped read, 256 bytes... 	PASS
# scanimage: stepped read, 255 bytes... 	PASS
# scanimage: stepped read, 127 bytes... 	PASS
# scanimage: stepped read, 63 bytes... 	PASS
# scanimage: stepped read, 31 bytes... 	PASS
# scanimage: stepped read, 15 bytes... 	PASS
# scanimage: stepped read, 7 bytes... 	PASS
# scanimage: stepped read, 3 bytes... 	PASS
# '

#   Failed test '--device=test --depth 1 --test 2>&1'
#   at t/81_scanimage-perl.t line 41.
#          got: 'scanimage: scanning image of size 157x196 pixels at 1 bits/pixel
# scanimage: acquiring gray frame, 1 bits/sample
# scanimage: reading one scanline, 20 bytes...	PASS
# scanimage: reading one byte...		PASS
# scanimage: stepped read, 2 bytes... 	PASS
# scanimage: stepped read, 4 bytes... 	PASS
# scanimage: stepped read, 8 bytes... 	PASS
# scanimage: stepped read, 16 bytes... 	PASS
# scanimage: stepped read, 32 bytes... 	PASS
# scanimage: stepped read, 31 bytes... 	PASS
# scanimage: stepped read, 15 bytes... 	PASS
# scanimage: stepped read, 7 bytes... 	PASS
# scanimage: stepped read, 3 bytes... 	PASS
# '
#     expected: 'Output format is not set, using pnm as a default.
# scanimage: scanning image of size 157x196 pixels at 1 bits/pixel
# scanimage: acquiring gray frame, 1 bits/sample
# scanimage: reading one scanline, 20 bytes...	PASS
# scanimage: reading one byte...		PASS
# scanimage: stepped read, 2 bytes... 	PASS
# scanimage: stepped read, 4 bytes... 	PASS
# scanimage: stepped read, 8 bytes... 	PASS
# scanimage: stepped read, 16 bytes... 	PASS
# scanimage: stepped read, 32 bytes... 	PASS
# scanimage: stepped read, 31 bytes... 	PASS
# scanimage: stepped read, 15 bytes... 	PASS
# scanimage: stepped read, 7 bytes... 	PASS
# scanimage: stepped read, 3 bytes... 	PASS
# '

#   Failed test '--device=test --batch-count=2 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
#   at t/81_scanimage-perl.t line 41.
#          got: 'Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# Scanned page 2. (scanner status = 5)
# Batch terminated, 2 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
#     expected: 'Output format is not set, using pnm as a default.
# Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# Scanned page 2. (scanner status = 5)
# Batch terminated, 2 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '

#   Failed test '--verbose --device=test --batch-count=2 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
#   at t/81_scanimage-perl.t line 41.
#          got: 'Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 2. (scanner status = 5)
# Batch terminated, 2 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
#     expected: 'Output format is not set, using pnm as a default.
# Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 2. (scanner status = 5)
# Batch terminated, 2 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '

#   Failed test '--verbose --device=test --source="Automatic Document Feeder" --batch 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
#   at t/81_scanimage-perl.t line 41.
#          got: 'Scanning infinity pages, incrementing by 1, numbering from 1
# Scanning page 1
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 2. (scanner status = 5)
# Scanning page 3
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 3. (scanner status = 5)
# Scanning page 4
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 4. (scanner status = 5)
# Scanning page 5
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 5. (scanner status = 5)
# Scanning page 6
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 6. (scanner status = 5)
# Scanning page 7
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 7. (scanner status = 5)
# Scanning page 8
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 8. (scanner status = 5)
# Scanning page 9
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 9. (scanner status = 5)
# Scanning page 10
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 10. (scanner status = 5)
# Scanning page 11
# scanimage: sane_start: Document feeder out of documents
# Batch terminated, 10 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
#     expected: 'Output format is not set, using pnm as a default.
# Scanning infinity pages, incrementing by 1, numbering from 1
# Scanning page 1
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 2. (scanner status = 5)
# Scanning page 3
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 3. (scanner status = 5)
# Scanning page 4
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 4. (scanner status = 5)
# Scanning page 5
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 5. (scanner status = 5)
# Scanning page 6
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 6. (scanner status = 5)
# Scanning page 7
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 7. (scanner status = 5)
# Scanning page 8
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 8. (scanner status = 5)
# Scanning page 9
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 9. (scanner status = 5)
# Scanning page 10
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 10. (scanner status = 5)
# Scanning page 11
# scanimage: sane_start: Document feeder out of documents
# Batch terminated, 10 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
# Looks like you failed 5 tests of 6.
t/81_scanimage-perl.t .. 
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/6 subtests 
t/90_MANIFEST.t ........ ok
t/91_critic.t .......... skipped: Author test.  Set $ENV{TEST_AUTHOR} to a true value to run.
t/data.t ............... ok
t/enums.t .............. ok
t/err.t ................ ok
t/non-blocking.t ....... ok
t/options.t ............ ok
t/pod.t ................ skipped: Test::Pod 1.00 required for testing POD

Test Summary Report
-------------------
t/81_scanimage-perl.t (Wstat: 1280 Tests: 6 Failed: 5)
  Failed tests:  2-6
  Non-zero exit status: 5
Files=10, Tests=326,  5 wallclock secs ( 0.20 usr  0.04 sys +  3.34 cusr  0.45 csys =  4.03 CPU)
Result: FAIL
Failed 1/10 test programs. 5/326 subtests failed.
Makefile:1039: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
fakeroot -- sh perl-Image-Sane.SlackBuild Failed
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: perl-Image-Sane build failed

Post by gapan »

Yep, I got the same problem here. Try this:

Code: Select all

cd /tmp
mkdir perl-Image-Sane
cd perl-Image-sane
cp /usr/src/slapt-src/perl/perl-Image-Sane/* ./
sed -i "/make test/d" perl-Image-Sane.SlackBuild
fakeroot sh ./perl-Image-Sane.SlackBuild
sudo spkg /tmp/perl-Image-Sane-0.14-x86_64-1_SBo.tgz
sudo spi -i perl-Gtk3 perl-html-parser perl-html-tagset perl-Data-UUID
sudo spi -i gscan2pdf
There's a lot of dependencies apparently missing as you can see. This will install gscan2pdf, but it still won't run. It seems that there is a dependency that is not available in SBo. I don't think anyone at SBo tested it recently...

Code: Select all

$ gscan2pdf 
Can't locate Proc/Killfam.pm in @INC (you may need to install the Proc::Killfam module) (@INC contains: /home/george/.opam/system/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 29.
So...

Code: Select all

sudo spi -i cpan2tgz
sudo cpan2tgz Proc:Killfam
that still won't be enough...

Code: Select all

sudo spi -i perl-Set-IntSpan perl-PDF-API2 perl-Carp-Clan
and that's still not enough since it says it needs Gtk3::SimpleList, which isn't available either...

Code: Select all

sudo cpan2tgz Gtk3::SimpleList
still not there...

Code: Select all

sudo spi -i goocanvas2
not yet...

Code: Select all

sudo spi -i moreutils perl-List-MoreUtils perl-Exporter-Tiny perl-Filesys-Df
and it starts!

Don't know if it actually works since I don't have a scanner. Which brings me to: what's wrong with simple-scan ot even xsane? All that seems like a lot of trouble.

edit: wow, I just realized I installed 38 packages in total on my system for gscan2pdf to run. :shock:
Image
Image
galmei
Posts: 166
Joined: 1. Jun 2018, 21:54

Re: perl-Image-Sane build failed

Post by galmei »

Thanks gapan for the very well explained help. It is running now. I just had to install pdftk additionally.
gapan wrote: 2. Dec 2020, 12:21Which brings me to: what's wrong with simple-scan ot even xsane?
Nothing is wrong. I use xsane regularly. Now I needed to merge PDF scans into multi-page documents. gscan2pdf can do this while scanning and can also merge already existing PDFs. Did this already before on more complicated way. I just discovered that Xsane can create multi-page documents since the change from xsane-0.98b to 0.99. This might have made the effort with gscan2pdf superfluous.
gapan wrote: 2. Dec 2020, 12:21All that seems like a lot of trouble.

edit: wow, I just realized I installed 38 packages in total on my system for gscan2pdf to run.
I am really sorry to have upset you. :oops:

Thank you very much again for your help.
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: perl-Image-Sane build failed

Post by gapan »

galmei wrote: 3. Dec 2020, 11:39 I am really sorry to have upset you. :oops:
No, don't worry, you haven't. I was just surprised.

Glad that it works now.

And yes, I already had pdftk installed. I use it regularly to merge/split pdf files. Since gcc-java has now been removed from current, it won't be available in the next release though... :cry:
Image
Image
galmei
Posts: 166
Joined: 1. Jun 2018, 21:54

Re: perl-Image-Sane build failed

Post by galmei »

I am exploring pdftk right now. Pretty sure the program is sufficient for my purposes.
gapan wrote: 3. Dec 2020, 14:17 And yes, I already had pdftk installed. I use it regularly to merge/split pdf files. Since gcc-java has now been removed from current, it won't be available in the next release though... :cry:
That would be a pity. Maybe there is a way to compensate for the loss of gcc-java. I could ask the author Sid Steward if he sees a solution.

#

Here I would like to report a potential bug concerning Sourcery. To get English messages during the error search, I called sourcery like this:

Code: Select all

[~]$ LANG=en_US.utf8 sourcery
There was no password request and sourcery worked. If then write operations are done in an environment owned by root, the process aborted with message:

Code: Select all

Traceback (most recent call last):
  File "/usr/sbin/sourcery", line 693, in on_button_summary_apply_clicked
    self.execute_pending()
  File "/usr/sbin/sourcery", line 870, in execute_pending
    retval = self.fetchpkg(pkg, pkgver)
  File "/usr/sbin/sourcery", line 738, in fetchpkg
    f = open(logfile, 'w')
IOError: [Errno 13] Permission denied: '/var/log/sourcery/perl-Image-Sane-0.14'
[~]$
If Sourcery can be used without a password, a security hole might exist. Sourcery asks for the password during normal call from the menu and the write operations are done under the correct rights, as you know.

I bypassed the problem by calling the following command:

Code: Select all

[~]$ LANG=en_US.utf8 sudo sourcery
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: perl-Image-Sane build failed

Post by gapan »

galmei wrote: 6. Dec 2020, 20:58 That would be a pity. Maybe there is a way to compensate for the loss of gcc-java. I could ask the author Sid Steward if he sees a solution.
I'll probably try to come up with a something like bundling all required libraries from 14.1 so that we can keep it in. It's really an indispensable tool for me.
galmei wrote: 6. Dec 2020, 20:58 Here I would like to report a potential bug concerning Sourcery. To get English messages during the error search, I called sourcery like this:

Code: Select all

[~]$ LANG=en_US.utf8 sourcery
Huh. I guess I never thought to check for that. Thanks.
Image
Image
Post Reply