First of all there is icon in menu panel (no in mate, no in xfce). Please add it, because it is not goot to run desktop app from terminal. Arduino package didn't worked "out of box" when it is installed. I spend near a hour to fix problems. After install it need to execute this commands to work well: emerge sys-devel/crossdev && crossdev -t avr && (cd /usr/*/avr/binutils-bin/* && ln -s /usr/`uname -m`-pc-linux-gnu/avr/lib/ldscripts ldscripts && ln -s /usr/`uname -m`-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts ) ; ln -s /usr/avr/lib/avr5/crtm328p.o /usr/avr/lib/crtm328p.o gpasswd -a YOUR_USERNAME tty uucp And make sure, that /var/local had uucp group and 775. Plus to this maybe you can add print, that there is avrdude bug: if microcontroller send some data via serial port on every reset, that to properly flash it, you open port monitor, than (do not close port monitor) click upload (do it if you see "progammer is not responding", but all setupted and connected right). Please, automate it. And now (while process is not automate) add my commands to red colored print to user after arduino ebuild was installed. Crossdev do not merge avr when package.use, package.make and package.keywords are files. It want only directories with files. (As example: https://forums.gentoo.org/viewtopic-t-907860.html Step 7 (I fix some issues with PATH). Do not see to other steps, they are not needed now) I have not change make USEs, and all work ok for me (do not use USEs info from old tutorials). Reproducible: Always Steps to Reproduce: 1. emerge arduino , see to icon in menu 2. run arduino, check example, compile, see error. 3. emerge sys-devel/crossdev && crossdev -t avr ; compile example, see error 4. (cd /usr/*/avr/binutils-bin/* && ln -s /usr/`uname -m`-pc-linux-gnu/avr/lib/ldscripts ldscripts && ln -s /usr/`uname -m`-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts ) ; ln -s /usr/avr/lib/avr5/crtm328p.o /usr/avr/lib/crtm328p.o ; compile example, upload example; see rights error 5. run from root, compile example, upload example; all ok 6. gpasswd -a YOUR_USERNAME tty uucp and make sure, that /var/local had uucp group and 775. run from user, compile example, upload example; all ok
(In reply to comment #0) > First of all there is icon in menu panel (no in mate, no in xfce). Please > add it, because it is not goot to run desktop app from terminal. Hi, The arduino tarball does not provide a menu icon. The older versions of arduino in the portage tree did because I put it there. Though, it is a good idea so I'm going to add it again. Open up a separate bug for the icon if you want. > > Arduino package didn't worked "out of box" when it is installed. I spend > near a hour to fix problems. After install it need to execute this commands > to work well: > > emerge sys-devel/crossdev && crossdev -t avr && (cd > /usr/*/avr/binutils-bin/* && ln -s /usr/`uname > -m`-pc-linux-gnu/avr/lib/ldscripts ldscripts && ln -s /usr/`uname > -m`-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts ) ; ln -s > /usr/avr/lib/avr5/crtm328p.o /usr/avr/lib/crtm328p.o How is this related to arduino? You should check the problem with the crossdev guys. > > gpasswd -a YOUR_USERNAME tty uucp > > And make sure, that /var/local had uucp group and 775. If you read the output of emerge you would see that rxtx says: RXTX uses UUCP style device-locks. You should * add every user who needs to access serial ports * to the 'uucp' group: * * usermod -aG uucp <user> > > Plus to this maybe you can add print, that there is avrdude bug: if > microcontroller send some data via serial port on every reset, that to > properly flash it, you open port monitor, than (do not close port monitor) > click upload (do it if you see "progammer is not responding", but all > setupted and connected right). Which version of avrdude are you using? avrdude-5.11.1 should support the auto-reset thing of arduino. I'm going to check with the avrdude maintainers about this, I do not have my arduino around to test right now. > Please, automate it. And now (while process is not automate) add my commands > to red colored print to user after arduino ebuild was installed. > > Crossdev do not merge avr when package.use, package.make and > package.keywords are files. It want only directories with files. Again, this is related to crossdev and not arduino. I'm marking this bug as invalid since most of it is not related to the arduino package at all. > > > > (As example: https://forums.gentoo.org/viewtopic-t-907860.html Step 7 (I fix > some issues with PATH). Do not see to other steps, they are not needed now) > > I have not change make USEs, and all work ok for me (do not use USEs info > from old tutorials). > > > Reproducible: Always > > Steps to Reproduce: > 1. emerge arduino , see to icon in menu > 2. run arduino, check example, compile, see error. > 3. emerge sys-devel/crossdev && crossdev -t avr ; compile example, see error > 4. (cd /usr/*/avr/binutils-bin/* && ln -s /usr/`uname > -m`-pc-linux-gnu/avr/lib/ldscripts ldscripts && ln -s /usr/`uname > -m`-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts ) ; ln -s > /usr/avr/lib/avr5/crtm328p.o /usr/avr/lib/crtm328p.o ; compile example, > upload example; see rights error > 5. run from root, compile example, upload example; all ok > 6. gpasswd -a YOUR_USERNAME tty uucp and make sure, that /var/local had > uucp group and 775. > run from user, compile example, upload example; all ok
Ok, I'll open up bugs for crossdev avr and arduino icon, but can you add print of my (maybe edited) instructions after arduino ebuild install? I think, that for end user it is not matter, what developer or what ebuild have bugs, he need worked program.
I add open up bug, as you say: https://bugs.gentoo.org/show_bug.cgi?id=453920 .
(In reply to comment #2) > Ok, I'll open up bugs for crossdev avr and arduino icon, but can you add > print of my (maybe edited) instructions after arduino ebuild install? I > think, that for end user it is not matter, what developer or what ebuild > have bugs, he need worked program. Well those instructions don't really belong in post-install messages. What I can do is to setup a wiki page at wiki.gentoo.org, then instruct people to visit the wiki at post-install.
Oh, ok, thanks :) But (while bugs with symliks are not fixed) print red-colored message (or yellow with '*" and '!!'), that they MUST visit wiki after install to prevent issues, because many users ignore white-colored messages and hints.
wrt crossdev and files vs dirs in /etc/portage/, the answer is "i don't care". it's dirt simple to convert from files to dirs and there's absolutely no reason to "need" them to be files. you're simply being ornery.
>wrt crossdev and files vs dirs in /etc/portage/, the answer is "i don't care". Not wrt, but avr. Care to symlinks, please, it is bug. >it's dirt simple to convert from files to dirs and there's absolutely no reason to "need" them to be files. Yes, it is not a problem, I write it not to fix, but to get answer, that all is ok.
(In reply to comment #7) crossdev already allows them to be symlinks to dirs. it only rejects files (or symlinks to files) and that is correct behavior.