Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8kdC-00006c-Ki for pgadmin-hackers@arkaria.postgresql.org; Fri, 03 Jun 2016 08:39:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b8kdB-0005rV-Vy for pgadmin-hackers@arkaria.postgresql.org; Fri, 03 Jun 2016 08:39:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b8kcy-0005de-Vd for pgadmin-hackers@postgresql.org; Fri, 03 Jun 2016 08:38:49 +0000 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b8kcv-0004ft-NZ for pgadmin-hackers@postgresql.org; Fri, 03 Jun 2016 08:38:47 +0000 Received: by mail-io0-x234.google.com with SMTP id o189so58311805ioe.2 for ; Fri, 03 Jun 2016 01:38:45 -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:from:date:message-id:subject:to :cc; bh=i6wLZ/9NJHITnBNTNba/ophpo064R4hf0PKAdy14AAI=; b=BK+3Mi/xvKkJhuN77mwdLT2+MujT4JQffvgnFQrQdGf4PeSZs6JYOkYKsYJz1vRQzv tOxYV23XvF+AVarH4pOqLq2fkyWdWTljBeH4GzrmNQk3Oea9XSjflkOJ2zouRiiuQpei Fh/iUUaTCmIoUQozbt7z/kXcCS6EYj35CdSIQhgt3K5PEhuMiAOoBmxqwx/l9rYobzis y4bnWPZXWfTkLOzu8N0yaEzMcaMifLfKKsqwe5dOGDtHoKEFijQzU2p/R+DhHLaYAsMK R33OVS3HvrHXOKFxEDRL4HZnnpWDtJ1Osx339kWeoCOZA6EZiPF8ft2n52ivzcEr4yXB APmA== 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:from:date :message-id:subject:to:cc; bh=i6wLZ/9NJHITnBNTNba/ophpo064R4hf0PKAdy14AAI=; b=CsDP7vbKklCcnSs4A9oOjEafhV7QUnrJNyuO+apFAw3a4XbtUd+gihAjAGfWiphhom i4fQr//SjxrU7v/TMt4YMMY0Av0InvdyYpcgi2XQ+ZGbw/Gp6ig6NvwC2WxtrG1HsfLS EztbgKN0psrDz0Apxa7XG4BRuAVWgfd5JGwgpY7/wIKSr4biiTIvMboBgPWqBf3bnAke DzPCZxstsXwJuQ8Nff1zcGG2h+mCncwCqi4XFFeBnZ7mEyDlGnchroe0Sb5Q5RnygaPn SKCQYNWaJMQ7/hho9A7Fr3vShl8n4OxipGeSXFXDInID+PvNyo6Jissuoe8eJ6WX0VIQ GdnA== X-Gm-Message-State: ALyK8tKSK5qOm2oB3BUeyNQWUXytspgUKqaG7J+9oKxi9mf4YlNVS+2TzGumKvxBuND/CX2Q1N7hfrHC6rdwsg== X-Received: by 10.107.140.132 with SMTP id o126mr3385472iod.70.1464943124099; Fri, 03 Jun 2016 01:38:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.236.101 with HTTP; Fri, 3 Jun 2016 01:38:43 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 3 Jun 2016 09:38:43 +0100 Message-ID: Subject: Re: Patch for pgAdmin4 RPM package 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 Hi On Thu, Jun 2, 2016 at 4:23 PM, Sandeep Thakkar wrote: > Hi Devrim, Hi Dave, > > I have updated the patch. The earlier patch may fail because of app bundle > commit in git. > > For testing, you may define the source tarball location as : > Source0: > http://bugatti.pn.in.enterprisedb.com/temp/pgadmin4/%{name}-v%{version}.tar.gz > > Known issue that I'm still working on: > 1. web rpm has a dependency on doc. But, even if I install doc, the web > still complains. Here is the scenario: > [root@localhost tmp]# rpm -ivh > dist/noarch/pgadmin4-web-1.0_dev-1.rhel7.noarch.rpm > error: Failed dependencies: > pgadmin4-doc = 1.0_dev is needed by pgadmin4-web-1.0_dev-1.rhel7.noarch > ... ( trimmed the python dependencies list here...) > > [root@localhost tmp]# rpm -ivh > dist/noarch/pgadmin4-docs-1.0_dev-1.rhel7.noarch.rpm > Preparing... ################################# > [100%] > Updating / installing... > 1:pgadmin4-docs-1.0_dev-1.rhel7 ################################# > [100%] > > > [root@localhost tmp]# yum list | grep pgadmin4-docs > pgadmin4-docs.noarch 1.0_dev-1.rhel7 > installed > > > [root@localhost tmp]# rpm -ivh > dist/noarch/pgadmin4-web-1.0_dev-1.rhel7.noarch.rpm > error: Failed dependencies: > pgadmin4-doc = 1.0_dev is needed by pgadmin4-web-1.0_dev-1.rhel7.noarch You have a typo - the Requires line is for pgadmin4-doc, but the RPM is pgadmin4-docs. Other review comments: - We have multiple identical pgadmin4.spec.in's in the patch. We need to get that down to a single file. - In fact, why do we need a directory for each distro at all? As far as I can see, the only difference is the $DIST definition, which is surely something we can get programmatically very easily. It seems to me we could reduce this all to 3 files - Makefile, README and pgadmin4.spec.in - make rpm has a dependency on make prep. This has 2 issues as far as I can see: - It does a git pull, which is bad. If I'm making an RPM from within the source tree, I want it for the current source. The git pull only makes sense for external builds, i.e. in a much larger automated build system. - It goes and grabs the source code and patches from the FTP site. Again, this is not what I want for an "in-tree" build. I want to use the source code as I have it now. -- 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