wiki:

TracQuery

Trac Ticket Queries

In addition to reports, Trac provides support for custom ticket queries, used to display lists of tickets meeting a specified set of criteria.

To configure and execute a custom query, switch to the View Tickets module from the navigation bar, and select the Custom Query link.

Filters

When you first go to the query page the default filter will display tickets relevant to you:

  • If logged in then all open tickets it will display open tickets assigned to you.
  • If not logged in but you have specified a name or email address in the preferences then it will display all open tickets where your email (or name if email not defined) is in the CC list.
  • If not logged and no name/email defined in the preferences then all open issues are displayed.

Current filters can be removed by clicking the button to the left with the minus sign on the label. New filters are added from the pulldown lists at the bottom corners of the filters box ('And' conditions on the left, 'Or' conditions on the right). Filters with either a text box or a pulldown menu of options can be added multiple times to perform an or of the criteria.

You can use the fields just below the filters box to group the results based on a field, or display the full description for each ticket.

Once you've edited your filters click the Update button to refresh your results.

Clicking on one of the query results will take you to that ticket. You can navigate through the results by clicking the Next Ticket or Previous Ticket links just below the main menu bar, or click the Back to Query link to return to the query page.

You can safely edit any of the tickets and continue to navigate through the results using the Next/Previous/Back to Query links after saving your results. When you return to the query any tickets which were edited will be displayed with italicized text. If one of the tickets was edited such that it no longer matches the query criteria the text will also be greyed. Lastly, if a new ticket matching the query criteria has been created, it will be shown in bold.

The query results can be refreshed and cleared of these status indicators by clicking the Update button again.

Saving Queries

Trac allows you to save the query as a named query accessible from the reports module. To save a query ensure that you have Updated the view and then click the Save query button displayed beneath the results. You can also save references to queries in Wiki content, as described below.

Note: one way to easily build queries like the ones below, you can build and test the queries in the Custom report module and when ready - click Save query. This will build the query string for you. All you need to do is remove the extra line breaks.

Note: you must have the REPORT_CREATE permission in order to save queries to the list of default reports. The Save query button will only appear if you are logged in as a user that has been granted this permission. If your account does not have permission to create reports, you can still use the methods below to save a query.

You may want to save some queries so that you can come back to them later. You can do this by making a link to the query from any Wiki page.

[query:status=new|assigned|reopened&version=1.0 Active tickets against 1.0]

Which is displayed as:

Active tickets against 1.0

This uses a very simple query language to specify the criteria (see Query Language).

Alternatively, you can copy the query string of a query and paste that into the Wiki link, including the leading ? character:

[query:?status=new&status=assigned&status=reopened&group=owner Assigned tickets by owner]

Which is displayed as:

Assigned tickets by owner

Using the [[TicketQuery]] Macro

The TicketQuery macro lets you display lists of tickets matching certain criteria anywhere you can use WikiFormatting.

Example:

[[TicketQuery(version=0.6|0.7&resolution=duplicate)]]

This is displayed as:

No results

Just like the query: wiki links, the parameter of this macro expects a query string formatted according to the rules of the simple ticket query language. This also allows displaying the link and description of a single ticket:

[[TicketQuery(id=123)]]

This is displayed as:

#123
Fuzzed sample crashes ffplay

A more compact representation without the ticket summaries is also available:

[[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]]

This is displayed as:

No results

Finally, if you wish to receive only the number of defects that match the query, use the count parameter.

[[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]]

This is displayed as:

0

Customizing the table format

You can also customize the columns displayed in the table format (format=table) by using col=<field> - you can specify multiple fields and what order they are displayed by placing pipes (|) between the columns like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]]

This is displayed as:

Results (1 - 3 of 5027)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6760 duplicate Gray screen after transcoding media pix_fmt yuv444p10le to yuv420p. Macroblocks visible leogdiniz
#6740 fixed libavfilter.6.dylib link failure with missing fribidi symbols nieder
#6738 fixed libavformat.57.dylib link failure with missing _gcry_randomize symbol nieder
1 2 3 4 5 6 7 8 9 10 11

Full rows

In table format you can also have full rows by using rows=<field> like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter,rows=description)]]

This is displayed as:

Results (1 - 3 of 5027)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6760 duplicate Gray screen after transcoding media pix_fmt yuv444p10le to yuv420p. Macroblocks visible leogdiniz
Description

Summary of the bug: When transcoding a video that uses h264 codec and pixel format yuv444p10le to h264 yuv420p on any ffmpeg version after 3.0.8 the transcoded media is all messed up with a gray screen. I found out the using ffmpeg 3.0.8 the problem won't happen. However it hapens on version 3.0.9 and after. How to reproduce:

Download the file from this URL: https://s3.amazonaws.com/player.hotmart.dev/test/ffmpeg_ticket/h264_pix_fmt_444.mkv The file has 2.5MB Open the terminal and move to the folder where you downloaded the file above. Run the command:

