Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6HSy-0000Sz-RM for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 May 2016 13:06:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6HSx-00067q-TT for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 May 2016 13:06:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6HSl-0005tk-1J for pgadmin-hackers@postgresql.org; Fri, 27 May 2016 13:06:03 +0000 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b6HSd-00069G-F7 for pgadmin-hackers@postgresql.org; Fri, 27 May 2016 13:06:02 +0000 Received: by mail-io0-x22e.google.com with SMTP id t40so71670596ioi.0 for ; Fri, 27 May 2016 06:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ss3S41QFbh9BAw+hAGFfbnE9KCmMiz1KvAqj/V6LFuA=; b=ZVIU0HolQQGFxAg8FKXPQXI1ct2cuI2PDIFYOdLwS1mrv0Dgk6elCpMUk3iGk392Jf oOHXpEbTju4MFi8+EQXJdqcloS86Hsm1jyOYixu8T0vceFbGRjb4A+BC3g3P2LqTGjJ/ 5tSCSPKySutCa/NxDDnErWPdNFkOA+qYz7cSpF865uHC/96xr9N4cwOfUq3Q3BHBG4Ps jSPqsgg8rT6ybevfZCUyT48GL1USLEA9SDfVI3pKiwzA2XM0+H/4oFYZ3t6LkSQ+NTBb 9Kxwg/Bx2iaD06W40WdRpdmZky7cTqVMY/1bZC4hySD4edsXZxHQQ5jjfC3v0cWemK4Z EmIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ss3S41QFbh9BAw+hAGFfbnE9KCmMiz1KvAqj/V6LFuA=; b=dRgdYwsujveeXm/snLejQMNADO59p+hNov5sabaLYXIM41HE3MEWE5n1v39gxfkcI3 Oj4+jzMiQZssnj8dLc4qYm9Lfjn5v5zzelfJ1I2ZalfNAIlNwuA2MW9cB38e5ARgepcP DvrPnpP1PHvnV+bQCyisLKhs7sW6/KT5VrljcXsCw3gNrIEyEhgxjColYjzcdpfy5Ied tQDKxK6bJftF3wwuUM5V9WliqWpcMIQ5QltgiSG7wUDEqanMdBbgh3LwP4AVWAWJjaq0 dy8XRHgv6dzLV52i9EqKx6kwEOMnsW3k7RXZQZsu+ry03eqfEEO8ZDebyIn7HC8GlD6j adxg== X-Gm-Message-State: ALyK8tJlQZOIDIb+y4ZMu2+ZYlrlgGKTv1EjdzMfU+6ge96BTZk/sCqYO+T8QAyUwo3v48cML35a0fL/IcMgHw== MIME-Version: 1.0 X-Received: by 10.107.148.8 with SMTP id w8mr13700743iod.63.1464354352867; Fri, 27 May 2016 06:05:52 -0700 (PDT) Received: by 10.64.236.101 with HTTP; Fri, 27 May 2016 06:05:52 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 May 2016 14:05:52 +0100 Message-ID: Subject: Re: Patch for pgAdmin4 RPM package From: Dave Page To: Sandeep Thakkar Cc: pgadmin-hackers , Hamid Quddus , =?UTF-8?B?RGV2cmltIEfDnE5Ew5xa?= Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org [Adding Devrim] On Fri, May 27, 2016 at 1:55 PM, Sandeep Thakkar wrote: > > > On Mon, May 9, 2016 at 6:35 PM, Dave Page wrote: >> >> Hi >> >> Initial eyeball review comments below... >> >> On Fri, Apr 22, 2016 at 11:57 AM, Sandeep Thakkar >> wrote: >>> >>> Hi Team, Dave, >>> >>> Attached herewith are two patches. >>> >>> pgadmin4-rpm.patch - This is the main patch that includes scripts, >>> makefiles and spec to create RPMs for RHEL6/RHEL7/F-22/F-23/F-24. >> >> >> Can we keep the directory names in lower case? >> > > Sure. Will do that. >>> >>> It will create two RPMs i.e pgadmin4 and pgadmin4-web. The pgadmin4 tpm >>> depends on web and the web rpm depends on the python packages. I have >>> commented the list of packages which are not available on some systems so >>> that Devrim can build them. >>> >>> The installation path for pgadmin4 is "/usr/pgadmin4-." and >>> pgadmin4-web is the site-packages/pgadmin4-web >> >> Shouldn't the -web package also have the major.minor version number in the >> path, to allow side-by-side installation? > > Right. Now that we don't have major/minor, so, will it be /usr/pgadmin4-v1 > and pgadmin4-web-v1 ? Or? I think that's fine. >> >> >>> >>> pgadmin4-server-ini.patch - This is the patch for runtime/Server.cpp. As >>> said pgadmin4-web and runtime installation directories are different and >>> that means web does not exists in parallel to runtime like in sources. >>> >>> I observed that the location of application settings was not defined in >>> Server.cpp. As per QSettings doc, the default location on Unix is the >>> $HOME/.config//.conf. Here, $HOME depends on the user >>> that runs the application. So, I thought why not to define the application >>> settings in application directory itself. RPM then knows where to define the >>> ApplicationPath. I tested it and it worked fine with me. I haven't done this >>> change for platform dependent. >> >> Doesn't that prevent non-root users from changing the settings? Or (if you >> widen the permissions on the ini file), allow one user to mis-configure the >> app for others? I think what is needed here is a search path change, much >> like you added for the Mac app bundle. >> > Right. Will use python command to find the site-packages path and then > concatenate pgadmin4-web directory name. OK. >> Other thoughts: >> >> - Please rename the README to README.txt >> >> - The code to build the RPMs should be entirely confined to pkg/rpm. A >> Makefile target should be added to /Makefile to build/clean the targets >> (this mistake was made with the Mac package too, but was one of the original >> requirements). >> >> Please resolve these issues and I'll take another look. >> > Sure. Will share it with you soon. -> Devrim please :-) -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers