PATCH: pgAdmin4 debian installer

From: Paresh More <paresh(dot)more(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Dave Page <dave(dot)page(at)enterprisedb(dot)com>
Cc: Sandeep Thakkar <sandeep(dot)thakkar(at)enterprisedb(dot)com>, Hamid Quddus <hamid(dot)quddus(at)enterprisedb(dot)com>
Subject: PATCH: pgAdmin4 debian installer
Date: 2016-04-26 15:20:02
Message-ID: CAAgiCNGZe7EXGsFBsLFg1Mu0QcUSJNHB3dz3CJZEzP2iE15n0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Team, Dave,

debian package is located @ location

pgadmin4-web
https://uploads.enterprisedb.com/download.php?file=0196f693811b57088da5ed7396cec284

pgadmin4-runtime
https://uploads.enterprisedb.com/download.php?file=958528f7c619efa7b483a6d2e0c23cd5

Attached herewith are two patches.

pgadmin4_debian.patch - This is the main patch that includes
Makefile,README,debian scripts

It will create two .deb i.e pgadmin4-runtime and pgadmin4-web.
The pgadmin4-runtime depends on web and the web debian depends on the
python packages.
I have listed some packages which are not available on some systems so that
Devrim can build them.

The installation path for pgadmin4 is "/usr/pgadmin4/<major>.<minor>" and
pgadmin4-web is the site-packages/pgadmin4-web

As per rpm patch (*sandeep mentioned*) below is the comment which applies
same for debian.

*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.

*Sandeep comments*

*“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/<companyname>/<appname>.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*

*Another change that I did in this file is that, I observed that
canonicalPath()*
*was not giving the absolute path (by removing the sym link and the*
*redundant ".." as per doc). Hence, I used absolutePath() for the paths[i]*
*that are relative (../web, etc) and not for the already absolute path (ex.*
*ApplicationPath like /usr/lib/python2.7/site-packages/pgadmin4-web)”*

What the patch will create ?
- It would create deb folder in pkg
- It would create Makefile, README and debian scripts

--

Thanks & Regards

*Paresh More*

[image: NEW-EDB-logo-4c]

Pune, India.
Cell : +919922000564 | www.enterprisedb.com

Attachment Content-Type Size
pgadmin4-server-ini.patch application/octet-stream 983 bytes
pgadmin4_debian.patch application/octet-stream 11.6 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Harshal Dhumal 2016-04-27 09:22:09 Re: [PATCH] Tables node (pgAdmin4)
Previous Message Khushboo Vashi 2016-04-26 13:38:03 [pgAdmin4][Patch]: Fixed an issue related to update the tree