port issues
Ryan Schmidt
ryandesign at macports.org
Thu Jan 12 17:33:23 PST 2012
On Jan 12, 2012, at 09:31, Arno Hautala wrote:
> On 2012-01-12, Craig Treleaven <ctreleaven at cogeco.ca> wrote:
>>
>> BTW, would there be any possibility of an enhancement to MacPorts to report
>> known issues with a port and its dependants? Ie generate the list of
>> dependencies for a port and query the trac database for any open tickets.
>> aka
>>
>>> port issues mkvtoonix
>> boost - #32558 (mkvtoolnix: error: 'boost::BOOST_FOREACH' has not been
>> declared)
>
> That sounds like it'd be really useful.
>
> Currently, you can do this manually by running "port rdeps mkvtoolnix"
> and then running a query on trac for each :
> https://trac.macports.org/report/16?PORT=boost
> or
> http://trac.macports.org/query?status=assigned&status=new&status=reopened&port=%7Eboost&summary=%7E&order=priority
>
> Being able to combine these in port would be a nice shortcut.
> You should open a feature request on trac for this.
Let's take a look at this.
Here is the recursive list of dependencies of mkvtoolnix:
$ port rdeps mkvtoolnix
The following ports are dependencies of mkvtoolnix @5.0.1_0:
ruby
libiconv
gperf
readline
ncurses
ncursesw
openssl
zlib
gdbm
gettext
expat
boost
bzip2
icu
file
flac
libogg
libvorbis
pkgconfig
glib2
xz
libffi
perl5
perl5.12
lzo2
pcre
libedit
Here is a script that constructs and opens a Trac search page to find issues filed against a port (or ports) and optionally any of its recursive dependencies, sorted in descending ticket number order (i.e. newest first):
https://trac.macports.org/browser/users/ryandesign/scripts/portissues
Running this script as follows:
portissues --deps mkvtoolnix
The script opens this URL:
https://trac.macports.org/report/16?sort=ticket&asc=0&PORT=(%5E%7C%20%7C,)(mkvtoolnix%7Cruby%7Clibiconv%7Cgperf%7Creadline%7Cncurses%7Cncursesw%7Copenssl%7Czlib%7Cgdbm%7Cgettext%7Cexpat%7Cboost%7Cbzip2%7Cicu%7Cfile%7Cflac%7Clibogg%7Clibvorbis%7Cpkgconfig%7Cglib2%7Cxz%7Clibffi%7Cperl5%7Cperl5.12%7Clzo2%7Cpcre%7Clibedit)($%7C%20%7C,)
There are 58 tickets. Would seeing this list have been helpful? I would argue that there are a lot of tickets in that list that are not relevant to the issue being experienced -- lots of text to sift through before you find what you're looking for.
More information about the macports-users
mailing list