Bug 1471729

Summary: arduino fails to compile
Product: [Fedora] Fedora Reporter: Turgut Kalfaoglu <turgut>
Component: arduinoAssignee: Gianluca Sforna <giallu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: barracks510, felix_zihlmann, giallu, lsantann, moosedrool7, seb, tchollingsworth, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: arduino-1.6.6-3.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-31 16:21:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Turgut Kalfaoglu 2017-07-17 10:54:19 UTC
Description of problem:

Arduino IDE will not compile

Version-Release number of selected component (if applicable):
Arduino 1.6.6


How reproducible:

Every time

Steps to Reproduce:

1. Launch ide
2. Write code
3. Sketch -> verify/compile

Actual results:

Parameter 'tools' is mandatory
Usage of /usr/share/arduino/arduino-builder:
  -build-options-file string
    	Instead of specifying --hardware, --tools etc every time, you can load all such options from a file
  -build-path string
    	build path
  -built-in-libraries value

Expected results:

Tadaa!

Additional info:

Comment 1 Fedora Update System 2017-07-21 22:09:30 UTC
arduino-builder-1.0.5-6.fc26 arduino-1.6.6-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-394c0f1880

Comment 2 Fedora Update System 2017-07-23 06:57:31 UTC
arduino-1.6.6-2.fc25, arduino-builder-1.0.5-6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c33ec5464a

Comment 3 Fedora Update System 2017-07-23 09:59:40 UTC
arduino-1.6.6-3.fc26, arduino-builder-1.0.5-6.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-394c0f1880

Comment 4 Fedora Update System 2017-07-31 16:21:44 UTC
arduino-1.6.6-3.fc26, arduino-builder-1.0.5-6.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 seb 2018-02-06 18:27:40 UTC
arduino-1\:1.8.4-1.fc27 on Fedora 27, still have this bug

Comment 6 Gianluca Sforna 2018-02-08 09:09:59 UTC
(In reply to seb from comment #5)
> arduino-1\:1.8.4-1.fc27 on Fedora 27, still have this bug

It's fixes in 1.8.5-1. Please give it a try.

Comment 7 Levy Sant'Anna 2020-07-06 02:07:02 UTC
Looks to me that the same error returns on version arduino-1.8.13-2.fc32.noarch

Comment 8 Levy Sant'Anna 2020-07-06 02:07:28 UTC
/usr/bin/arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -libraries /home/ls/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path /tmp/arduino_build_878951 -warnings=all -build-cache /tmp/arduino_cache_661410 -prefs=build.warn_data_percentage=75 -verbose /usr/share/arduino/examples/01.Basics/Blink/Blink.ino
Parameter 'tools' is mandatory

Comment 9 Felix Zihlmann 2020-12-19 22:59:09 UTC
the patch:
--- a/arduino.spec      2020-12-19 22:03:29.565717294 +0100
+++ b/arduino.spec      2020-12-19 23:48:44.197420515 +0100
@@ -306,6 +309,8 @@
 
 popd
 
+mkdir -p %{buildroot}%{_datadir}/%{name}/tools-builder
+
 
 %check
 desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
@@ -329,6 +334,7 @@
 %config(noreplace) %{_sysconfdir}/%{name}/*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/lib/
+%{_datadir}/%{name}/tools-builder/
 
 %files doc
 %{_datadir}/%{name}/examples/

fixes it