Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3OaM-0008Hx-Ay for pgadmin-hackers@arkaria.postgresql.org; Thu, 19 May 2016 14:05:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b3OaL-0006J4-8f for pgadmin-hackers@arkaria.postgresql.org; Thu, 19 May 2016 14:05:57 +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 1b3OaK-0006Iy-2q for pgadmin-hackers@postgresql.org; Thu, 19 May 2016 14:05:56 +0000 Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b3OaB-0007LM-5y for pgadmin-hackers@postgresql.org; Thu, 19 May 2016 14:05:55 +0000 Received: by mail-qg0-x230.google.com with SMTP id a75so13147573qge.2 for ; Thu, 19 May 2016 07:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=e0vM/l+fAlkOfzKtaZf2uh6pk47J23xQwa3temY9fE8=; b=lOidsgxoBh130HRCQKj3mbY+OIVB7AnJw7K6/qepHfwb7JHrWPr8DaUj/FsuO7k8C5 9F+oI2FIZkBBwv5cAF/rH8QdqXpesB4OUheZZc0CABHqPtP5oOukPrDzL23VD3mGE7Ev MBeYbIfaXfGYOpMh6qm3YBvtytEH9SoLSuseW3d58+Rs4rMMsVnLHbhv4654NP6gg9vK GyM15fvSilV1O7smkN6PK/jIhAzx9E8mjaRcztyCTbLOMBeAsHryn2yr3yTWQ3D4kGJR ZwSSaJXJYnPRIl0pd/RMkdwyuE2c612Lbl+nT6uTAiHrqrhXOezDCia/joc9xjsh2drd SDoQ== 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=e0vM/l+fAlkOfzKtaZf2uh6pk47J23xQwa3temY9fE8=; b=NppC1cF4Cobg20ihj8sJCWtB2dZCtWWvh2Kzte462C+O8yPJ60RnHvkcJS4TimFCw8 TMs/repuaoEAqqPV7REc3C/wCek42ZUYOn5HPaKxu0LOZK+/WgC39jGJHljs8VFu9cZ6 ZyOK/KpK4oasTUVEFJrU5KuHvIoaHJwgInSoGHBzyBKWZOmhUCLU6Q3XeSDV4N5JTvtr 9JlNfrt+uXeqzRy0iP8bjmMGOrzPDK+SPGxjk8abuWuBaufAaHWPFj7JY6doHfvTrkDA V83NQhGaFX1mqcPspY/blxjLJ0cAYrfUHjWvvb+HLjOgeeGw8Ii+Pv+gssDhHEeg7SX1 TqAQ== X-Gm-Message-State: AOPr4FW8bHf0HPtEPKcGQTP9tg3djc40z56JqfxvLdaOcmTvo8aA0EGB9UACuWt14WOCb5bGXRUiRsu7br0HB7C6 MIME-Version: 1.0 X-Received: by 10.140.82.70 with SMTP id g64mr13666530qgd.82.1463666745328; Thu, 19 May 2016 07:05:45 -0700 (PDT) Received: by 10.140.99.43 with HTTP; Thu, 19 May 2016 07:05:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 May 2016 19:35:45 +0530 Message-ID: Subject: Re: Patch for pgAdmin4 package on Mac OS X From: Sandeep Thakkar To: Dave Page Cc: Paresh More , pgadmin-hackers , Hamid Quddus Content-Type: multipart/alternative; boundary=001a11c118e26ce0580533327831 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 --001a11c118e26ce0580533327831 Content-Type: text/plain; charset=UTF-8 Hmm.. looks like some difference in the QT installation. Can you please provide me the otool -L output for pgAdmin4 from /mac-build/pgAdmin4.app/Contents/MacOS/pgAdmin4 and also the tree for $QTDIR/lib Thanks. On Thu, May 19, 2016 at 7:20 PM, Dave Page wrote: > Hi > > I see the following error when attempting to build. My configurable > paths match the defaults in the README. > > App: pgAdmin4.app: Post-processing: .//Contents/MacOS/pgAdmin4 > App: pgAdmin4.app: Adding symlink: QtWebKitWidgets (because of: > .//Contents/MacOS/pgAdmin4) > cp: > @rpath/QtWebKitWidgets.framework/Versions/5/../../../QtWebKitWidgets.framework: > No such file or directory > chmod: > Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets: > No such file or directory > Rewriting ID in > Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets > to QtWebKitWidgets > error: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: > can't open file: > Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets > (No such file or directory) > complete-bundle.sh failed > make: *** [appbundle] Error 1 > > On Thu, May 19, 2016 at 6:34 AM, Sandeep Thakkar > wrote: > > Hi Dave > > > > I have added the 'docs' target in the /Makefile. This target is also > called > > by appbundle. pgAdmin4 versioning change is also taken care of. > > > > I have attached the updated patch here. Kindly review and let me know > your > > feedback. Thanks. > > > > On Tue, May 17, 2016 at 4:52 PM, Dave Page wrote: > >> > >> > >> > >> On Tuesday, May 17, 2016, Sandeep Thakkar > >> wrote: > >>> > >>> Hi Dave > >>> > >>> I have fixed the issues. Attached is the updated patch. > >>> > >>> The docs are built as part of 'appbundle' target, there is no separate > >>> target in Makefile for this. I observed that it requires the python > modules > >>> to get this built. We create virtual environment as a part of > 'appbundle' > >>> target because we do everything in a single script "build.sh". Hence, > right > >>> now I added doc build in the same build script. > >> > >> > >> Right - I was suggesting you create the 'docs' target, then use it. > >> > >>> > >>> > >>> BTW, the online help returns me the following error now: > >>> "The server encountered an internal error and was unable to complete > your > >>> request. Either the server is overloaded or there is an error in the > >>> application." Since this is not 404, it means that it atleast got > >>> index.html, right? May be this should be handled in the source code. > >> > >> > >> It works fine for me on my dev machines. If there's a problem, we need > to > >> diagnose it. > >> > >>> > >>> > >>> Paresh is working on updating pgAdmin4.py to autocreate database > >>> configuration if does not exist. He will share the patch. > >>> > >>> On Fri, May 13, 2016 at 6:41 PM, Dave Page wrote: > >>>> > >>>> On Fri, May 13, 2016 at 2:01 PM, Sandeep Thakkar > >>>> wrote: > >>>> > Thanks Dave. > >>>> > > >>>> > Please see inline. > >>>> > > >>>> > On Fri, May 6, 2016 at 9:03 PM, Dave Page > wrote: > >>>> >> > >>>> >> Hi > >>>> >> > >>>> >> Thanks. I've applied the path fix patch. The second one needs a > >>>> >> little > >>>> >> work - I've attached an updated version to work from: > >>>> >> > >>>> >> - I've updated the README, and some of the default values. > >>>> > > >>>> > OK. The default values of PGDIR and QTDIR set by you is different > than > >>>> > mine. > >>>> > I installed them through macports. > >>>> > >>>> Right. I went with the default directories from the original projects. > >>>> > >>>> >> > >>>> >> - I've removed the file type registration for .sql files. > >>>> > > >>>> > > >>>> > OK. > >>>> >> > >>>> >> > >>>> >> - Should we note that the user may need to run in a virtualenv? > >>>> > > >>>> > > >>>> > No, we bundle private environment, right? > >>>> > >>>> I meant "the user building the package", not the end user. > >>>> > >>>> >> - Please move build-mac.sh to pkg/build.sh, and create a target in > >>>> >> /Makefile to > >>>> >> execute it, e.g. "make appbundle" > >>>> > > >>>> > > >>>> > Sure. You mean move to pkg/mac/build.sh, right? > >>>> > >>>> Yes :-) > >>>> > >>>> >> - Extend the Makefile to add a "clean-appbundle" target, which > should > >>>> >> also > >>>> >> be > >>>> >> called by the "clean" target. > >>>> >> > >>>> > OK. > >>>> >> > >>>> >> - At present, it is bundling my pre-existing configuration > database. > >>>> >> It > >>>> >> *must* > >>>> >> create a new one and bundle that, without touching the existing > one > >>>> >> (I > >>>> >> guess > >>>> >> that may require a new command line option for setup.py). > >>>> > > >>>> > > >>>> > No, it's not bundling the pgadmin4.db at all, I skipped it :). > Paresh > >>>> > is > >>>> > working on this. > >>>> > >>>> Oh - in that case it used my existing one. Which of course, it should > >>>> not overwrite if already present (which reminds me - adding a todo > >>>> item to auto-upgrade the database if needed on first run). > >>>> > >>>> >> - The online help is broken (are you building it)? I suggest > adding a > >>>> >> top-level > >>>> >> Makefile target to do so. > >>>> >> > >>>> > Sorry, which online help? > >>>> > >>>> That which can be found in $SRC/doc - currently only for en_US. At > >>>> present it's built with "cd doc/en_US && make -f Makefile.sphinx > >>>> html", but I think we should have a top-level target to call that for > >>>> us. > >>>> > >>>> The help can then be accessed from Help -> Online Help within pgAdmin. > >>>> Obviously the files need to be put in the right place in the app > >>>> bundle. > >>>> > >>>> >> - Working directories should be added to /.gitignore. Please ensure > >>>> >> they > >>>> >> don't > >>>> >> clash with those used by pip (and ideally are in one place, e.g. > >>>> >> mac-build/). > >>>> >> > >>>> > OK. > >>>> > > >>>> >> > >>>> >> - I saw various errors in the build output, though the resulting > DMG > >>>> >> seemed to > >>>> >> work fine; > >>>> >> > >>>> > Yeah, because I had libpq.dylib present in $PGDIR/ and may be yours > >>>> > present > >>>> > in $PGDIR/lib/. I will be using the default values suggested by you > >>>> > and fix > >>>> > this. Thanks! > >>>> > >>>> Right - please make sure the build fails in cases like this too. > >>>> > >>>> Thanks. > >>>> > >>>> >> ... > >>>> >> cp: /usr/local/pgsql/libpq.5.dylib: No such file or directory > >>>> >> libpq.5.dylib not found in /usr/local/pgsql > >>>> >> Completing app: /Users/dpage/git/pgadmin4/pgAdmin4.app > >>>> >> ... > >>>> >> > >>>> >> ... > >>>> >> App: pgAdmin4.app: Post-processing: .//Contents/MacOS/pgAdmin4 > >>>> >> App: pgAdmin4.app: Adding symlink: QtWebKitWidgets (because of: > >>>> >> .//Contents/MacOS/pgAdmin4) > >>>> >> cp: > >>>> >> > >>>> >> > @rpath/QtWebKitWidgets.framework/Versions/5/../../../QtWebKitWidgets.framework: > >>>> >> No such file or directory > >>>> >> chmod: > >>>> >> > >>>> >> > Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets: > >>>> >> No such file or directory > >>>> >> Rewriting ID in > >>>> >> > >>>> >> > Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets > >>>> >> to QtWebKitWidgets > >>>> >> error: > >>>> >> > >>>> >> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: > >>>> >> can't open file: > >>>> >> > >>>> >> > Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets > >>>> >> (No such file or directory) > >>>> >> Cleaning up > >>>> >> ... > >>>> >> > >>>> >> > >>>> >> On Mon, Apr 18, 2016 at 1:25 PM, Sandeep Thakkar > >>>> >> wrote: > >>>> >> > Hi Team, Dave, > >>>> >> > > >>>> >> > Attached herewith are two patches. > >>>> >> > > >>>> >> > pgadmin4-mac-bundle.patch - This includes scripts to build Mac > app > >>>> >> > bundle > >>>> >> > and DMG for pgAdmin4. This is the tree of the generated app > bundle: > >>>> >> > > >>>> >> > ---- > >>>> >> > $ find pgAdmin4.app/ -maxdepth 3 -type d > >>>> >> > pgAdmin4.app/ > >>>> >> > pgAdmin4.app//ContentspgAdmin4.app//Contents/Frameworks > >>>> >> > pgAdmin4.app//Contents/Frameworks/Python.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtCore.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtDBus.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtGui.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtMultimedia.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtMultimediaWidgets.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtNetwork.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtOpenGL.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtPositioning.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtPrintSupport.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtQml.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtQuick.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtSensors.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtSql.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtWebChannel.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtWebKit.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtWebKitWidgets.framework > >>>> >> > pgAdmin4.app//Contents/Frameworks/QtWidgets.framework > >>>> >> > pgAdmin4.app//Contents/MacOS > >>>> >> > pgAdmin4.app//Contents/PlugIns > >>>> >> > pgAdmin4.app//Contents/PlugIns/platforms > >>>> >> > pgAdmin4.app//Contents/Resources > >>>> >> > pgAdmin4.app//Contents/Resources/venv > >>>> >> > pgAdmin4.app//Contents/Resources/web > >>>> >> > --- > >>>> >> > > >>>> >> > pgadmin4-fixpath-mac.patch - This is for runtime/Server.cpp to > fix > >>>> >> > the > >>>> >> > path > >>>> >> > where the runtime looks for web application path in app bundle. > >>>> >> > > >>>> >> > > >>>> >> > Kindly review and suggest the changes required. Thanks. > >>>> >> > > >>>> >> > -- > >>>> >> > Sandeep Thakkar > >>>> >> > > >>>> >> > >>>> >> > >>>> >> > >>>> >> -- > >>>> >> Dave Page > >>>> >> Blog: http://pgsnake.blogspot.com > >>>> >> Twitter: @pgsnake > >>>> >> > >>>> >> EnterpriseDB UK: http://www.enterprisedb.com > >>>> >> The Enterprise PostgreSQL Company > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > -- > >>>> > Sandeep Thakkar > >>>> > > >>>> > >>>> > >>>> > >>>> -- > >>>> Dave Page > >>>> Blog: http://pgsnake.blogspot.com > >>>> Twitter: @pgsnake > >>>> > >>>> EnterpriseDB UK: http://www.enterprisedb.com > >>>> The Enterprise PostgreSQL Company > >>> > >>> > >>> > >>> > >>> -- > >>> Sandeep Thakkar > >>> > >> > >> > >> -- > >> Dave Page > >> Blog: http://pgsnake.blogspot.com > >> Twitter: @pgsnake > >> > >> EnterpriseDB UK: http://www.enterprisedb.com > >> The Enterprise PostgreSQL Company > >> > > > > > > > > -- > > > > > > -- > Dave Page > Blog: http://pgsnake.blogspot.com > Twitter: @pgsnake > > EnterpriseDB UK: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > -- --001a11c118e26ce0580533327831 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hmm.. looks like some difference in the QT installation.
Can you please provide me the otool -L output for pgAdmin= 4 from /mac-build/pgAdmin4.app/Contents/MacOS/pgAdmin4