docker run -t -v /$(pwd):/home leonardodinizhotmart/ffmpeg:3.4 ffmpeg -i /home/h264_pix_fmt_444.mkv -pix_fmt yuv420p /home/output.mp4

The output.mp4 file will have the problem. https://s3.amazonaws.com/player.hotmart.dev/test/ffmpeg_ticket/thumbnail.jpg If you run the command bellow the problem won't happen:

docker run -t -v /$(pwd):/home leonardodinizhotmart/ffmpeg:3.0.8 ffmpeg -i /home/h264_pix_fmt_444.mkv -pix_fmt yuv420p /home/output.mp4

The Docker file information can be found at https://hub.docker.com/r/leonardodinizhotmart/ffmpeg

The ffmpeg -v 9 -loglevel 99 log can be found at: https://s3.amazonaws.com/player.hotmart.dev/test/ffmpeg_ticket/log-3.0.8.txt https://s3.amazonaws.com/player.hotmart.dev/test/ffmpeg_ticket/log-3.4.txt

I see that ffmpeg reports a gray chroma error during the encoding on version 3.4. I can't see why it's doing this since that on version 3.0.8 it works just fine =(

#6740 fixed libavfilter.6.dylib link failure with missing fribidi symbols nieder
Description
./configure --prefix=/usr/local/ffmpeg-clang --enable-autodetect --enable-gpl --enable-version3 --disable-static --enable-shared --enable-pthreads --disable-indev=jack --enable-bzlib --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcelt --enable-libcdio --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libkvazaar --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librtmp --enable-librubberband --disable-libsmbclient --enable-libsnappy --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-opencl --enable-opengl --enable-sdl2 --enable-videotoolbox --enable-zlib --cc=clang --extra-ldflags='-Wl,-dead_strip_dylibs -L/sw/lib' --extra-cflags=-I/sw/include

which leads to this failure when linking libavfilter.dylib

clang -dynamiclib -Wl,-single_module -Wl,-install_name,/usr/local/ffmpeg-clang/lib/libavfilter.6.dylib,-current_version,6.108.100,-compatibility_version,6 -Wl,-exported_symbols_list,libavfilter/libavfilter.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-dead_strip_dylibs -L/sw/lib  -Wl,-dynamic,-search_paths_first -Qunused-arguments  -o libavfilter/libavfilter.6.dylib libavfilter/aeval.o libavfilter/af_acopy.o libavfilter/af_acrusher.o libavfilter/af_adelay.o libavfilter/af_aecho.o libavfilter/af_aemphasis.o libavfilter/af_afade.o libavfilter/af_afftfilt.o libavfilter/af_afir.o libavfilter/af_aformat.o libavfilter/af_agate.o libavfilter/af_alimiter.o libavfilter/af_amerge.o libavfilter/af_amix.o libavfilter/af_anequalizer.o libavfilter/af_anull.o libavfilter/af_apad.o libavfilter/af_aphaser.o libavfilter/af_apulsator.o libavfilter/af_aresample.o libavfilter/af_asetnsamples.o libavfilter/af_asetrate.o libavfilter/af_ashowinfo.o libavfilter/af_astats.o libavfilter/af_atempo.o libavfilter/af_biquads.o libavfilter/af_bs2b.o libavfilter/af_channelmap.o libavfilter/af_channelsplit.o libavfilter/af_chorus.o libavfilter/af_compand.o libavfilter/af_compensationdelay.o libavfilter/af_crossfeed.o libavfilter/af_crystalizer.o libavfilter/af_dcshift.o libavfilter/af_dynaudnorm.o libavfilter/af_earwax.o libavfilter/af_extrastereo.o libavfilter/af_firequalizer.o libavfilter/af_flanger.o libavfilter/af_haas.o libavfilter/af_hdcd.o libavfilter/af_headphone.o libavfilter/af_join.o libavfilter/af_loudnorm.o libavfilter/af_pan.o libavfilter/af_replaygain.o libavfilter/af_rubberband.o libavfilter/af_sidechaincompress.o libavfilter/af_silencedetect.o libavfilter/af_silenceremove.o libavfilter/af_stereotools.o libavfilter/af_stereowiden.o libavfilter/af_superequalizer.o libavfilter/af_surround.o libavfilter/af_tremolo.o libavfilter/af_vibrato.o libavfilter/af_volume.o libavfilter/af_volumedetect.o libavfilter/allfilters.o libavfilter/asink_anullsink.o libavfilter/asrc_anoisesrc.o libavfilter/asrc_anullsrc.o libavfilter/asrc_sine.o libavfilter/audio.o libavfilter/avf_abitscope.o libavfilter/avf_ahistogram.o libavfilter/avf_aphasemeter.o libavfilter/avf_avectorscope.o libavfilter/avf_concat.o libavfilter/avf_showcqt.o libavfilter/avf_showfreqs.o libavfilter/avf_showspectrum.o libavfilter/avf_showvolume.o libavfilter/avf_showwaves.o libavfilter/avfilter.o libavfilter/avfiltergraph.o libavfilter/bbox.o libavfilter/buffersink.o libavfilter/buffersrc.o libavfilter/colorspacedsp.o libavfilter/deshake_opencl.o libavfilter/drawutils.o libavfilter/ebur128.o libavfilter/f_bench.o libavfilter/f_drawgraph.o libavfilter/f_ebur128.o libavfilter/f_interleave.o libavfilter/f_loop.o libavfilter/f_metadata.o libavfilter/f_perms.o libavfilter/f_realtime.o libavfilter/f_reverse.o libavfilter/f_select.o libavfilter/f_sendcmd.o libavfilter/f_sidedata.o libavfilter/f_streamselect.o libavfilter/f_zmq.o libavfilter/fifo.o libavfilter/formats.o libavfilter/framepool.o libavfilter/framequeue.o libavfilter/framesync.o libavfilter/generate_wave_table.o libavfilter/graphdump.o libavfilter/graphparser.o libavfilter/lavfutils.o libavfilter/log2_tab.o libavfilter/lswsutils.o libavfilter/motion_estimation.o libavfilter/opencl_allkernels.o libavfilter/pthread.o libavfilter/scale.o libavfilter/setpts.o libavfilter/settb.o libavfilter/split.o libavfilter/src_movie.o libavfilter/transform.o libavfilter/trim.o libavfilter/unsharp_opencl.o libavfilter/vaf_spectrumsynth.o libavfilter/vf_alphamerge.o libavfilter/vf_aspect.o libavfilter/vf_atadenoise.o libavfilter/vf_avgblur.o libavfilter/vf_bbox.o libavfilter/vf_bitplanenoise.o libavfilter/vf_blackdetect.o libavfilter/vf_blackframe.o libavfilter/vf_blend.o libavfilter/vf_boxblur.o libavfilter/vf_bwdif.o libavfilter/vf_chromakey.o libavfilter/vf_ciescope.o libavfilter/vf_codecview.o libavfilter/vf_colorbalance.o libavfilter/vf_colorchannelmixer.o libavfilter/vf_colorkey.o libavfilter/vf_colorlevels.o libavfilter/vf_colormatrix.o libavfilter/vf_colorspace.o libavfilter/vf_convolution.o libavfilter/vf_convolve.o libavfilter/vf_copy.o libavfilter/vf_coreimage.o libavfilter/vf_cover_rect.o libavfilter/vf_crop.o libavfilter/vf_cropdetect.o libavfilter/vf_curves.o libavfilter/vf_datascope.o libavfilter/vf_dctdnoiz.o libavfilter/vf_deband.o libavfilter/vf_decimate.o libavfilter/vf_deflicker.o libavfilter/vf_dejudder.o libavfilter/vf_delogo.o libavfilter/vf_deshake.o libavfilter/vf_despill.o libavfilter/vf_detelecine.o libavfilter/vf_displace.o libavfilter/vf_drawbox.o libavfilter/vf_drawtext.o libavfilter/vf_edgedetect.o libavfilter/vf_elbg.o libavfilter/vf_eq.o libavfilter/vf_extractplanes.o libavfilter/vf_fade.o libavfilter/vf_fftfilt.o libavfilter/vf_field.o libavfilter/vf_fieldhint.o libavfilter/vf_fieldmatch.o libavfilter/vf_fieldorder.o libavfilter/vf_find_rect.o libavfilter/vf_floodfill.o libavfilter/vf_format.o libavfilter/vf_fps.o libavfilter/vf_framepack.o libavfilter/vf_framerate.o libavfilter/vf_framestep.o libavfilter/vf_frei0r.o libavfilter/vf_fspp.o libavfilter/vf_gblur.o libavfilter/vf_geq.o libavfilter/vf_gradfun.o libavfilter/vf_hflip.o libavfilter/vf_histeq.o libavfilter/vf_histogram.o libavfilter/vf_hqdn3d.o libavfilter/vf_hqx.o libavfilter/vf_hue.o libavfilter/vf_hwdownload.o libavfilter/vf_hwmap.o libavfilter/vf_hwupload.o libavfilter/vf_hysteresis.o libavfilter/vf_idet.o libavfilter/vf_il.o libavfilter/vf_interlace.o libavfilter/vf_kerndeint.o libavfilter/vf_lenscorrection.o libavfilter/vf_limiter.o libavfilter/vf_lumakey.o libavfilter/vf_lut.o libavfilter/vf_lut2.o libavfilter/vf_lut3d.o libavfilter/vf_maskedclamp.o libavfilter/vf_maskedmerge.o libavfilter/vf_mcdeint.o libavfilter/vf_mergeplanes.o libavfilter/vf_mestimate.o libavfilter/vf_midequalizer.o libavfilter/vf_minterpolate.o libavfilter/vf_mpdecimate.o libavfilter/vf_neighbor.o libavfilter/vf_nlmeans.o libavfilter/vf_nnedi.o libavfilter/vf_noise.o libavfilter/vf_null.o libavfilter/vf_overlay.o libavfilter/vf_owdenoise.o libavfilter/vf_pad.o libavfilter/vf_palettegen.o libavfilter/vf_paletteuse.o libavfilter/vf_perspective.o libavfilter/vf_phase.o libavfilter/vf_pixdesctest.o libavfilter/vf_pp.o libavfilter/vf_pp7.o libavfilter/vf_premultiply.o libavfilter/vf_pseudocolor.o libavfilter/vf_psnr.o libavfilter/vf_pullup.o libavfilter/vf_qp.o libavfilter/vf_random.o libavfilter/vf_readeia608.o libavfilter/vf_readvitc.o libavfilter/vf_remap.o libavfilter/vf_removegrain.o libavfilter/vf_removelogo.o libavfilter/vf_repeatfields.o libavfilter/vf_rotate.o libavfilter/vf_sab.o libavfilter/vf_scale.o libavfilter/vf_selectivecolor.o libavfilter/vf_separatefields.o libavfilter/vf_setfield.o libavfilter/vf_showinfo.o libavfilter/vf_showpalette.o libavfilter/vf_shuffleframes.o libavfilter/vf_shuffleplanes.o libavfilter/vf_signalstats.o libavfilter/vf_signature.o libavfilter/vf_smartblur.o libavfilter/vf_spp.o libavfilter/vf_ssim.o libavfilter/vf_stack.o libavfilter/vf_stereo3d.o libavfilter/vf_subtitles.o libavfilter/vf_super2xsai.o libavfilter/vf_swaprect.o libavfilter/vf_swapuv.o libavfilter/vf_telecine.o libavfilter/vf_threshold.o libavfilter/vf_thumbnail.o libavfilter/vf_tile.o libavfilter/vf_tinterlace.o libavfilter/vf_tonemap.o libavfilter/vf_transpose.o libavfilter/vf_unsharp.o libavfilter/vf_uspp.o libavfilter/vf_vaguedenoiser.o libavfilter/vf_vectorscope.o libavfilter/vf_vflip.o libavfilter/vf_vidstabdetect.o libavfilter/vf_vidstabtransform.o libavfilter/vf_vignette.o libavfilter/vf_vmafmotion.o libavfilter/vf_w3fdif.o libavfilter/vf_waveform.o libavfilter/vf_weave.o libavfilter/vf_xbr.o libavfilter/vf_yadif.o libavfilter/vf_zoompan.o libavfilter/video.o libavfilter/vidstabutils.o libavfilter/vsink_nullsink.o libavfilter/vsrc_cellauto.o libavfilter/vsrc_life.o libavfilter/vsrc_mandelbrot.o libavfilter/vsrc_mptestsrc.o libavfilter/vsrc_testsrc.o libavfilter/x86/af_afir.o libavfilter/x86/af_afir_init.o libavfilter/x86/af_volume.o libavfilter/x86/af_volume_init.o libavfilter/x86/avf_showcqt.o libavfilter/x86/avf_showcqt_init.o libavfilter/x86/colorspacedsp.o libavfilter/x86/colorspacedsp_init.o libavfilter/x86/vf_blend.o libavfilter/x86/vf_blend_init.o libavfilter/x86/vf_bwdif.o libavfilter/x86/vf_bwdif_init.o libavfilter/x86/vf_eq.o libavfilter/x86/vf_fspp.o libavfilter/x86/vf_fspp_init.o libavfilter/x86/vf_gradfun.o libavfilter/x86/vf_gradfun_init.o libavfilter/x86/vf_hqdn3d.o libavfilter/x86/vf_hqdn3d_init.o libavfilter/x86/vf_idet.o libavfilter/x86/vf_idet_init.o libavfilter/x86/vf_interlace.o libavfilter/x86/vf_interlace_init.o libavfilter/x86/vf_limiter.o libavfilter/x86/vf_limiter_init.o libavfilter/x86/vf_maskedmerge.o libavfilter/x86/vf_maskedmerge_init.o libavfilter/x86/vf_noise.o libavfilter/x86/vf_pp7.o libavfilter/x86/vf_pp7_init.o libavfilter/x86/vf_psnr.o libavfilter/x86/vf_psnr_init.o libavfilter/x86/vf_pullup.o libavfilter/x86/vf_pullup_init.o libavfilter/x86/vf_removegrain.o libavfilter/x86/vf_removegrain_init.o libavfilter/x86/vf_spp.o libavfilter/x86/vf_ssim.o libavfilter/x86/vf_ssim_init.o libavfilter/x86/vf_stereo3d.o libavfilter/x86/vf_stereo3d_init.o libavfilter/x86/vf_tinterlace_init.o libavfilter/x86/vf_w3fdif.o libavfilter/x86/vf_w3fdif_init.o libavfilter/x86/vf_yadif.o libavfilter/x86/vf_yadif_init.o libavfilter/x86/yadif-10.o libavfilter/x86/yadif-16.o -lswscale -lpostproc -lavformat -lavcodec -lswresample -lavutil -framework OpenGL -framework OpenGL -pthread -lm -L/sw/lib -lbs2b -L/sw/lib -lrubberband -lstdc++ -L/sw/lib -lass -Wl,-framework,OpenCL -L/sw/lib -lvidstab -L/sw/lib -lzmq -framework CoreImage -framework AppKit -L/sw/lib -lfontconfig -L/sw/lib -lfreetype -lm -lm -lm -lbz2 -L/sw/lib -lgme -L/sw/lib -lmodplug -L/sw/lib -lopenmpt -lstdc++ -L/sw/lib -lgcrypt -lgpg-error -lchromaprint -L/sw/lib -lbluray -lz -Wl,-framework,CoreFoundation -Wl,-framework,Security -L/sw/lib -lrtmp -L/sw/lib -lvpx -lm -L/sw/lib -lvpx -lm -L/sw/lib -lvpx -lm -L/sw/lib -lvpx -lm -L/sw/lib/webp7 -lwebpmux -lwebp -liconv -lm -llzma -lcelt0 -lopencore-amrwb -L/sw/lib -lzvbi -lm -lsnappy -lstdc++ -lz -framework AudioToolbox -lgsm -lmp3lame -lopencore-amrnb -lopenjp2 -L/sw/lib -lopus -L/sw/lib/libspeex1/lib -lspeex -ltheoraenc -ltheoradec -logg -ltwolame -L/sw/lib -lvorbis -L/sw/lib -lvorbisenc -lwavpack -L/sw/lib/webp7 -lwebp -L/sw/lib -lx264 -lpthread -L/sw/lib -lx265 -lxvidcore -pthread -L/sw/lib -lkvazaar -framework VideoToolbox -framework CoreFoundation -framework CoreMedia -framework CoreVideo -framework CoreServices -lm -pthread -lm -Wl,-framework,OpenCL -framework VideoToolbox -framework CoreFoundation -framework CoreVideo -framework CoreMedia 
ld: warning: directory not found for option '-Llibavresample'
Undefined symbols for architecture x86_64:
  "_fribidi_charset_to_unicode", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_get_bidi_types", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_get_joining_types", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_get_par_embedding_levels", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_join_arabic", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_reorder_line", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_shape", referenced from:
      _shape_text in vf_drawtext.o
  "_fribidi_unicode_to_charset", referenced from:
      _shape_text in vf_drawtext.o
ld: symbol(s) not found for architecture x86_64

It's missing -lfribidi even though that's enabled in configure.

This is fixed by adding libfribidi to 'drawtext_filter_suggest' in configure.

#6738 fixed libavformat.57.dylib link failure with missing _gcry_randomize symbol nieder
Description
../configure --prefix=/usr/local/ffmpeg-clang --enable-autodetect --enable-gpl --enable-version3 --disable-static --enable-shared --enable-pthreads --disable-indev=jack --enable-bzlib --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcelt --enable-libcdio --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libkvazaar --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librtmp --enable-librubberband --disable-libsmbclient --enable-libsnappy --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-opencl --enable-opengl --enable-sdl2 --enable-videotoolbox --enable-zlib --cc=clang --extra-ldflags='-Wl,-dead_strip_dylibs -L/sw/lib' --extra-cflags=-I/sw/include

which leads to this failure:

clang -dynamiclib -Wl,-single_module -Wl,-install_name,/usr/local/ffmpeg-clang/lib/libavformat.57.dylib,-current_version,57.84.100,-compatibility_version,57 -Wl,-exported_symbols_list,libavformat/libavformat.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-dead_strip_dylibs -L/sw/lib  -Wl,-dynamic,-search_paths_first -Qunused-arguments  -o libavformat/libavformat.57.dylib libavformat/3dostr.o libavformat/4xm.o libavformat/a64.o libavformat/aacdec.o libavformat/aadec.o libavformat/ac3dec.o libavformat/acm.o libavformat/act.o libavformat/adp.o libavformat/ads.o libavformat/adtsenc.o libavformat/adxdec.o libavformat/aea.o libavformat/afc.o libavformat/aiffdec.o libavformat/aiffenc.o libavformat/aixdec.o libavformat/allformats.o libavformat/amr.o libavformat/anm.o libavformat/apc.o libavformat/ape.o libavformat/apetag.o libavformat/apngdec.o libavformat/apngenc.o libavformat/aqtitledec.o libavformat/asf.o libavformat/asfcrypt.o libavformat/asfdec_f.o libavformat/asfdec_o.o libavformat/asfenc.o libavformat/assdec.o libavformat/assenc.o libavformat/ast.o libavformat/astdec.o libavformat/astenc.o libavformat/async.o libavformat/au.o libavformat/audiointerleave.o libavformat/avc.o libavformat/avidec.o libavformat/avienc.o libavformat/avio.o libavformat/aviobuf.o libavformat/avlanguage.o libavformat/avr.o libavformat/avs.o libavformat/bethsoftvid.o libavformat/bfi.o libavformat/bink.o libavformat/bintext.o libavformat/bit.o libavformat/bluray.o libavformat/bmv.o libavformat/boadec.o libavformat/brstm.o libavformat/c93.o libavformat/cache.o libavformat/caf.o libavformat/cafdec.o libavformat/cafenc.o libavformat/cavsvideodec.o libavformat/cdg.o libavformat/cdxl.o libavformat/chromaprint.o libavformat/cinedec.o libavformat/concat.o libavformat/concatdec.o libavformat/crcenc.o libavformat/crypto.o libavformat/cutils.o libavformat/dash.o libavformat/dashenc.o libavformat/data_uri.o libavformat/dauddec.o libavformat/daudenc.o libavformat/dcstr.o libavformat/dfa.o libavformat/diracdec.o libavformat/dnxhddec.o libavformat/dsfdec.o libavformat/dsicin.o libavformat/dss.o libavformat/dtsdec.o libavformat/dtshddec.o libavformat/dump.o libavformat/dv.o libavformat/dvbsub.o libavformat/dvbtxt.o libavformat/dvenc.o libavformat/dxa.o libavformat/eacdata.o libavformat/electronicarts.o libavformat/epafdec.o libavformat/ffmdec.o libavformat/ffmenc.o libavformat/ffmetadec.o libavformat/ffmetaenc.o libavformat/fifo.o libavformat/file.o libavformat/filmstripdec.o libavformat/filmstripenc.o libavformat/fitsdec.o libavformat/fitsenc.o libavformat/flac_picture.o libavformat/flacdec.o libavformat/flacenc.o libavformat/flacenc_header.o libavformat/flic.o libavformat/flvdec.o libavformat/flvenc.o libavformat/format.o libavformat/framecrcenc.o libavformat/framehash.o libavformat/frmdec.o libavformat/fsb.o libavformat/ftp.o libavformat/g722.o libavformat/g723_1.o libavformat/g726.o libavformat/g729dec.o libavformat/gdv.o libavformat/genh.o libavformat/gif.o libavformat/gifdec.o libavformat/golomb_tab.o libavformat/gopher.o libavformat/gsmdec.o libavformat/gxf.o libavformat/gxfenc.o libavformat/h261dec.o libavformat/h263dec.o libavformat/h264dec.o libavformat/hashenc.o libavformat/hdsenc.o libavformat/hevc.o libavformat/hevcdec.o libavformat/hls.o libavformat/hlsenc.o libavformat/hlsproto.o libavformat/hnm.o libavformat/http.o libavformat/httpauth.o libavformat/icecast.o libavformat/icodec.o libavformat/icoenc.o libavformat/id3v1.o libavformat/id3v2.o libavformat/id3v2enc.o libavformat/idcin.o libavformat/idroqdec.o libavformat/idroqenc.o libavformat/iff.o libavformat/ilbc.o libavformat/img2.o libavformat/img2_alias_pix.o libavformat/img2_brender_pix.o libavformat/img2dec.o libavformat/img2enc.o libavformat/ingenientdec.o libavformat/ipmovie.o libavformat/ircam.o libavformat/ircamdec.o libavformat/ircamenc.o libavformat/isom.o libavformat/iss.o libavformat/iv8.o libavformat/ivfdec.o libavformat/ivfenc.o libavformat/jacosubdec.o libavformat/jacosubenc.o libavformat/jvdec.o libavformat/latmenc.o libavformat/libgme.o libavformat/libmodplug.o libavformat/libopenmpt.o libavformat/librtmp.o libavformat/lmlm4.o libavformat/loasdec.o libavformat/log2_tab.o libavformat/lrc.o libavformat/lrcdec.o libavformat/lrcenc.o libavformat/lvfdec.o libavformat/lxfdec.o libavformat/m4vdec.o libavformat/matroska.o libavformat/matroskadec.o libavformat/matroskaenc.o libavformat/md5proto.o libavformat/metadata.o libavformat/mgsts.o libavformat/microdvddec.o libavformat/microdvdenc.o libavformat/mj2kdec.o libavformat/mkvtimestamp_v2.o libavformat/mlpdec.o libavformat/mlvdec.o libavformat/mm.o libavformat/mmf.o libavformat/mms.o libavformat/mmsh.o libavformat/mmst.o libavformat/mov.o libavformat/mov_chan.o libavformat/movenc.o libavformat/movenccenc.o libavformat/movenchint.o libavformat/mp3dec.o libavformat/mp3enc.o libavformat/mpc.o libavformat/mpc8.o libavformat/mpeg.o libavformat/mpegenc.o libavformat/mpegts.o libavformat/mpegtsenc.o libavformat/mpegvideodec.o libavformat/mpjpeg.o libavformat/mpjpegdec.o libavformat/mpl2dec.o libavformat/mpsubdec.o libavformat/msf.o libavformat/msnwc_tcp.o libavformat/mtaf.o libavformat/mtv.o libavformat/musx.o libavformat/mux.o libavformat/mvdec.o libavformat/mvi.o libavformat/mxf.o libavformat/mxfdec.o libavformat/mxfenc.o libavformat/mxg.o libavformat/ncdec.o libavformat/network.o libavformat/nistspheredec.o libavformat/nsvdec.o libavformat/nullenc.o libavformat/nut.o libavformat/nutdec.o libavformat/nutenc.o libavformat/nuv.o libavformat/oggdec.o libavformat/oggenc.o libavformat/oggparsecelt.o libavformat/oggparsedaala.o libavformat/oggparsedirac.o libavformat/oggparseflac.o libavformat/oggparseogm.o libavformat/oggparseopus.o libavformat/oggparseskeleton.o libavformat/oggparsespeex.o libavformat/oggparsetheora.o libavformat/oggparsevorbis.o libavformat/oggparsevp8.o libavformat/oma.o libavformat/omadec.o libavformat/omaenc.o libavformat/options.o libavformat/os_support.o libavformat/paf.o libavformat/pcm.o libavformat/pcmdec.o libavformat/pcmenc.o libavformat/pjsdec.o libavformat/pmpdec.o libavformat/prompeg.o libavformat/protocols.o libavformat/psxstr.o libavformat/pva.o libavformat/pvfdec.o libavformat/qcp.o libavformat/qtpalette.o libavformat/r3d.o libavformat/rawdec.o libavformat/rawenc.o libavformat/rawutils.o libavformat/rawvideodec.o libavformat/rdt.o libavformat/realtextdec.o libavformat/redspark.o libavformat/replaygain.o libavformat/riff.o libavformat/riffdec.o libavformat/riffenc.o libavformat/rl2.o libavformat/rm.o libavformat/rmdec.o libavformat/rmenc.o libavformat/rmsipr.o libavformat/rpl.o libavformat/rsd.o libavformat/rso.o libavformat/rsodec.o libavformat/rsoenc.o libavformat/rtp.o libavformat/rtpdec.o libavformat/rtpdec_ac3.o libavformat/rtpdec_amr.o libavformat/rtpdec_asf.o libavformat/rtpdec_dv.o libavformat/rtpdec_g726.o libavformat/rtpdec_h261.o libavformat/rtpdec_h263.o libavformat/rtpdec_h263_rfc2190.o libavformat/rtpdec_h264.o libavformat/rtpdec_hevc.o libavformat/rtpdec_ilbc.o libavformat/rtpdec_jpeg.o libavformat/rtpdec_latm.o libavformat/rtpdec_mpa_robust.o libavformat/rtpdec_mpeg12.o libavformat/rtpdec_mpeg4.o libavformat/rtpdec_mpegts.o libavformat/rtpdec_qcelp.o libavformat/rtpdec_qdm2.o libavformat/rtpdec_qt.o libavformat/rtpdec_rfc4175.o libavformat/rtpdec_svq3.o libavformat/rtpdec_vc2hq.o libavformat/rtpdec_vp8.o libavformat/rtpdec_vp9.o libavformat/rtpdec_xiph.o libavformat/rtpenc.o libavformat/rtpenc_aac.o libavformat/rtpenc_amr.o libavformat/rtpenc_chain.o libavformat/rtpenc_h261.o libavformat/rtpenc_h263.o libavformat/rtpenc_h263_rfc2190.o libavformat/rtpenc_h264_hevc.o libavformat/rtpenc_jpeg.o libavformat/rtpenc_latm.o libavformat/rtpenc_mpegts.o libavformat/rtpenc_mpv.o libavformat/rtpenc_vc2hq.o libavformat/rtpenc_vp8.o libavformat/rtpenc_vp9.o libavformat/rtpenc_xiph.o libavformat/rtpproto.o libavformat/rtsp.o libavformat/rtspdec.o libavformat/rtspenc.o libavformat/s337m.o libavformat/samidec.o libavformat/sapdec.o libavformat/sapenc.o libavformat/sauce.o libavformat/sbgdec.o libavformat/sccdec.o libavformat/sccenc.o libavformat/sdp.o libavformat/sdr2.o libavformat/sdsdec.o libavformat/sdxdec.o libavformat/segafilm.o libavformat/segment.o libavformat/shortendec.o libavformat/sierravmd.o libavformat/siff.o libavformat/smacker.o libavformat/smjpeg.o libavformat/smjpegdec.o libavformat/smjpegenc.o libavformat/smoothstreamingenc.o libavformat/smush.o libavformat/sol.o libavformat/soxdec.o libavformat/soxenc.o libavformat/spdif.o libavformat/spdifdec.o libavformat/spdifenc.o libavformat/srtdec.o libavformat/srtenc.o libavformat/srtp.o libavformat/srtpproto.o libavformat/stldec.o libavformat/subfile.o libavformat/subtitles.o libavformat/subviewer1dec.o libavformat/subviewerdec.o libavformat/supdec.o libavformat/supenc.o libavformat/svag.o libavformat/swf.o libavformat/swfdec.o libavformat/swfenc.o libavformat/takdec.o libavformat/tcp.o libavformat/tedcaptionsdec.o libavformat/tee.o libavformat/tee_common.o libavformat/teeproto.o libavformat/thp.o libavformat/tiertexseq.o libavformat/tls.o libavformat/tls_securetransport.o libavformat/tmv.o libavformat/tta.o libavformat/ttaenc.o libavformat/tty.o libavformat/txd.o libavformat/udp.o libavformat/uncodedframecrcenc.o libavformat/unix.o libavformat/url.o libavformat/urldecode.o libavformat/utils.o libavformat/v210.o libavformat/vag.o libavformat/vc1dec.o libavformat/vc1test.o libavformat/vc1testenc.o libavformat/vivo.o libavformat/voc.o libavformat/voc_packet.o libavformat/vocdec.o libavformat/vocenc.o libavformat/vorbiscomment.o libavformat/vpcc.o libavformat/vpk.o libavformat/vplayerdec.o libavformat/vqf.o libavformat/w64.o libavformat/wavdec.o libavformat/wavenc.o libavformat/wc3movie.o libavformat/webm_chunk.o libavformat/webmdashenc.o libavformat/webpenc.o libavformat/webvttdec.o libavformat/webvttenc.o libavformat/westwood_aud.o libavformat/westwood_vqa.o libavformat/wsddec.o libavformat/wtv_common.o libavformat/wtvdec.o libavformat/wtvenc.o libavformat/wv.o libavformat/wvdec.o libavformat/wvedec.o libavformat/wvenc.o libavformat/xa.o libavformat/xmv.o libavformat/xvag.o libavformat/xwma.o libavformat/yop.o libavformat/yuv4mpegdec.o libavformat/yuv4mpegenc.o -lavcodec -lswresample -lavutil -lm -lbz2 -L/sw/lib -lgme -L/sw/lib -lmodplug -L/sw/lib -lopenmpt -lstdc++ -lchromaprint -L/sw/lib -lbluray -lz -Wl,-framework,CoreFoundation -Wl,-framework,Security -L/sw/lib -lrtmp -L/sw/lib -lvpx -lm -L/sw/lib -lvpx -lm -L/sw/lib -lvpx -lm -L/sw/lib -lvpx -lm -L/sw/lib/webp7 -lwebpmux -lwebp -liconv -lm -llzma -lcelt0 -lopencore-amrwb -L/sw/lib -lzvbi -lm -lsnappy -lstdc++ -lz -framework AudioToolbox -lgsm -lmp3lame -lopencore-amrnb -lopenjp2 -L/sw/lib -lopus -L/sw/lib/libspeex1/lib -lspeex -ltheoraenc -ltheoradec -logg -ltwolame -L/sw/lib -lvorbis -L/sw/lib -lvorbisenc -lwavpack -L/sw/lib/webp7 -lwebp -L/sw/lib -lx264 -lpthread -L/sw/lib -lx265 -lxvidcore -pthread -L/sw/lib -lkvazaar -framework VideoToolbox -framework CoreFoundation -framework CoreMedia -framework CoreVideo -framework CoreServices -lm -pthread -lm -Wl,-framework,OpenCL -framework VideoToolbox -framework CoreFoundation -framework CoreVideo -framework CoreMedia 
ld: warning: directory not found for option '-Llibavresample'
Undefined symbols for architecture x86_64:
  "_gcry_randomize", referenced from:
      _hls_start in hlsenc.o
ld: symbol(s) not found for architecture x86_64

-lgcrypt is not being added to the linker command even though it's enabled during configure.

I'm on OS X 10.11.

1 2 3 4 5 6 7 8 9 10 11

Query Language

query: TracLinks and the [[TicketQuery]] macro both use a mini “query language” for specifying query filters. Basically, the filters are separated by ampersands (&). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (|), meaning that the filter matches any of the values. To include a literal & or | in a value, escape the character with a backslash (\).

The available operators are:

= the field content exactly matches one of the values
~= the field content contains one or more of the values
^= the field content starts with one of the values
$= the field content ends with one of the values

All of these operators can also be negated:

!= the field content matches none of the values
!~= the field content does not contain any of the values
!^= the field content does not start with any of the values
!$= the field content does not end with any of the values

The date fields created and modified can be constrained by using the = operator and specifying a value containing two dates separated by two dots (..). Either end of the date range can be left empty, meaning that the corresponding end of the range is open. The date parser understands a few natural date specifications like "3 weeks ago", "last month" and "now", as well as Bugzilla-style date specifications like "1d", "2w", "3m" or "4y" for 1 day, 2 weeks, 3 months and 4 years, respectively. Spaces in date specifications can be left out to avoid having to quote the query string.

created=2007-01-01..2008-01-01 query tickets created in 2007
created=lastmonth..thismonth query tickets created during the previous month
modified=1weekago.. query tickets that have been modified in the last week
modified=..30daysago query tickets that have been inactive for the last 30 days

See also: TracTickets, TracReports, TracGuide

Last modified 2 years ago Last modified on Jul 6, 2015, 10:44:56 PM