unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Thomas Danckaert <thomas.danckaert@aeronomie.be>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: doxygen: Use sh from the store.
Date: Tue, 3 Jan 2017 13:28:37 +0100	[thread overview]
Message-ID: <20170103132837.3fdb6b1e@scratchpost.org> (raw)
In-Reply-To: <20170103.130923.1460950191504126664.thomas.danckaert@aeronomie.be>

Thanks for the patch! Looks good to me.

In any case, if we search for "portable_system", we find that there are lots of other things that don't use in-store names:

./cite.cpp:  if ((exitCode=portable_system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+
./dia.cpp:  if ((exitCode=portable_system(diaExe,diaArgs,FALSE))!=0) // from config
./dia.cpp:    if (portable_system("epstopdf",epstopdfArgs)!=0)
./diagram.cpp:    if (portable_system("epstopdf",epstopdfArgs)!=0)
./docparser.cpp:      if (portable_system("epstopdf",epstopdfArgs)!=0)
./dot.cpp:    if ((exitCode=portable_system(m_dotExe.data(),dotArgs,FALSE))!=0) // from config
./dot.cpp:      if ((exitCode=portable_system(m_dotExe.data(),dotArgs,FALSE))!=0) // from config
./dot.cpp:  if (!m_postCmd.isEmpty() && portable_system(m_postCmd.data(),m_postArgs.data())!=0) // seems to be not set anywhere
./doxygen.cpp:  if (portable_system(Config_getString("HHC_LOCATION"), "index.hhp", Debug::isFlagSet(Debug::ExtCmd))) // from config
./doxygen.cpp:    if (portable_system(Config_getString("QHG_LOCATION"), args.data(), FALSE)) // from config
./formula.cpp:    if (portable_system(latexCmd,"_formulas.tex")!=0) // from config
./formula.cpp:      if (portable_system("dvips",dviArgs)!=0)
./formula.cpp:      if (portable_system(portable_ghostScriptCommand(),gsArgs)!=0) // portable_ghostScriptCommand body hardcodes executable name
./htags.cpp:  bool result=portable_system("htags",commandLine,FALSE)==0;
./msc.cpp:  if ((exitCode=portable_system(mscExe,mscArgs,FALSE))!=0) // from config
./msc.cpp:    if (portable_system("epstopdf",epstopdfArgs)!=0)
./msc.cpp:  if ((exitCode=portable_system(mscExe,mscArgs,FALSE))!=0) // from config
./plantuml.cpp:  if ((exitCode=portable_system(pumlExe,pumlArgs,TRUE))!=0) // java, hardcoded
./plantuml.cpp:    if ((exitCode=portable_system("epstopdf",epstopdfArgs))!=0)
./portable.cpp:int portable_system(const char *command,const char *args,bool commandHasConsole) // should have argument list, not huge string
./portable.h:int            portable_system(const char *command,const char *args,bool commandHasConsole=TRUE);
./vhdldocgen.cpp:    if (portable_system("dot",vlargs)!=0)
./vhdldocgen.cpp:  if (portable_system("dot",vlargs)!=0)

Aaaah found sprintf without max length specifier. 

Dear god is doxygen unsafe. I should refrain from reading the source code of some popular packages - it doesn't end well.

If someone is motivated, could also fix the above executable names later.

  reply	other threads:[~2017-01-03 12:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03 12:09 [PATCH] gnu: doxygen: Use sh from the store Thomas Danckaert
2017-01-03 12:28 ` Danny Milosavljevic [this message]
2017-01-03 12:51   ` Thomas Danckaert
2017-01-09 19:37   ` Thomas Danckaert
2017-01-09 20:04     ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170103132837.3fdb6b1e@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=thomas.danckaert@aeronomie.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).