=
and also the tree for $QTDIR/lib

Thanks.

On Thu, May 19, = 2016 at 7:20 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

I see the following error when attempting to build. My configurable
paths match the defaults in the README.

App: pgAdmin4.app: Post-processing: .//Contents/MacOS/pgAdmin4
App: pgAdmin4.app: Adding symlink: QtWebKitWidgets (because of:
.//Contents/MacOS/pgAdmin4)
cp: @rpath/QtWebKitWidgets.framework/Versions/5/../../../QtWebKitWidgets.fr= amework:
No such file or directory
chmod: Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWid= gets:
No such file or directory
Rewriting ID in
Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets to QtWebKitWidgets
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.x= ctoolchain/usr/bin/install_name_tool:
can't open file:
Contents/Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets (No such file or directory)
complete-bundle.sh failed
make: *** [appbundle] Error 1

On Thu, May 19, 2016 at 6:34 AM, Sandeep Thakkar
<sandeep.thakkar@enterprisedb.com> wrote:
> Hi Dave
>
> I have added the 'docs' target in the /Makefile. This target i= s also called
> by appbundle. pgAdmin4 versioning change is also taken care of.
>
> I have attached the updated patch here. Kindly review and let me know = your
> feedback. Thanks.
>
> On Tue, May 17, 2016 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote:
>>
>>
>>
>> On Tuesday, May 17, 2016, Sandeep Thakkar
>> <sandeep.th= akkar@enterprisedb.com> wrote:
>>>
>>> Hi Dave
>>>
>>> I have fixed the issues. Attached is the updated patch.
>>>
>>> The docs are built as part of 'appbundle' target, ther= e is no separate
>>> target in Makefile for this. I observed that it requires the p= ython modules
>>> to get this built. We create virtual environment as a part of = 'appbundle'
>>> target because we do everything in a single script "build= .sh".=C2=A0 Hence, right
>>> now I added doc build in the same build script.
>>
>>
>> Right - I was suggesting you create the 'docs' target, the= n use it.
>>
>>>
>>>
>>> BTW, the online help returns me the following error now:
>>> "The server encountered an internal error and was unable = to complete your
>>> request. Either the server is overloaded or there is an error = in the
>>> application." Since this is not 404, it means that it atl= east got
>>> index.html, right? May be this should be handled in the source= code.
>>
>>
>> It works fine for me on my dev machines. If there's a problem,= we need to
>> diagnose it.
>>
>>>
>>>
>>> Paresh is working on updating pgAdmin4.py to autocreate databa= se
>>> configuration if does not exist. He will share the patch.
>>>
>>> On Fri, May 13, 2016 at 6:41 PM, Dave Page <dpage@pgadmin.org> wrote:
>>>>
>>>> On Fri, May 13, 2016 at 2:01 PM, Sandeep Thakkar
>>>> <sa= ndeep.thakkar@enterprisedb.com> wrote:
>>>> > Thanks Dave.
>>>> >
>>>> > Please see inline.
>>>> >
>>>> > On Fri, May 6, 2016 at 9:03 PM, Dave Page <dpage@pgadmin.org> wrote:
>>>> >>
>>>> >> Hi
>>>> >>
>>>> >> Thanks. I've applied the path fix patch. The = second one needs a
>>>> >> little
>>>> >> work - I've attached an updated version to wo= rk from:
>>>> >>
>>>> >> - I've updated the README, and some of the de= fault values.
>>>> >
>>>> > OK. The default values of PGDIR and QTDIR set by you = is different than
>>>> > mine.
>>>> > I installed them through macports.
>>>>
>>>> Right. I went with the default directories from the origin= al projects.
>>>>
>>>> >>
>>>> >> - I've removed the file type registration for= .sql files.
>>>> >
>>>> >
>>>> > OK.
>>>> >>
>>>> >>
>>>> >> - Should we note that the user may need to run in= a virtualenv?
>>>> >
>>>> >
>>>> > No, we bundle private environment, right?
>>>>
>>>> I meant "the user building the package", not the= end user.
>>>>
>>>> >> - Please move build-mac.sh to pkg/build.sh, and c= reate a target in
>>>> >> /Makefile to
>>>> >>=C2=A0 =C2=A0execute it, e.g. "make appbundle= "
>>>> >
>>>> >
>>>> > Sure. You mean move to pkg/mac/build.sh, right?
>>>>
>>>> Yes :-)
>>>>
>>>> >> - Extend the Makefile to add a "clean-appbun= dle" target, which should
>>>> >> also
>>>> >> be
>>>> >>=C2=A0 =C2=A0called by the "clean" targe= t.
>>>> >>
>>>> > OK.
>>>> >>
>>>> >> - At present, it is bundling my pre-existing conf= iguration database.
>>>> >> It
>>>> >> *must*
>>>> >>=C2=A0 =C2=A0create a new one and bundle that, wit= hout touching the existing one
>>>> >> (I
>>>> >> guess
>>>> >>=C2=A0 =C2=A0that may require a new command line o= ption for setup.py).
>>>> >
>>>> >
>>>> > No, it's not bundling the pgadmin4.db at all, I s= kipped it :). Paresh
>>>> > is
>>>> > working on this.
>>>>
>>>> Oh - in that case it used my existing one. Which of course= , it should
>>>> not overwrite if already present (which reminds me - addin= g a todo
>>>> item to auto-upgrade the database if needed on first run).=
>>>>
>>>> >> - The online help is broken (are you building it)= ? I suggest adding a
>>>> >> top-level
>>>> >>=C2=A0 =C2=A0Makefile target to do so.
>>>> >>
>>>> > Sorry, which online help?
>>>>
>>>> That which can be found in $SRC/doc - currently only for e= n_US. At
>>>> present it's built with "cd doc/en_US && = make -f Makefile.sphinx
>>>> html", but I think we should have a top-level target = to call that for
>>>> us.
>>>>
>>>> The help can then be accessed from Help -> Online Help = within pgAdmin.
>>>> Obviously the files need to be put in the right place in t= he app
>>>> bundle.
>>>>
>>>> >> - Working directories should be added to /.gitign= ore. Please ensure
>>>> >> they
>>>> >> don't
>>>> >>=C2=A0 =C2=A0clash with those used by pip (and ide= ally are in one place, e.g.
>>>> >> mac-build/).
>>>> >>
>>>> > OK.
>>>> >
>>>> >>
>>>> >> - I saw various errors in the build output, thoug= h the resulting DMG
>>>> >> seemed to
>>>> >>=C2=A0 =C2=A0work fine;
>>>> >>
>>>> > Yeah, because I had libpq.dylib present in $PGDIR/ an= d may be yours
>>>> > present
>>>> > in $PGDIR/lib/. I will be using the default values su= ggested by you
>>>> > and fix
>>>> > this. Thanks!
>>>>
>>>> Right - please make sure the build fails in cases like thi= s too.
>>>>
>>>> Thanks.
>>>>
>>>> >> ...
>>>> >> cp: /usr/local/pgsql/libpq.5.dylib: No such file = or directory
>>>> >> libpq.5.dylib not found in /usr/local/pgsql
>>>> >> Completing app: /Users/dpage/git/pgadmin4/pgAdmin= 4.app
>>>> >> ...
>>>> >>
>>>> >> ...
>>>> >> App: pgAdmin4.app: Post-processing: .//Contents/M= acOS/pgAdmin4
>>>> >> App: pgAdmin4.app: Adding symlink: QtWebKitWidget= s (because of:
>>>> >> .//Contents/MacOS/pgAdmin4)
>>>> >> cp:
>>>> >>
>>>> >> @rpath/QtWebKitWidgets.framework/Versions/5/../..= /../QtWebKitWidgets.framework:
>>>> >> No such file or directory
>>>> >> chmod:
>>>> >>
>>>> >> Contents/Frameworks/QtWebKitWidgets.framework/Ver= sions/5/QtWebKitWidgets:
>>>> >> No such file or directory
>>>> >> Rewriting ID in
>>>> >>
>>>> >> Contents/Frameworks/QtWebKitWidgets.framework/Ver= sions/5/QtWebKitWidgets
>>>> >> to QtWebKitWidgets
>>>> >> error:
>>>> >>
>>>> >> /Applications/Xcode.app/Contents/Developer/Toolch= ains/XcodeDefault.xctoolchain/usr/bin/install_name_tool:
>>>> >> can't open file:
>>>> >>
>>>> >> Contents/Frameworks/QtWebKitWidgets.framework/Ver= sions/5/QtWebKitWidgets
>>>> >> (No such file or directory)
>>>> >> Cleaning up
>>>> >> ...
>>>> >>
>>>> >>
>>>> >> On Mon, Apr 18, 2016 at 1:25 PM, Sandeep Thakkar<= br> >>>> >> <sandeep.thakkar@enterprisedb.com> wrote:
>>>> >> > Hi Team, Dave,
>>>> >> >
>>>> >> > Attached herewith are two patches.
>>>> >> >
>>>> >> > pgadmin4-mac-bundle.patch - This includes sc= ripts to build Mac app
>>>> >> > bundle
>>>> >> > and DMG for pgAdmin4. This is the tree of th= e generated app bundle:
>>>> >> >
>>>> >> > ----
>>>> >> > $ find pgAdmin4.app/ -maxdepth 3 -type d
>>>> >> > pgAdmin4.app/
>>>> >> > pgAdmin4.app//ContentspgAdmin4.app//Contents= /Frameworks
>>>> >> > pgAdmin4.app//Contents/Frameworks/Python.fra= mework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtCore.fra= mework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtDBus.fra= mework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtGui.fram= ework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtMultimed= ia.framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtMultimed= iaWidgets.framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtNetwork.= framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtOpenGL.f= ramework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtPosition= ing.framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtPrintSup= port.framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtQml.fram= ework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtQuick.fr= amework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtSensors.= framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtSql.fram= ework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtWebChann= el.framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtWebKit.f= ramework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtWebKitWi= dgets.framework
>>>> >> > pgAdmin4.app//Contents/Frameworks/QtWidgets.= framework
>>>> >> > pgAdmin4.app//Contents/MacOS
>>>> >> > pgAdmin4.app//Contents/PlugIns
>>>> >> > pgAdmin4.app//Contents/PlugIns/platforms
>>>> >> > pgAdmin4.app//Contents/Resources
>>>> >> > pgAdmin4.app//Contents/Resources/venv
>>>> >> > pgAdmin4.app//Contents/Resources/web
>>>> >> > ---
>>>> >> >
>>>> >> > pgadmin4-fixpath-mac.patch - This is for run= time/Server.cpp to fix
>>>> >> > the
>>>> >> > path
>>>> >> > where the runtime looks for web application = path in app bundle.
>>>> >> >
>>>> >> >
>>>> >> > Kindly review and suggest the changes requir= ed.=C2=A0 Thanks.
>>>> >> >
>>>> >> > --
>>>> >> > Sandeep Thakkar
>>>> >> >
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Dave Page
>>>> >> Blog: http://pgsnake.blogspot.com
>>>> >> Twitter: @pgsnake
>>>> >>
>>>> >> EnterpriseDB UK: http://www.enterprisedb.com
>>>> >> The Enterprise PostgreSQL Company
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Sandeep Thakkar
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Dave Page
>>>> Blog:
http://pgsnake.blogspot.com
>>>> Twitter: @pgsnake
>>>>
>>>> EnterpriseDB UK: http://www.enterprisedb.com
>>>> The Enterprise PostgreSQL Company
>>>
>>>
>>>
>>>
>>> --
>>> Sandeep Thakkar
>>>
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>
>
>
> --
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
=

=
--001a11c118e26ce0580533327831--