Re: [sane-devel] Getting Alpine Linux sane-backends builds compiler warning free

2017-07-28 Thread Valery Kartel
Hi,

libieee1284 is accepted, so I push a asne-backends PR with improvements
https://github.com/alpinelinux/aports/pull/2001

2017-07-25 12:24 GMT+03:00 Valery Kartel :

> Hi, Olaf
>
> I pushed a PR for libieee1284, so waiting for accept it.
> https://github.com/alpinelinux/aports/pull/1982
>
>
> And now I playing with sane-backends building with libpng, libieee1284 and
> linux-headers as you mentioned.
>
> There are some new backends enabled now:
> canon_pp
> hpsj5s
> mustek_pp
> v4l
>
> > I also see that you list the license as GPL in the APKBUILD file.
> Yes I set GPL as a license for this package and all its subpackages. But I
> saw its not so simple with some backends licensing.
>
> Can you provide me some idea or some list how to describe licensing right
> way for not-only-gpl parts?
>
> Thanks for advise
>
> Valery.
>
> 2017-07-22 15:52 GMT+03:00 Olaf Meeuwissen :
>
>> Hi Valery,
>>
>> I'm one of the SANE developers and am trying to get rid of all compiler
>> warnings on a select subset of build environments.  Alpine Linux is one
>> of them and its parallel port IO support is giving me a bit of trouble.
>> Hope you can help me out a bit.
>>
>> I don't see any libieee1284 packages for 3.6.  Is there any activity to
>> add libieee1284?  It would enable support for a few more backends.
>>
>> A few backends also provide parallel port IO support if certain Linux
>> kernel headers are present.  Looking at the `makedepends` list in the
>> sane package's APKBUILD file, I don't see kernel-headers listed.  Can
>> I assume that the Alpine package build environment makes sure that is
>> present?  If not, you may want to add it.  It would make at least the
>> umax_pp backend do something more useful.  Without that package, it
>> compiles but essentially just no-ops just about all the I/O after
>> spitting out a warning, IIUC.
>>
>> My builds have so far not included the kernel-headers package in the
>> list of packages to be installed but I'm leaning towards adding it.  It
>> would solve a major compiler warning headache for me ;-)
>>
>> If Alpine Linux' default build environment always includes it, I feel
>> more justified to "take the easy way out".
>>
>> You can find my build environment setup[1] as well as build logs[2] (the
>> middle stage, first on the drop-down list) over at GitLab.com.
>>
>>  [1]: https://gitlab.com/sane-project/ci-envs/blob/master/alpine-
>> 3.6-musl.df
>>  [2]: https://gitlab.com/sane-project/backends/pipelines
>>
>> Somewhat off-topic, but ...
>>
>> I also see that you list the license as GPL in the APKBUILD file.  Is
>> that for that file only or does that apply to the binary packages?
>> If the latter, it's not correct and really should be fixed.
>>
>> BTW, love the fact that you provide a package per backend!  Wishing
>> other distributions would do the same.
>>
>> Thanks for any feedback in advance,
>> --
>> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>>  Support Free Softwarehttps://my.fsf.org/donate
>>  Join the Free Software Foundation  https://my.fsf.org/join
>>
>
>
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] sane-backend 1.0.27 USB broken on Mac with Homebrew

2017-07-28 Thread schmo-fu
Yuri,

that's only part of the solution.

I tried
» brew reinstall
https://raw.githubusercontent.com/yurikoles/homebrew-core/sane-backends-1.0.27-1/Formula/sane-backends.rb
«

but it leads to error:
  curl: (22) The requested URL returned error: 401 Unauthorized
  Error: Failed to download resource "sane-backends"
  Download failed:
https://homebrew.bintray.com/bottles/sane-backends-1.0.27_1.sierra.bottle.tar.gz

»brew reinstall --build-from-source https://raw.github... « went fine.

I then also edited fxcouderts changes into my own Formula, but:
while »depends_on "pkg-config"« helps (as i wrote before)
but the added »=> :run« or »=> :build« don't make it any better.

The build-log shows »checking for USB... yes« now in any of the three
cases, but the scanner is still not detected.

This is a big step into the right direction, but not the whole way.


Greetings and Gruß,
Thomas.S
(aka schmo-fu)

