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

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

    <bug>
          <bug_id>33500</bug_id>
          
          <creation_ts>2017-05-23 19:37:44 +0300</creation_ts>
          <short_desc>Не работает выгрузка в устройство: can&apos;t open config file /etc/avrdude/avrdude.conf</short_desc>
          <delta_ts>2019-01-25 21:53:51 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>arduino</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>backport</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="viy">viy</assigned_to>
          <cc>k0tran</cc>
    
    <cc>lav</cc>
    
    <cc>sin</cc>
    
    <cc>viy</cc>
    
    <cc>week</cc>
    
    <cc>week</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163792</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-05-23 19:37:44 +0300</bug_when>
    <thetext>avrdude: can&apos;t open config file &quot;/etc/avrdude/avrdude.conf&quot;: No such file or directory
avrdude: error reading system wide configuration file &quot;/etc/avrdude/avrdude.conf&quot;

Помогает создать требуемый файл в виде симлинка на
/usr/share/arduino/hardware/arduino/avr/bootloaders/gemma/avrdude.conf

Может быть, вешать надо на avrdude, таких файлов два:

$ rpm -qf /etc/avrdude.conf
avrdude-6.2-alt1
$ rpm -qf /usr/share/arduino/hardware/arduino/avr/bootloaders/gemma/avrdude.conf
arduino-core-1.6.4-alt1_7.M80P.1jpp8

И, может быть, на Сизиф.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163796</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-05-24 06:57:27 +0300</bug_when>
    <thetext>На Sisyphus</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163800</commentid>
    <comment_count>2</comment_count>
    <who name="Grigory Milev">week</who>
    <bug_when>2017-05-24 09:51:17 +0300</bug_when>
    <thetext>Вообще то, надо просто добавить параметр -С при вызове avrdude. По умолчанию avrdude ищет конфиг /etc/avrdude.conf, который там присутствует и с ним всё отлично работает!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173537</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2018-08-22 14:49:32 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Вообще то, надо просто добавить параметр -С при вызове avrdude. По умолчанию
&gt; avrdude ищет конфиг /etc/avrdude.conf, который там присутствует и с ним всё
&gt; отлично работает!
Тут полная неясность, каким-то образом avrdude по умолчанию ищет файл в /etc/avrdude.conf, о чём пишет в ошибке.
Как это следует из кода, я не понял.

Вроде как там просто /etc:
less main.c
  strcpy(sys_config, CONFIG_DIR);
  i = strlen(sys_config);
  if (i &amp;&amp; (sys_config[i-1] != &apos;/&apos;))
    strcat(sys_config, &quot;/&quot;);
  strcat(sys_config, &quot;avrdude.conf&quot;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177840</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-01-25 21:53:51 +0300</bug_when>
    <thetext>arduino-1:1.6.4-alt1_7.M80P.2jpp8 -&gt; p8:

Tue Jan 22 2019 Leontiy Volodin &lt;lvol@altlinux&gt; 1:1.6.4-alt1_7.M80P.2jpp8
- Added missing require (ALT #35700)
- Fixed avrdude.conf (ALt #33500, #33501)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>