<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>9107</bug_id>
          
          <creation_ts>2006-02-18 02:05:57 +0300</creation_ts>
          <short_desc>Не обнаруживается сканер, обслуживаемый backend plustek</short_desc>
          <delta_ts>2006-09-15 09:24:52 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sane</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexeev Roman">rommira</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
    
    <cc>mike</cc>
    
    <cc>nickel</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36029</commentid>
    <comment_count>0</comment_count>
    <who name="Alexeev Roman">rommira</who>
    <bug_when>2006-02-18 02:05:58 +0300</bug_when>
    <thetext>Sane не обнаруживает сканер, обслуживаемый backend plustek, хотя его поддержка
декларируется (Canon CanoScan Lide 20, Lide 25). Пробовал пересобранный в
окружении Master-2.4 пакет sane-1.0.17-alt0.1.src.rpm. &quot;Родной&quot; пакет из
Master-2.4 sane-1.0.14-alt3 обнаруживал сканер CanoScan Lide 20. Поддержка Lide
25 в той версии отсутвовала. 
На мой взгляд, проблема в месте создания файлов блокировок. Это можно обнаружить
путем запуска 
strace -efile scanimage -L 2&gt;&amp;1 | grep -i lock.
Будет видно, что делается попытка создать файл LCK..bla-bla-bla в каталоге
/var/lock/sane/sane, где второй sane, по-видимоиму, лишний. 
Предлагаемое решение: в spec файле строку 
%__subst &quot;s|/lock/sane|/sane|&quot; sanei/sanei_access.c
заменить на 
%__subst &quot;s|/lock/sane|/|&quot; sanei/sanei_access.c
так как в функции create_lock_filename уже используется переменная, содержащая
полный путь к каталогу с файлами блокировок.

P.S. В пакете sane-1.0.16-alt0.M24.1.src.rpm схожие проблемы, хотя там файлы
блокировок пытаются создаваться несколько в ином месте.

Steps to Reproduce:
1. sane-find-scanner - сканер обнаружен 
2. scanimage -L
3.
Actual Results:  
Сканер не обнаружен

Expected Results:  
Сканер ... обнаружен</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36039</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2006-02-18 12:02:32 +0300</bug_when>
    <thetext>Принято. Спасибо за подробную диагностику.  
Исправлено в sane-1.0.17-alt1.src.rpm (убрал хак с subst&apos;ами, сделал 
нормальный патч для указания каталога) 
Отправил в Incoming </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>