Am 28.07.17 um 20:31 schrieb Yurii Kolesnykov:
> I had create a PR in homebrew:
> https://github.com/Homebrew/homebrew-core/pull/16170
> 
> Thomas, Tom, please try to install formula from my branch by running:
> 
> brew reinstall
> https://raw.githubusercontent.com/yurikoles/homebrew-core/sane-backends-1.0.27-1/Formula/sane-backends.rb
> 
> чт, 27 лип. 2017 о 22:39 schmo-fu  пише:
> 
>> Hi Tom,
>>
>> you would have to install homebrew (see https://brew.sh/)
>>
>> After that you simply type "brew install sane-backends" this will
>> install a binary (called bottle). The binaries are installed to
>> /usr/local/Cellar/... and symlinked /usr/local/bin/
>>
>> To compile your own brew (after changing something in the formula for
>> example) you would enter "brew install --build-from-source sane-backends".
>>
>> The formula is a ruby-file found at:
>>
>> /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sane-backends.rb
>>
>> You probably know how to test whether it finds any scanners, but anyway:
>> you use "sane-find-scanner -v" and "scanimage -L".
>>
>>
>> Gruß,
>> Thomas.S
>> (aka schmo-fu)
>>
>> Am 27.07.17 um 21:02 schrieb Tom Myers:
>>> I have a 1XL I can test with with if there is a 1.0.27 built for
>> macintosh.  Just yell where I can download it.
>>>
 On Jul 27, 2017, at 12:14 PM, schmo-fu  wrote:

 Hey Olaf and Yurii,

 thank you for your support, there is some progress:
 First i replaced usb-compat- with libusb-dependency in the formula.
 sane-backends compiled, but still no usb-support.
 Then i put »depends_on "pkg-config"« into the formula.

 And here we go:
 [sanei_usb] sanei_usb_init: initializing libusb-1.0
 [sanei_usb] sanei_usb_scan_devices: marking existing devices
 [sanei_usb] libusb_scan_devices: Looking for libusb-1.0 devices
 [sanei_usb] libusb_scan_devices: device 0x04a9/0x221c at 038:002 is not
 configured
 [sanei_usb] libusb_scan_devices: found libusb-1.0 device (0x05ac/0x8215)
 interface 0 at libusb:006:003
 [sanei_usb] store_device: add dn 0 with libusb:006:003

 Wow! This looked so good, until i realized that the device 0x04a9 "is
 not configured" (and the other one is just the
>> Bluetooth-USB-Controller).
 So »scanimage -L« tells me, that there is still no scanner.
 But this may be an unrelated issue, or isn't it?
 (The scanner btw. is a CanoScan LiDE 60. Switching back to sane-backends
 1.0.25 shows this:
 found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan],
 chip=GL842) at libusb:038:002).

 Ah, here is the log:
 https://gist.github.com/6875017d99847cd4bfa5613f61216306


 Gruß,
 Thomas.S
 (aka schmo-fu)

 Am 27.07.17 um 14:51 schrieb Yurii Kolesnykov:
> Hi, Olaf, Thomas!
>
> Having another round through the info in the various links you and
>> Yurii
>> provided I noticed
>>
>>  checking for pkg-config... no
>>
>> Is homebrew using pkgconfig instead?  If so, I'd suggest adding
>> something like
>>
>>  system "ln", "-s", "pkg-config", "/usr/bin/pkgconfig"
>>
> No need to do this, in brew this may be addressed by adding `depends_on
> "pkg-config"`
>
> *before* running configure to sane-backends.rb.  Adjust /usr/bin as
>> necessary.  While at it, also drop the
>>
>>  depends_on "libusb-compat"
>>
>> or replace it with something like
>>
>>  depends_on "libusb-1.0"
>>
>> at least, do yourself a favour and build against libusb-1.0.
>>
> Thomas, please try putting just `libusb` here, we have such formula:
>
>> https://github.com/Homebrew/homebrew-core/blob/master/Formula/libusb.rb
>
> This formula Olaf?
>

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject "unsubscribe your_password"
 to 

[sane-devel] gscan2pdf v1.8.4 released

2017-07-28 Thread Jeff
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.8.4:
* Cope with Tesseract 3.0.5 writing Page 1 instead of Page 0
  Thanks to Chris Mayo for the patch. Closes merge request #14
* Assume pixels/inch if the image doesn't know better. Closes bug #258
  (Tesseract 3.05.01: Warning. Invalid resolution 0 dpi. Using 70
  instead)
* Fix paragraph formatting in save as text output.
  Thanks to Chris Mayo for the patch. Closes merge request #16
* In preparation for future removal of libsane-perl frontend, change
  default frontend libsane-perl -> libimage-sane-perl, and similarly
  switch selected frontend on upgrade from older version. Assuming no
  major problems occur, support for libsane-perl will be removed in the
  next release.
* Fixed bug writing postscript file.
* + support for ghostscript backend due to apparent bug in tiff2ps.
* Round scan options with ranges to valid values before applying.
* Fixed bug updating list of option-dependent values. Closes bug #264
  (Effective resolution is 75 DPI despite selecting 600 or 1200).



signature.asc
Description: OpenPGP digital signature
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] sane-backend 1.0.27 USB broken on Mac with Homebrew

2017-07-28 Thread Yurii Kolesnykov
I had create a PR in homebrew:
https://github.com/Homebrew/homebrew-core/pull/16170

Thomas, Tom, please try to install formula from my branch by running:

brew reinstall
https://raw.githubusercontent.com/yurikoles/homebrew-core/sane-backends-1.0.27-1/Formula/sane-backends.rb

чт, 27 лип. 2017 о 22:39 schmo-fu  пише:

