abrt / satyr

Automatic problem management with anonymous reports
GNU General Public License v2.0
19 stars 23 forks source link

Be able to create a non-indented uReport #104

Open mtoman opened 11 years ago

mtoman commented 11 years ago

At the moment satyr generates a nicely indented uReport, which is perfectly human-readable, but a little non-practical for sending over network. For example the following uReport contains 50% of unnecessary white spaces (satyr generates 35686 bytes, json.dumps() for the very same report only gives 17843)

{   "ureport_version": 2
,   "reason": "Program /usr/bin/compiz was terminated by signal 11"
,   "reporter": {   "name": "satyr"
                ,   "version": "0.5"
                }
,   "os": {   "name": "fedora"
          ,   "version": "19"
          ,   "architecture": "x86_64"
          }
,   "problem": {   "type": "core"
               ,   "component": "compiz"
               ,   "user": {   "root": false
                           ,   "local": true
                           }
               ,   "signal": 11
               ,   "executable": "/usr/bin/compiz"
               ,   "stacktrace":
                     [ {   "crash_thread": true
                       ,   "frames":
                             [ {   "address": 140684137535009
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1848865
                               ,   "function_name": "_swrast_map_texture"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "ff4486216caae0ebf78fecea487829ff22fb44c9"
                               }
                             , {   "address": 140684137535632
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1849488
                               ,   "function_name": "_swrast_map_textures"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "a305183ba8d6e105b66c738679d42d6ac0314951"
                               }
                             , {   "address": 140684137327369
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1641225
                               ,   "function_name": "_swrast_span_render_start"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "0405bb87cfb634424bc2b2f227459f39143147d8"
                               }
                             , {   "address": 140684137331570
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1645426
                               ,   "function_name": "_swrast_render_start"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "e256aa64ea4f21c9e32cd0f782dbc840f150a5b3"
                               }
                             , {   "address": 140684137600679
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1914535
                               ,   "function_name": "_swsetup_RenderStart"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "66687636b3b1588408fc87339457915a0ac76c13"
                               }
                             , {   "address": 140684137193606
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1507462
                               ,   "function_name": "run_render"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "19aadd6fd0a7c3382cab10a9e8709bced9b65969"
                               }
                             , {   "address": 140684137171789
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1485645
                               ,   "function_name": "_tnl_run_pipeline"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "0ac598590371fe103b1b5aab5c6fdb5d84c2bbdf"
                               }
                             , {   "address": 140684142192577
                               ,   "build_id": "298d17ba8c2aa6c5b849c9d3909c374f4133ac2e"
                               ,   "build_id_offset": 231361
                               ,   "function_name": "intelRunPipeline"
                               ,   "file_name": "/usr/lib64/dri/i915_dri.so"
                               ,   "fingerprint": "bcfccc8f1de0456f6e16aefcdc3312bd0afe3078"
                               }
                             , {   "address": 140684137174302
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1488158
                               ,   "function_name": "_tnl_draw_prims"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "5a2c7d3122f6179d8d89ebc92266e41c35fae099"
                               }
                             , {   "address": 140684137176126
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1489982
                               ,   "function_name": "_tnl_vbo_draw_prims"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "b948cd22196b1cffbc8f02be1329d6e9b1228ed6"
                               }
                             , {   "address": 140684137091668
                               ,   "build_id": "234a5c259bdafe470251b1b5eb73f026c3b8dccb"
                               ,   "build_id_offset": 1405524
                               ,   "function_name": "vbo_draw_arrays"
                               ,   "file_name": "/lib64/libdricore9.2.0-devel.so.1"
                               ,   "fingerprint": "b9f8316dc3b6a7411d2e3edae2274f08a1b61dae"
                               }
                             , {   "address": 4345733
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 151429
                               ,   "function_name": "drawWindowGeometry"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "7c249105d3c83b2129a90c8335b0929e6a47c814"
                               }
                             , {   "address": 4354587
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 160283
                               ,   "function_name": "drawWindowTexture"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "fd17ca726852a14c2e889e3de1d65643953a5559"
                               }
                             , {   "address": 140684086398008
                               ,   "build_id": "f7b413204cfcfa2e058506377f61c60fd2ddbd7e"
                               ,   "build_id_offset": 27704
                               ,   "function_name": "blurDrawWindowTexture"
                               ,   "file_name": "/usr/lib64/compiz/libblur.so"
                               ,   "fingerprint": "2207a8ea7881c2591ae93cdc14157b7ca57df61f"
                               }
                             , {   "address": 140684075269917
                               ,   "build_id": "9d0c7f457c47f229e6251fb18d44d5608318493a"
                               ,   "build_id_offset": 12061
                               ,   "function_name": "videoDrawWindowTexture"
                               ,   "file_name": "/usr/lib64/compiz/libvideo.so"
                               ,   "fingerprint": "90002e079282fe8c2a95feafd332ba18bff02f62"
                               }
                             , {   "address": 4356111
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 161807
                               ,   "function_name": "drawWindow"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "a7d8954ca1a32fe6ba60a9a101cee77cd4bbc220"
                               }
                             , {   "address": 140684092771515
                               ,   "build_id": "3893aef7625e609152adca34c591e5590db88bdf"
                               ,   "build_id_offset": 7355
                               ,   "function_name": "decorDrawWindow"
                               ,   "file_name": "/usr/lib64/compiz/libdecoration.so"
                               ,   "fingerprint": "7e2041fa8792cd147c80a5ac0403b6c55fdf0661"
                               }
                             , {   "address": 140684086403673
                               ,   "build_id": "f7b413204cfcfa2e058506377f61c60fd2ddbd7e"
                               ,   "build_id_offset": 33369
                               ,   "function_name": "blurDrawWindow"
                               ,   "file_name": "/usr/lib64/compiz/libblur.so"
                               ,   "fingerprint": "d0fa16f76455722fe38a9c3631dc7f20f7cf9958"
                               }
                             , {   "address": 140684079520521
                               ,   "build_id": "c6049ac6c83b0940478df97aa973cc950c156457"
                               ,   "build_id_offset": 11017
                               ,   "function_name": "svgDrawWindow"
                               ,   "file_name": "/usr/lib64/compiz/libsvg.so"
                               ,   "fingerprint": "961fc8e17da54639071a91c72cc6805b051af2df"
                               }
                             , {   "address": 140684075263680
                               ,   "build_id": "9d0c7f457c47f229e6251fb18d44d5608318493a"
                               ,   "build_id_offset": 5824
                               ,   "function_name": "videoDrawWindow"
                               ,   "file_name": "/usr/lib64/compiz/libvideo.so"
                               ,   "fingerprint": "d39308c7044196b4ad118227c3e16fad01ac992f"
                               }
                             , {   "address": 140684073146389
                               ,   "build_id": "0eec4ffb38f3ff14fa7db674c6e9f7f382a4ed32"
                               ,   "build_id_offset": 6165
                               ,   "function_name": "obsDrawWindow"
                               ,   "file_name": "/usr/lib64/compiz/libobs.so"
                               ,   "fingerprint": "abfc9dfc120d97425adac9852807a3db24e2fa9d"
                               }
                             , {   "address": 140684062893261
                               ,   "build_id": "3ffdec4846419a037915facbb1173c55d8cdf712"
                               ,   "build_id_offset": 13517
                               ,   "function_name": "scalePaintWindow"
                               ,   "file_name": "/usr/lib64/compiz/libscale.so"
                               ,   "fingerprint": "dc9cbf426fcf540379372eb46d4c52b8186b38b4"
                               }
                             , {   "address": 140684060768615
                               ,   "build_id": "b353ac001e2ced8b574fdf8d3bc01518a0dd851a"
                               ,   "build_id_offset": 6503
                               ,   "function_name": "movePaintWindow"
                               ,   "file_name": "/usr/lib64/compiz/libmove.so"
                               ,   "fingerprint": "352bc5cf09233cea84fd089527a146cfb5b7d8dc"
                               }
                             , {   "address": 140684058646860
                               ,   "build_id": "4f18bbc422cefd8f92f47020cc00f5bb5b7298a1"
                               ,   "build_id_offset": 18764
                               ,   "function_name": "switchPaintWindow"
                               ,   "file_name": "/usr/lib64/compiz/libswitcher.so"
                               ,   "fingerprint": "ea3e34cbfe79299f967a0456f38fffffa85d5951"
                               }
                             , {   "address": 4346139
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 151835
                               ,   "function_name": "paintOutputRegion.isra.1"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "1eedaa02c3860515a216943d65bdf5dde1cbb813"
                               }
                             , {   "address": 4350070
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 155766
                               ,   "function_name": "paintOutput"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "c643e7413a6ae665406e8d673251e375b68a7cb3"
                               }
                             , {   "address": 140684099140898
                               ,   "build_id": "1724f8f72c97f6ac02a61db313a853a0a334512a"
                               ,   "build_id_offset": 7458
                               ,   "function_name": "shotPaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libscreenshot.so"
                               ,   "fingerprint": "d7c1898c6f75e926dd13c05c70a8f1ccbadb910a"
                               }
                             , {   "address": 140684097021516
                               ,   "build_id": "27e6c6711294efce815ef08d575380ea043a4d26"
                               ,   "build_id_offset": 5708
                               ,   "function_name": "minPaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libminimize.so"
                               ,   "fingerprint": "aca3f9e554ca5fb016b17d72f4b60b6df97c13e2"
                               }
                             , {   "address": 140684088522994
                               ,   "build_id": "c034e6299e7871d8f3efa469844bc437a9345857"
                               ,   "build_id_offset": 6386
                               ,   "function_name": "clonePaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libclone.so"
                               ,   "fingerprint": "1b350a52ac753ad1431fabd3e0334d1807f9311b"
                               }
                             , {   "address": 140684086387597
                               ,   "build_id": "f7b413204cfcfa2e058506377f61c60fd2ddbd7e"
                               ,   "build_id_offset": 17293
                               ,   "function_name": "blurPaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libblur.so"
                               ,   "fingerprint": "74511dad0bfe976dabc83b83aa287af582339297"
                               }
                             , {   "address": 140684081639076
                               ,   "build_id": "480c8021d609290fcccc6d990352ccd9ba5d29a8"
                               ,   "build_id_offset": 11940
                               ,   "function_name": "resizePaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libresize.so"
                               ,   "fingerprint": "e761ae6a272330ed4a6302a20b63cf783a1f3b66"
                               }
                             , {   "address": 140684071014729
                               ,   "build_id": "3d539119db9b203fc4a19878fbc58f25525dee94"
                               ,   "build_id_offset": 8521
                               ,   "function_name": "wobblyPaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libwobbly.so"
                               ,   "fingerprint": "aca3f9e554ca5fb016b17d72f4b60b6df97c13e2"
                               }
                             , {   "address": 140684066762246
                               ,   "build_id": "71e607640feb7594132517d36d3b0f7d7d039970"
                               ,   "build_id_offset": 11782
                               ,   "function_name": "cubePaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libcube.so"
                               ,   "fingerprint": "968fb3ff793897532a461ecd9e7ffa8c4365c6cc"
                               }
                             , {   "address": 140684062889529
                               ,   "build_id": "3ffdec4846419a037915facbb1173c55d8cdf712"
                               ,   "build_id_offset": 9785
                               ,   "function_name": "scalePaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libscale.so"
                               ,   "fingerprint": "aca3f9e554ca5fb016b17d72f4b60b6df97c13e2"
                               }
                             , {   "address": 140684058641924
                               ,   "build_id": "4f18bbc422cefd8f92f47020cc00f5bb5b7298a1"
                               ,   "build_id_offset": 13828
                               ,   "function_name": "switchPaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/libswitcher.so"
                               ,   "fingerprint": "cd0136faab5d8df4619a42d42338f72f32b830de"
                               }
                             , {   "address": 140684056506871
                               ,   "build_id": "8ed5018678a1b96e26a6157681106ffc28e367ae"
                               ,   "build_id_offset": 12791
                               ,   "function_name": "rotatePaintOutput"
                               ,   "file_name": "/usr/lib64/compiz/librotate.so"
                               ,   "fingerprint": "4f65e07de0a4957f77e1a3d491ab8d02d4b99254"
                               }
                             , {   "address": 4254778
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 60474
                               ,   "function_name": "paintScreen"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "565ad1e98db5939ee7d3f689b72d87984c866563"
                               }
                             , {   "address": 140684099141541
                               ,   "build_id": "1724f8f72c97f6ac02a61db313a853a0a334512a"
                               ,   "build_id_offset": 8101
                               ,   "function_name": "shotPaintScreen"
                               ,   "file_name": "/usr/lib64/compiz/libscreenshot.so"
                               ,   "fingerprint": "2b52f0e54533c6fe4704e2759899f07e3f727634"
                               }
                             , {   "address": 140684066762008
                               ,   "build_id": "71e607640feb7594132517d36d3b0f7d7d039970"
                               ,   "build_id_offset": 11544
                               ,   "function_name": "cubePaintScreen"
                               ,   "file_name": "/usr/lib64/compiz/libcube.so"
                               ,   "fingerprint": "fdc5cc55c83f302eba277a43211fdcd44fe65509"
                               }
                             , {   "address": 4256367
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 62063
                               ,   "function_name": "eventLoop"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "ec37b975e0cd7911c30242399066a2fd30e78b01"
                               }
                             , {   "address": 4243696
                               ,   "build_id": "a59b7484cde10b6cd49b2c9d8f33371d5faa9553"
                               ,   "build_id_offset": 49392
                               ,   "function_name": "main"
                               ,   "file_name": "/usr/bin/compiz"
                               ,   "fingerprint": "a8cbf2fce5bcfe0a180a70f4386a98c9e288e32e"
                               } ]
                       } ]
               }
,   "packages": [ {   "name": "cairo"
                  ,   "epoch": 0
                  ,   "version": "1.12.14"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353157
                  }
                , {   "name": "compiz"
                  ,   "epoch": 1
                  ,   "version": "0.8.8"
                  ,   "release": "23.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377646238
                  ,   "package_role": "affected"
                  }
                , {   "name": "expat"
                  ,   "epoch": 0
                  ,   "version": "2.1.0"
                  ,   "release": "5.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353088
                  }
                , {   "name": "fontconfig"
                  ,   "epoch": 0
                  ,   "version": "2.10.93"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353123
                  }
                , {   "name": "freetype"
                  ,   "epoch": 0
                  ,   "version": "2.4.11"
                  ,   "release": "6.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353087
                  }
                , {   "name": "gdk-pixbuf2"
                  ,   "epoch": 0
                  ,   "version": "2.28.2"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353112
                  }
                , {   "name": "glib2"
                  ,   "epoch": 0
                  ,   "version": "2.36.3"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616383
                  }
                , {   "name": "glibc"
                  ,   "epoch": 0
                  ,   "version": "2.17"
                  ,   "release": "13.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616363
                  }
                , {   "name": "graphite2"
                  ,   "epoch": 0
                  ,   "version": "1.2.2"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616471
                  }
                , {   "name": "harfbuzz"
                  ,   "epoch": 0
                  ,   "version": "0.9.19"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616471
                  }
                , {   "name": "libICE"
                  ,   "epoch": 0
                  ,   "version": "1.0.8"
                  ,   "release": "5.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353088
                  }
                , {   "name": "libSM"
                  ,   "epoch": 0
                  ,   "version": "1.2.1"
                  ,   "release": "5.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353088
                  }
                , {   "name": "libX11"
                  ,   "epoch": 0
                  ,   "version": "1.6.0"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616384
                  }
                , {   "name": "libXau"
                  ,   "epoch": 0
                  ,   "version": "1.0.8"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXcomposite"
                  ,   "epoch": 0
                  ,   "version": "0.4.4"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXcursor"
                  ,   "epoch": 0
                  ,   "version": "1.1.14"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXdamage"
                  ,   "epoch": 0
                  ,   "version": "1.1.4"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXext"
                  ,   "epoch": 0
                  ,   "version": "1.3.2"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXfixes"
                  ,   "epoch": 0
                  ,   "version": "5.0.1"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXinerama"
                  ,   "epoch": 0
                  ,   "version": "1.1.3"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXrandr"
                  ,   "epoch": 0
                  ,   "version": "1.4.1"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXrender"
                  ,   "epoch": 0
                  ,   "version": "0.9.7"
                  ,   "release": "6.20130524git786f78fd8.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libXxf86vm"
                  ,   "epoch": 0
                  ,   "version": "1.1.3"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353093
                  }
                , {   "name": "libcompizconfig"
                  ,   "epoch": 1
                  ,   "version": "0.8.8"
                  ,   "release": "8.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377646234
                  }
                , {   "name": "libcroco"
                  ,   "epoch": 0
                  ,   "version": "0.6.8"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353093
                  }
                , {   "name": "libdrm"
                  ,   "epoch": 0
                  ,   "version": "2.4.46"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616682
                  }
                , {   "name": "libffi"
                  ,   "epoch": 0
                  ,   "version": "3.0.13"
                  ,   "release": "4.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353088
                  }
                , {   "name": "libgcc"
                  ,   "epoch": 0
                  ,   "version": "4.8.1"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353071
                  }
                , {   "name": "libpciaccess"
                  ,   "epoch": 0
                  ,   "version": "0.13.1"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libpng"
                  ,   "epoch": 2
                  ,   "version": "1.5.13"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353087
                  }
                , {   "name": "librsvg2"
                  ,   "epoch": 0
                  ,   "version": "2.37.0"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353158
                  }
                , {   "name": "libselinux"
                  ,   "epoch": 0
                  ,   "version": "2.1.13"
                  ,   "release": "15.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353087
                  }
                , {   "name": "libstdc++"
                  ,   "epoch": 0
                  ,   "version": "4.8.1"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353087
                  }
                , {   "name": "libuuid"
                  ,   "epoch": 0
                  ,   "version": "2.23.2"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616390
                  }
                , {   "name": "libwayland-client"
                  ,   "epoch": 0
                  ,   "version": "1.2.0"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616473
                  }
                , {   "name": "libwayland-server"
                  ,   "epoch": 0
                  ,   "version": "1.2.0"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616622
                  }
                , {   "name": "libxcb"
                  ,   "epoch": 0
                  ,   "version": "1.9"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353092
                  }
                , {   "name": "libxml2"
                  ,   "epoch": 0
                  ,   "version": "2.9.1"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353088
                  }
                , {   "name": "libxslt"
                  ,   "epoch": 0
                  ,   "version": "1.1.28"
                  ,   "release": "3.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353091
                  }
                , {   "name": "mesa-dri-drivers"
                  ,   "epoch": 0
                  ,   "version": "9.2"
                  ,   "release": "0.14.20130723.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616739
                  }
                , {   "name": "mesa-libEGL"
                  ,   "epoch": 0
                  ,   "version": "9.2"
                  ,   "release": "0.14.20130723.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616733
                  }
                , {   "name": "mesa-libGL"
                  ,   "epoch": 0
                  ,   "version": "9.2"
                  ,   "release": "0.14.20130723.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616691
                  }
                , {   "name": "mesa-libGLU"
                  ,   "epoch": 0
                  ,   "version": "9.0.0"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377646235
                  }
                , {   "name": "mesa-libgbm"
                  ,   "epoch": 0
                  ,   "version": "9.2"
                  ,   "release": "0.14.20130723.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616558
                  }
                , {   "name": "mesa-libglapi"
                  ,   "epoch": 0
                  ,   "version": "9.2"
                  ,   "release": "0.14.20130723.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616433
                  }
                , {   "name": "pango"
                  ,   "epoch": 0
                  ,   "version": "1.34.1"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353157
                  }
                , {   "name": "pcre"
                  ,   "epoch": 0
                  ,   "version": "8.32"
                  ,   "release": "7.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353087
                  }
                , {   "name": "pixman"
                  ,   "epoch": 0
                  ,   "version": "0.30.0"
                  ,   "release": "1.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353091
                  }
                , {   "name": "protobuf"
                  ,   "epoch": 0
                  ,   "version": "2.5.0"
                  ,   "release": "4.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377646233
                  }
                , {   "name": "startup-notification"
                  ,   "epoch": 0
                  ,   "version": "0.12"
                  ,   "release": "6.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353096
                  }
                , {   "name": "systemd-libs"
                  ,   "epoch": 0
                  ,   "version": "204"
                  ,   "release": "9.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1377616405
                  }
                , {   "name": "xcb-util"
                  ,   "epoch": 0
                  ,   "version": "0.3.9"
                  ,   "release": "2.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353096
                  }
                , {   "name": "xz-libs"
                  ,   "epoch": 0
                  ,   "version": "5.1.2"
                  ,   "release": "4alpha.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353088
                  }
                , {   "name": "zlib"
                  ,   "epoch": 0
                  ,   "version": "1.2.7"
                  ,   "release": "10.fc19"
                  ,   "architecture": "x86_64"
                  ,   "install_time": 1372353087
                  } ]
}
mmilata commented 11 years ago

The whitespace is pretty much hardcoded in the json output procedures (surely can be stripped though).

mtoman commented 11 years ago
mmilata commented 11 years ago

Note to future self: work in progress regarding this ticket has been pushed to branch gh104-smaller-ureport.

jfilak commented 11 years ago

Well, I'd rather work up a bit more systematic and reliable solution instead of removing redundant white space from JSON formatted text :) How about to stop insisting on the design where JSON is the only supported output format?

mmilata commented 11 years ago

Care to elaborate? IMHO, the current design does not in any way prevent adding support for other output formats.

I agree that removing the white space after the JSON-formatted text is generated is retarded, but it is the least time-consuming approach due to the nature of the formatting code.