Re: [sane-devel] Iscan and Ubuntu 17.10/18.04 fixed

2017-11-21 Thread staedtler-przyborski

Am 19.11.2017 um 09:14 schrieb Olaf Meeuwissen:


I read through the bug report you mentioned below and think the whole
thing sucks.  Ubuntu has made a *huge* judgement error pulling an
*experimental* package for their upcoming release just to get a newer
version of the SANE backends upstream.  A lot of scanners supported by
third party scanner break for no good reason.

Reverting this decision would definitely be the best solution.

But who knows (I'm not affiliated to ubuntu in any way, I'm only using
it). In that case it's good to have workarounds to overcome the limitations.

Thanks to another user we got now Brother brscan4 based scanners working
too (by using an unconventional approach) with relevant scanning apps
(Xsane, scanimage, simple-scan, scantopdf)and as user.

Summary of all workarounds:

https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012/comments/76

Regards

Klaus Staedtler


--
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] What compiler switch for systemd support?

2017-11-21 Thread Olaf Meeuwissen
Hi ToddAndMargo,

ToddAndMargo writes:

> Dear List,
>
> Anyone know what the compiler switch is to compile
> in explicit systemd support?

  $ ./configure --help | grep systemd
--with-systemd  enable systemd support [default=yes]

So, --with-systemd would be the configure time option to use.
Of course, you will need the systemd development packages installed
(probably libsystemd-dev or similar).

With the flag, configure will abort with an error if the requirements to
build in systemd support are not satisfied.

Hope this helps,
--
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


[sane-devel] What compiler switch for systemd support?

2017-11-21 Thread ToddAndMargo

Dear List,

Anyone know what the compiler switch is to compile
in explicit systemd support?

Many thanks,
-T


--
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] Saned systemd issues

2017-11-21 Thread ToddAndMargo

On 11/18/2017 02:48 AM, ToddAndMargo wrote:

Hi All,

Scientific Linux 7.4 (RHEL Clone based on CentOS)

# rpm -qa sane-backends
sane-backends-1.0.24-9.el7.x86_64


I can start /usr/sbin/saned from the command line:

/usr/sbin/saned -a saned -d128; echo $?; ps ax | grep -i [s]aned
0
29857 ?    Ss 0:00 /usr/sbin/saned -a saned -d128

But not from my systemd scripts, which I picked up from
"man saned".

Note that I can use the name saned\@.service name due to
a very long standing bug:

'systemctl' does not not properly run the 'start', 'restart' or 'status' for 
a .service file containing an '@'

https://bugzilla.redhat.com/show_bug.cgi?id=1142369

In my case it gives:
     Failed to start saned@.service: Unit name saned@.service is
     missing the instance name.


So I called 'saned\@.service" "saned\@sane.service"


[Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1

[Install]
WantedBy=sockets.target




[Unit]
Description=Scanner Service
Requires=saned.socket

[Service]
RemainAfterExit=yes
ExecStart=/usr/sbin/saned -a saned -s
User=saned
Group=saned
# User=root
# Group=root
StandardInput=null
StandardOutput=syslog
StandardError=syslog
Environment=SANE_CONFIG_DIR=/etc/sane.d
# If you need to debug your configuration uncomment the next line and
# change it as appropriate to set the desired debug options
Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_BJNP=5

[Install]
Also=saned.socket


Error message is

# systemctl daemon-reload; systemctl stop saned.socket; systemctl stop 
saned\@sane.service;  systemctl start saned.socket; systemctl start 
saned\@sane.service; systemctl -l status saned\@sane.service; ps ax | 
grep [s]aned

● saned@sane.service - Scanner Service
    Loaded: loaded (/etc/systemd/system/saned@sane.service; indirect; 
vendor preset: disabled)

    Active: active (exited) since Sat 2017-11-18 02:42:54 PST; 46ms ago
   Process: 31110 ExecStart=/usr/sbin/saned (code=exited, status=0/SUCCESS)
  Main PID: 31110 (code=exited, status=0/SUCCESS)

Nov 18 02:42:54 rn4.rent-a-nerd.local systemd[1]: Started Scanner Service.
Nov 18 02:42:54 rn4.rent-a-nerd.local systemd[1]: Starting Scanner 
Service...
Nov 18 02:42:54 rn4.rent-a-nerd.local saned[31110]: saned 
(AF-indep+IPv6) from sane-backends 1.0.24 starting up



ps command is empty

How do I troubleshoot this?

Why did it succeed and exit?

And were are the logs for 'Environment=SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5"?


Many thanks,
-T




Followup:

saned\@.service was the correct name

I was starting the wrong service.  I should have started:

# systemctl   enable saned.socket   (one time only)
# systemctl -l start saned.socket

Plus, my version of sane-backends, does not have systemd
support compiled in.



--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
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