> Hi Tom,
>
> you would have to install homebrew (see https://brew.sh/)
>
> After that you simply type "brew install sane-backends" this will
> install a binary (called bottle). The binaries are installed to
> /usr/local/Cellar/... and symlinked /usr/local/bin/
>
> To compile your own brew (after changing something in the formula for
> example) you would enter "brew install --build-from-source sane-backends".
>
> The formula is a ruby-file found at:
>
> /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sane-backends.rb
>
> You probably know how to test whether it finds any scanners, but anyway:
> you use "sane-find-scanner -v" and "scanimage -L".
>
>
> Gruß,
> Thomas.S
> (aka schmo-fu)
>
> Am 27.07.17 um 21:02 schrieb Tom Myers:
> > I have a 1XL I can test with with if there is a 1.0.27 built for
> macintosh.  Just yell where I can download it.
> >
> >> On Jul 27, 2017, at 12:14 PM, schmo-fu  wrote:
> >>
> >> Hey Olaf and Yurii,
> >>
> >> thank you for your support, there is some progress:
> >> First i replaced usb-compat- with libusb-dependency in the formula.
> >> sane-backends compiled, but still no usb-support.
> >> Then i put »depends_on "pkg-config"« into the formula.
> >>
> >> And here we go:
> >> [sanei_usb] sanei_usb_init: initializing libusb-1.0
> >> [sanei_usb] sanei_usb_scan_devices: marking existing devices
> >> [sanei_usb] libusb_scan_devices: Looking for libusb-1.0 devices
> >> [sanei_usb] libusb_scan_devices: device 0x04a9/0x221c at 038:002 is not
> >> configured
> >> [sanei_usb] libusb_scan_devices: found libusb-1.0 device (0x05ac/0x8215)
> >> interface 0 at libusb:006:003
> >> [sanei_usb] store_device: add dn 0 with libusb:006:003
> >>
> >> Wow! This looked so good, until i realized that the device 0x04a9 "is
> >> not configured" (and the other one is just the
> Bluetooth-USB-Controller).
> >> So »scanimage -L« tells me, that there is still no scanner.
> >> But this may be an unrelated issue, or isn't it?
> >> (The scanner btw. is a CanoScan LiDE 60. Switching back to sane-backends
> >> 1.0.25 shows this:
> >> found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan],
> >> chip=GL842) at libusb:038:002).
> >>
> >> Ah, here is the log:
> >> https://gist.github.com/6875017d99847cd4bfa5613f61216306
> >>
> >>
> >> Gruß,
> >> Thomas.S
> >> (aka schmo-fu)
> >>
> >> Am 27.07.17 um 14:51 schrieb Yurii Kolesnykov:
> >>> Hi, Olaf, Thomas!
> >>>
> >>> Having another round through the info in the various links you and
> Yurii
>  provided I noticed
> 
>   checking for pkg-config... no
> 
>  Is homebrew using pkgconfig instead?  If so, I'd suggest adding
>  something like
> 
>   system "ln", "-s", "pkg-config", "/usr/bin/pkgconfig"
> 
> >>> No need to do this, in brew this may be addressed by adding `depends_on
> >>> "pkg-config"`
> >>>
> >>> *before* running configure to sane-backends.rb.  Adjust /usr/bin as
>  necessary.  While at it, also drop the
> 
>   depends_on "libusb-compat"
> 
>  or replace it with something like
> 
>   depends_on "libusb-1.0"
> 
>  at least, do yourself a favour and build against libusb-1.0.
> 
> >>> Thomas, please try putting just `libusb` here, we have such formula:
> >>>
> https://github.com/Homebrew/homebrew-core/blob/master/Formula/libusb.rb
> >>>
> >>> This formula Olaf?
> >>>
> >>
> >> --
> >> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> >> Unsubscribe: Send mail with subject "unsubscribe your_password"
> >> to sane-devel-requ...@lists.alioth.debian.org
> >
> >
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Scanning With Nikon Coolscan LS40 / IVED

2017-07-28 Thread m. allan noah
You might try sane-backends 1.0.27, which includes the following
statement in its release notes:

Note 3: The Linux USB3 workaround which was added in version 1.0.25 is
now disabled by default. If you have difficulty using a scanner which
previously worked, or intermittent scanner availability, try setting
the new environment variable SANE_USB_WORKAROUND=1 before starting
your frontend.

On Fri, Jul 28, 2017 at 10:02 PM, Leon Hauck  wrote:
> TLDR: are there any known issues using a Nikon Coolscan IV ED with
> libusb 0.1.12-30 and kernel 4.9.0?
>
> ---
>
> I'm trying to get an Coolscan IV ED (LS40) to work with Debian Stretch
> (current stable release).
>
> scanimage -L
>
> properly identifies the scanner, however
>
> scanimage > testme.pnm
>
> hangs and eventually errors out due to an i/o error.
>
> I connected this scanner to a laptop running the same software with the same
> results.
>
> I connected the scanner to an older laptop running Debian Jessie (previous
> stable release), and it works fine, and I can also pass along additional
> command line arguments for white balance, auto-focus, etc.
>
> I'm guessing something may have changed in libusb and/or the kernel, which
> is preventing communication with this older USB1.1 unit.
>
> Are there any known issues with this setup?
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-requ...@lists.alioth.debian.org



-- 
"well, I stand up next to a mountain- and I chop it down with the edge
of my hand"

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org