From: Andreas Fritiofson [mailto:[email protected]]
Sent: Tuesday, March 22, 2016 2:04 PM
To: [openocd:tickets]
Subject: [openocd:tickets] #122 Search dirs not working when openocd installed 
to /opt.


What is the layout of the package dir in /opt?
/opt/gnuarmeclipse/openocd/0.10.0-201510281129-dev/bin/openocd
bin/      doc/            info/     license/  OpenULINK/
contrib/  gnuarmeclipse/  INFO.txt  man/      scripts/


http://gnuarmeclipse.github.io/openocd/install/

What does openocd -d say about the search dirs?

https://github.com/gnuarmeclipse/openocd/releases/download/gae-0.10.0-20160110/gnuarmeclipse-openocd-debian64-0.10.0-201601101000-dev.tgz
The version number of the filename (used in directory name) does not match the 
date code or version of the executable.

rfoos@kvm-u1510-dev:~$ openocd -d
GNU ARM Eclipse 64-bits Open On-Chip Debugger 0.10.0-dev-00287-g85cec24-dirty 
(2016-01-10-10:31)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 13 1 command.c:546 command_print(): debug_level: 3
Debug: 14 1 options.c:130 add_default_dirs(): bindir=bin
Debug: 15 1 options.c:131 add_default_dirs(): pkgdatadir=
Debug: 16 1 options.c:132 add_default_dirs(): run_prefix=
Debug: 17 1 configuration.c:44 add_script_search_dir(): adding 
/home/rfoos/.openocd
Debug: 18 1 configuration.c:44 add_script_search_dir(): adding /site
Debug: 19 1 configuration.c:44 add_script_search_dir(): adding /scripts

Two problems.

Run_prefix should be /opt/gnuarmeclipse/openocd/0.10.0-201601101000-dev, with 
add_search_dirs <>/scripts.

Pkgdatadir is "" from the build resulting in /site and /scripts being added to 
search dirs. This is never correct.

So I really only reliably know the 'pkgdatadir' at runtime, and so the proposed 
change.

-rick

________________________________

[tickets:#122]<https://sourceforge.net/p/openocd/tickets/122/> Search dirs not 
working when openocd installed to /opt.

Status: new
Milestone: 0.9.0
Created: Fri Mar 18, 2016 09:51 PM UTC by Rick
Last Updated: Tue Mar 22, 2016 06:57 PM UTC
Owner: nobody
Attachments:

  *   
0001-Search-dirs-not-working-when-openocd-installed-to-op.patch<https://sourceforge.net/p/openocd/tickets/122/attachment/0001-Search-dirs-not-working-when-openocd-installed-to-op.patch>
 (6.3 kB; text/x-patch)

When the debian versions of OpenOCD are installed to /opt, as gnuarmeclipse 
does, openocd cannot find the script files.

In src/helpers/options.c, the no path separators case sets run_prefix="".

bindir and pkgdatadir are also not set for the install location.

One solution is to add a special case for no path separators similar to Windows 
where the executable path is used to add search dirs for 
<openocd-path>/../scripts.

________________________________

Sent from sourceforge.net because you indicated interest in 
https://sourceforge.net/p/openocd/tickets/122/

To unsubscribe from further messages, please visit 
https://sourceforge.net/auth/subscriptions/

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2016.0.7497 / Virus Database: 4542/11858 - Release Date: 03/21/16



---

** [tickets:#122] Search dirs not working when openocd installed to /opt.**

**Status:** new
**Milestone:** 0.9.0
**Created:** Fri Mar 18, 2016 09:51 PM UTC by Rick
**Last Updated:** Tue Mar 22, 2016 07:04 PM UTC
**Owner:** nobody
**Attachments:**

- 
[0001-Search-dirs-not-working-when-openocd-installed-to-op.patch](https://sourceforge.net/p/openocd/tickets/122/attachment/0001-Search-dirs-not-working-when-openocd-installed-to-op.patch)
 (6.3 kB; text/x-patch)


When the debian versions of OpenOCD are installed to /opt, as gnuarmeclipse 
does, openocd cannot find the script files.

In src/helpers/options.c, the no path separators case sets run_prefix="".

bindir and pkgdatadir are also not set for the install location.

One solution is to add a special case for no path separators similar to Windows 
where the executable path is used to add search dirs for 
<openocd-path>/../scripts.







---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to