From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505AbcDSNlP (ORCPT ); Tue, 19 Apr 2016 09:41:15 -0400 Received: from mail.kernel.org ([198.145.29.136]:60406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754375AbcDSNlL (ORCPT ); Tue, 19 Apr 2016 09:41:11 -0400 Date: Tue, 19 Apr 2016 10:41:07 -0300 From: Arnaldo Carvalho de Melo To: Chris Phlipot Cc: adrian.hunter@intel.com, mingo@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] perf script: fix postgresql ubuntu install instructions Message-ID: <20160419134107.GD3677@kernel.org> References: <1461056164-14914-1-git-send-email-cphlipot0@gmail.com> <1461056164-14914-3-git-send-email-cphlipot0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461056164-14914-3-git-send-email-cphlipot0@gmail.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Apr 19, 2016 at 01:56:02AM -0700, Chris Phlipot escreveu: > The current instructions for setting up an Ubuntu system for using > the export-to-postgresql.py script are incorrect. > > The instructions in the script have been updated to work on newer > versions of ubuntu. > > -Add missing dependencies to apt-get command: > python-pyside.qtsql, libqt4-sql-psql > -Add '-s' option to createuser command to force the user to be a > superuser since the command doesn't prompt as indicated in the > current instructions. > > Tested on: Ubuntu 14.04, Ubuntu 16.04(beta) Applied. > Signed-off-by: Chris Phlipot > --- > tools/perf/scripts/python/export-to-postgresql.py | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/scripts/python/export-to-postgresql.py b/tools/perf/scripts/python/export-to-postgresql.py > index 1b02cdc..6f0ca68 100644 > --- a/tools/perf/scripts/python/export-to-postgresql.py > +++ b/tools/perf/scripts/python/export-to-postgresql.py > @@ -34,10 +34,9 @@ import datetime > # > # ubuntu: > # > -# $ sudo apt-get install postgresql > +# $ sudo apt-get install postgresql python-pyside.qtsql libqt4-sql-psql > # $ sudo su - postgres > -# $ createuser > -# Shall the new role be a superuser? (y/n) y > +# $ createuser -s > # > # An example of using this script with Intel PT: > # > -- > 2.7.4