LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2019, 05:14 AM   #1
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Rep: Reputation: Disabled
Building pgAdmin 4 in Slackware-current


Hi.

I have tried to build pgAdmin 4 via some tweaks pgadmin4.SlackBuild (base on https://slackbuilds.org/repository/1...stem/pgadmin3/) in Slackware-current, but stuck on
Code:
./pgadmin4.SlackBuild: line 55: ./configure: No such file or directory
Link for download pgadmin4.tar.gz (pgadmin4.SlackBuild) + deps pgadmin4-build-deps.tar.gz:
Code:
Flask-0.12.2-x86_64-2_slonly.txz
Flask-Babel-0.11.1-x86_64-1_SBo.tgz
Flask-Gravatar-0.4.2-x86_64-3_slonly.txz
Flask-Login-0.4.0-x86_64-3_slonly.txz
Flask-Mail-0.9.1-x86_64-4_slonly.txz
Flask-Principal-0.4.0-x86_64-4_slonly.txz
Flask-SQLAlchemy-2.1-x86_64-5_slonly.txz
Flask-Security-1.7.5-x86_64-2_slonly.txz
Flask-WTF-0.14.2-x86_64-3_slonly.txz
Jinja2-2.7.3-x86_64-2_slonly.txz
MarkupSafe-0.23-x86_64-2_slonly.txz
SQLAlchemy-1.1.13-x86_64-1_slonly.txz
Sphinx-1.6.3-x86_64-3_slonly.txz
WTForms-2.1-x86_64-2_slonly.txz
alabaster-0.7.10-x86_64-1ponce.txz
babel-2.5.3-x86_64-1ponce.txz
blinker-1.4-x86_64-2_slonly.txz
click-7.0-x86_64-1dj.txz
imagesize-0.7.1-x86_64-2_slonly.txz
itsdangerous-0.24-x86_64-2_slonly.txz
passlib-1.7.1-x86_64-2_slonly.txz
pygments-2.2.0-x86_64-2cf.txz
python-dateutil-2.6.1-x86_64-2_slonly.txz
pytz-2018.3-x86_64-1ponce.txz
simplejson-3.16.1-x86_64-1cf.txz
snowballstemmer-1.2.1-x86_64-2_slonly.txz
sphinxcontrib-websupport-1.0.1-x86_64-1_slonly.txz
werkzeug-0.9.4-x86_64-2_slonly.txz
wheel-0.29.0-x86_64-1_slonly.txz
Quote:
Originally Posted by bassmadrigal View Post
That is asking for flask-bablex. I'm not sure if you'd require flask-bable itself (I don't think so, because flask-bablex states it is API compatible with flask-bable).

It looks like that might require flask-sphinx-themes to be in docs/_themes/ before attempting to compile. If you're just cloning the git, you can do this automatically once in the main source folder by running:

Code:
git submodule init
git submodule update
I don't found two packages flask-paranoid and Flask-Migrate for Slackware. I installed them manually:
Code:
cd /tmp

git clone https://github.com/miguelgrinberg/flask-paranoid.git
cd flask-paranoid
python setup.py install
cd ..

git clone https://github.com/miguelgrinberg/Flask-Migrate.git
cd Flask-Migrate
python setup.py install
cd ..
For building I use this package postgresql-11.2-x86_64-1_SBo.tgz
Anybody able to build pgAdmin 4 in Slackware-current or probable can provide pgAdmin 4 package for Slackware-current?

Thanks.

Last edited by TurboBlaze; 03-08-2019 at 02:00 PM. Reason: Update link on pgadmin4.tar.gz
 
Old 02-23-2019, 05:40 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,820

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
It looks like they switched from autotools (which uses ./configure) to qmake and will likely require a decent amount of modification to the SlackBuild. Just downloading the source and running make told me that I'm missing Flask, which has several dependencies of its own.

If no one else tackles this, I may try and provide an updated SlackBuild and dependency list tomorrow... depending on if I have time and whether or not I remember.
 
2 members found this post helpful.
Old 02-23-2019, 05:54 AM   #3
Qury
Member
 
Registered: Feb 2004
Location: Dublin
Distribution: Slackware
Posts: 158

Rep: Reputation: 139Reputation: 139
Hi,

i simply use docker and use the docker image for pgadmin4. i know it is not a solution for your problem, but rather a workaround
 
2 members found this post helpful.
Old 02-23-2019, 06:18 AM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,483

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
EDIT: Dooh !

I just noticed the `exit 0` line in the SlackBuild about half way down.

Looking at the last log file, I recall now that I did get a build but I needed to clean up the included files for the Package.

Code:
g++ -c -pipe -I/usr/include/python2.7 -I/usr/include/python2.7 -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DPGADMIN4_USE_WEBENGINE -DPGADMIN4_DEBUG -DPYTHON2 -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWebEngineWidgets -isystem /usr/include/qt5/QtWebEngineCore -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWebChannel -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtPositioning -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_ConfigWindow.o moc_ConfigWindow.cpp
g++ -L/usr/lib64 -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-rpath,/usr/lib64 -Wl,-rpath-link,/usr/lib64 -o pgAdmin4 pgAdmin4.o BrowserWindow.o Server.o TabWindow.o WebViewWindow.o ConfigWindow.o qrc_pgAdmin4.o moc_BrowserWindow.o moc_Server.o moc_TabWindow.o moc_WebViewWindow.o moc_ConfigWindow.o   -lpython2.7 -ldl -lutil -lm -lQt5WebEngineWidgets -lQt5WebEngineCore -lQt5Quick -lQt5Widgets -lQt5Gui -lQt5WebChannel -lQt5Qml -lQt5Network -lQt5Positioning -lQt5Core -lGL -lpthread 
pgadmin4.SlackBuild complete at Mon Jan 29 10:17:47 CST 2018 ... RetCode = 0
That is left as an exercise ...

End EDIT


Dang I am really old and forgetful ...

Slackware64 14.2 + Multilib here ...

I did build a pgadmin4 version 2.1 Package last year but I reverted to pgadmin3 and I don't recall why ...

According to my log files and the content of my ~/pgadmin4-kjh/pkg/ directory, I was able to build pgadmin4 version 2.1 with the pgadmin4.SlackBuild and the .do-pgadmin4.SlackBuild.sh wrapper script below

It took 5 tries based on the logs: ( note the *~".log files )

Code:
# pwd

/home/dld/slackbuilds/SBo/pgadmin3/pgadmin4-kjh

# ls -la

total 1620
drwxr-xr-x  2 root root   4096 Feb 23 06:00 .
drwxr-xr-x 10 root root   4096 Jan 29  2018 ..
-rwxr-xr-x  1 root root    800 Jan 29  2018 .do-pgadmin4.SlackBuild.sh
-rw-r--r--  1 root root   1068 Jul  6  2016 README
-rw-r--r--  1 root root    130 Jul  6  2016 doinst.sh
lrwxrwxrwx  1 root root     35 Jan 29  2018 pgadmin4-2.1.tar.gz -> ../pgadmin4-dld/pgadmin4-2.1.tar.gz
-rwxr-xr-x  1 root root   2472 Jan 29  2018 pgadmin4.SlackBuild
-rw-r--r--  1 root root 325972 Jan 29  2018 pgadmin4.SlackBuild-2.1.log
-rw-r--r--  1 root root    388 Jan 29  2018 pgadmin4.info
-rw-r--r--  1 root root 313003 Jan 29  2018 pgadmin4~01.SlackBuild-2.1.log
-rw-r--r--  1 root root 325953 Jan 29  2018 pgadmin4~02.SlackBuild-2.1.log
-rw-r--r--  1 root root 325972 Jan 29  2018 pgadmin4~03.SlackBuild-2.1.log
-rw-r--r--  1 root root 326012 Jan 29  2018 pgadmin4~04.SlackBuild-2.1.log
-rw-r--r--  1 root root    908 Jan 29  2018 slack-desc
Anyhow ...

Maybe these will help ?

-- kjh

This is the pgadmin4.SlackBuild I ended up with:

Code:
#!/bin/sh

# Slackware build script for pgAdmin
# Written by Iskar Enev (<iskar.enev[@]gmail.com>)
# Modified by slakmagik <slakmagik@gmail.com>
# Modified by Mario Preksavec <mario@slackware.hr>

PRGNAM=pgadmin4
VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

QMAKE="${QMAKE:-/usr/lib${LIBDIRSUFFIX}/qt/bin/qmake}"
QMAKE_ARGS=''

[ ! -z "QMAKE_DEBUG" ] && QMAKE_ARGS="CONFIG+=debug"

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

cd $TMP/$PRGNAM-$VERSION/runtime

$QMAKE $QMAKE_ARGS

make

cd $TMP/$PRGNAM-$VERSION/web

exit 0

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

# add the range of pgAdmin3 images - only one can be used in the desktop file
# but the default might not be the one people would want
mkdir -p $PKG/usr/share/pixmaps
cp -a pgadmin/include/images/pgAdmin3* $PKG/usr/share/pixmaps

mkdir -p  $PKG/usr/share/applications
sed '/^Icon=/s/pgadmin3/pixmaps/' \
  pkg/pgadmin3.desktop > $PKG/usr/share/applications/pgadmin3.desktop

# as with so many packages, --docdir is present but ignored
mkdir -p $PKG/usr/doc
ln -s ../share/pgadmin3/docs $PKG/usr/doc/$PRGNAM-$VERSION
cp -a BUGS CHANGELOG DEVELOPERS INSTALL LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
This is the pgadmin4.info file ( the md5sum matches and I vaguely recall editing the REQUIRES= list )

Code:
PRGNAM="pgadmin4"
VERSION="2.1"       
HOMEPAGE="http://www.pgadmin.org/"
DOWNLOAD="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v2.1/source/pgadmin4-2.1.tar.gz"
MD5SUM="ea9a8f4c451aad1e5df53a988f425727"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="postgresql qt5 yarn Flask Flask-Babel Flask-Login pip virtualenv virtualenvwrapper"
MAINTAINER="slakmagik"
EMAIL="redacted@gmail.com"   # kjh redacted slakmagik's email addr
And this is my .do-pgadmin4.SlackBuild.sh wrapper script to show Options I selected:
Code:
#!/bin/sh

DoName="pgadmin4.SlackBuild"

. ./pgadmin4.info

MyVersion="$VERSION"

LogNam="$DoName-$MyVersion.log"

unset PRGNAM
unset VERSION
unset HOMEPAGE
unset DOWNLOAD
unset MD5SUM
unset DOWNLOAD_x86_64
unset MD5SUM_x86_64
unset REQUIRES
unset MAINTAINER
unset EMAIL
#
# README
#
# export any optional variables here
#
QMAKE="/usr/lib64/qt5/bin/qmake"            # if you've got QT5 ( recommended )
QMAKE_DEBUG=1                               # if you want to build with debug enabled

export QMAKE QMAKE_DEBUG
#
# do the deed
#
echo "$DoName startup  at `date`"                        |tee    $LogNam
./$DoName 2>&1                                           |tee -a $LogNam
RetCode=$?
#
# log your results
#
echo "$DoName complete at `date` ... RetCode = $RetCode" |tee -a $LogNam
exit $RetCode

Last edited by kjhambrick; 02-23-2019 at 06:28 AM. Reason: Dooh !
 
4 members found this post helpful.
Old 03-02-2019, 01:38 PM   #5
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Original Poster
Rep: Reputation: Disabled
Guys, thanks for your advices!

I updated the link to pgadmin4.tar.gz

My pgadmin4.SlackBuild
Code:
#!/bin/sh

# Slackware build script for pgAdmin
# Written by Iskar Enev (<iskar.enev[@]gmail.com>)
# Modified by slakmagik <slakmagik@gmail.com>
# Modified by Mario Preksavec <mario@slackware.hr>

PRGNAM=pgadmin4
VERSION=${VERSION:-4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -eu

rm -rf $PKG
mkdir -pv $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

qmake-qt5 \
  PREFIX=/usr \
  LIBPREFIX=/usr/lib${LIBDIRSUFFIX} \
  QMAKE_CFLAGS="$SLKCFLAGS" \
  QMAKE_CXXFLAGS="$SLKCFLAGS" \
  QT5LIBDIR=/usr/lib${LIBDIRSUFFIX}/qt5 \
  L_ETCDIR=/etc \

make
make install INSTALL_ROOT=$PKG DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

# add the range of pgAdmin4 images - only one can be used in the desktop file
# but the default might not be the one people would want
# mkdir -p $PKG/usr/share/pixmaps
# cp -a pgadmin/include/images/pgAdmin4* $PKG/usr/share/pixmaps

# mkdir -p  $PKG/usr/share/applications
# sed '/^Icon=/s/pgadmin4/pixmaps/' \
#  pkg/pgadmin4.desktop > $PKG/usr/share/applications/pgadmin4.desktop

# as with so many packages, --docdir is present but ignored
mkdir -p $PKG/usr/doc
ln -s ../share/pgadmin4/docs $PKG/usr/doc/$PRGNAM-$VERSION
cp -a BUGS CHANGELOG DEVELOPERS INSTALL LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
I have tried it in slackware64-live-plasma5-current.iso http://bear.alienbase.nl/mirrors/slackware-live/latest/ by AlienBOB and stuck on
Code:
+ qmake-qt5 PREFIX=/usr LIBPREFIX=/usr/lib64 'QMAKE_CFLAGS=-O2 -fPIC' 'QMAKE_CXXFLAGS=-O2 -fPIC' QT5LIBDIR=/usr/lib64/qt5 L_ETCDIR=/etc
Usage: qmake-qt5 [mode] [options] [files]

QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
  -project Put qmake into project file generation mode
                 In this mode qmake interprets files as files to
                 be built,
                 defaults to *; *; *; *.ts; *.xlf; *.qrc
                 Note: The created .pro file probably will
                 need to be edited. For example add the QT variable to
                 specify what modules are required.
  -makefile Put qmake into makefile generation mode (default)
                 In this mode qmake interprets files as project files to
                 be processed, if skipped qmake will try to find a project
                 file in your current working directory

Warnings Options:
  -Wnone Turn off all warnings; specific ones may be re-enabled by
                 later -W options
  -Wall Turn on all warnings
  -Wparser Turn on parser warnings
  -Wlogic Turn on logic warnings (on by default)
  -Wdeprecated Turn on deprecation warnings (on by default)

etc....

root@darkstar:/tmp/pgadmin4#
Any advice are welcome.

Thanks.
 
Old 03-02-2019, 04:39 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,820

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
It seems you need to add "-project" to your qmake-qt5 command for it to get beyond there. Once I did that, it proceeded and I was able to run make, but I ran into a configuration issue afterwards, which is likely (hopefully) just related to me not having all required dependencies (I'm also running this on 14.2).

Code:
qmake-qt5 \
  -project \
  PREFIX=/usr \
  LIBPREFIX=/usr/lib${LIBDIRSUFFIX} \
  QMAKE_CFLAGS="$SLKCFLAGS" \
  QMAKE_CXXFLAGS="$SLKCFLAGS" \
  QT5LIBDIR=/usr/lib${LIBDIRSUFFIX}/qt5 \
  L_ETCDIR=/etc
However, looking at AUR's PKGBUILD, they just run make docs in the main source tree, then cd into runtime/ and then run their qmake command and then make after that. I'm not sure the best way to build this program.
 
Old 03-03-2019, 04:59 AM   #7
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Original Poster
Rep: Reputation: Disabled
Post

bassmadrigal, thanks for the point "-project". Added to pgadmin4.tar.gz

I think that is't possible to build pgadmin4 for Slackware

Now I stuck on:
Code:
...
pgadmin4-4.2/web/setup.py
pgadmin4-4.2/web/webpack.config.js
pgadmin4-4.2/web/webpack.shim.js
pgadmin4-4.2/web/webpack.test.config.js
pgadmin4-4.2/web/yarn.lock
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 make -C docs/en_US -f Makefile.sphinx html
make[1]: Entering directory '/tmp/SBo/pgadmin4-4.2/docs/en_US'
Generating code-snippet.rst for some of the important classes...
Traceback (most recent call last):
  File "build_code_snippet.py", line 22, in <module>
    from pgadmin.utils import PgAdminModule
  File "/tmp/SBo/pgadmin4-4.2/web/pgadmin/__init__.py", line 20, in <module>
    from flask_babelex import Babel, gettext
ImportError: No module named flask_babelex
make[1]: [Makefile.sphinx:22: code_snippet] Error 1 (ignored)
sphinx-build -W -b html -d _build/doctrees   . _build/html
make[1]: sphinx-build: Command not found
make[1]: *** [Makefile.sphinx:47: html] Error 127
make[1]: Leaving directory '/tmp/SBo/pgadmin4-4.2/docs/en_US'
make: *** [Makefile:90: docs] Error 2
root@darkstar:/tmp/pgadmin4# python
Python 2.7.15 (default, Jun 17 2018, 22:57:51) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>  import flask_babelex

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named flask_babelex

root@darkstar:/tmp/pgadmin4#
I use these deps:
Code:
Flask-0.12.2-x86_64-2_slonly.txz
Flask-Babel-0.11.1-x86_64-1_SBo.tgz
Flask-Gravatar-0.4.2-x86_64-3_slonly.txz
Flask-Login-0.4.0-x86_64-3_slonly.txz
Flask-Mail-0.9.1-x86_64-4_slonly.txz
Flask-Principal-0.4.0-x86_64-4_slonly.txz
Flask-SQLAlchemy-2.1-x86_64-5_slonly.txz
Flask-Security-1.7.5-x86_64-2_slonly.txz
Flask-WTF-0.14.2-x86_64-3_slonly.txz
Jinja2-2.7.3-x86_64-2_slonly.txz
MarkupSafe-0.23-x86_64-2_slonly.txz
SQLAlchemy-1.1.13-x86_64-1_slonly.txz
Sphinx-1.6.3-x86_64-3_slonly.txz
WTForms-2.1-x86_64-2_slonly.txz
alabaster-0.7.10-x86_64-1ponce.txz
babel-2.5.3-x86_64-1ponce.txz
blinker-1.4-x86_64-2_slonly.txz
click-7.0-x86_64-1dj.txz
imagesize-0.7.1-x86_64-2_slonly.txz
itsdangerous-0.24-x86_64-2_slonly.txz
passlib-1.7.1-x86_64-2_slonly.txz
pygments-2.2.0-x86_64-2cf.txz
python-dateutil-2.6.1-x86_64-2_slonly.txz
pytz-2018.3-x86_64-1ponce.txz
simplejson-3.16.1-x86_64-1cf.txz
snowballstemmer-1.2.1-x86_64-2_slonly.txz
sphinxcontrib-websupport-1.0.1-x86_64-1_slonly.txz
werkzeug-0.9.4-x86_64-2_slonly.txz
wheel-0.29.0-x86_64-1_slonly.txz
Download pgadmin4-build-deps.tar.gz

Last edited by TurboBlaze; 03-06-2019 at 12:06 PM. Reason: Link on pgadmin4-build-deps.tar.gz was updated
 
Old 03-03-2019, 02:54 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,820

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
That is asking for flask-bablex. I'm not sure if you'd require flask-bable itself (I don't think so, because flask-bablex states it is API compatible with flask-bable).

It looks like that might require flask-sphinx-themes to be in docs/_themes/ before attempting to compile. If you're just cloning the git, you can do this automatically once in the main source folder by running:

Code:
git submodule init
git submodule update
 
Old 03-04-2019, 01:22 PM   #9
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Original Poster
Rep: Reputation: Disabled
I run these commands:
Code:
git clone https://github.com/pallets/flask-sphinx-themes.git
cd flask-sphinx-themes
pip install Flask-Sphinx-Themes
I get this log https://pastebin.com/v8bKESJ3
After runing my SlackBuild I get this log https://pastebin.com/TjKa6Q69

Cheers
 
Old 03-04-2019, 02:13 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,820

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
You missed part of my message. The error message from your previous attempt at running your SlackBuild (and the one in the last attempt) was because you were missing flask-bablex. You would need to install that before you rerun your SlackBuild. The flask-sphinx-themes src is required to be in the source of flask-bablex if you want to compile it. However, you might be able to install it with pip, but I don't use that at all (I want everything installed on my system as Slackware packages, so if I needed this, I would create a SlackBuild for it).
 
Old 03-06-2019, 12:38 PM   #11
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Original Poster
Rep: Reputation: Disabled
Ok, your advice is work.
I fixed Flask-Babel-0.11.1-x86_64-1_SBo.tgz with your suggestion.
Thanks.

I updated link on pgadmin4-build-deps.tar.gz - look at this post.
I don't found two packages flask-paranoid and Flask-Migrate for Slackware
I installed them manually:
Code:
cd /tmp

git clone https://github.com/miguelgrinberg/flask-paranoid.git
cd flask-paranoid
python setup.py install
cd ..

git clone https://github.com/miguelgrinberg/Flask-Migrate.git
cd Flask-Migrate
python setup.py install
cd ..
Now I don't understand why we are use:
Code:
qmake-qt5 \
  -project \
  PREFIX=/usr \
  LIBPREFIX=/usr/lib${LIBDIRSUFFIX} \
  QMAKE_CFLAGS="$SLKCFLAGS" \
  QMAKE_CXXFLAGS="$SLKCFLAGS" \
  QT5LIBDIR=/usr/lib${LIBDIRSUFFIX}/qt5 \
  L_ETCDIR=/etc \
if we can use 'make' command instead of this?

I some edit pgadmin4.SlackBuild
Code:
#!/bin/sh

# Slackware build script for pgAdmin
# Written by Iskar Enev (<iskar.enev[@]gmail.com>)
# Modified by slakmagik <slakmagik@gmail.com>
# Modified by Mario Preksavec <mario@slackware.hr>

PRGNAM=pgadmin4
VERSION=${VERSION:-4.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -eu

rm -rf $PKG
mkdir -pv $TMP $PKG $OUTPUT
cd $TMP
# rm -rf $PRGNAM-$VERSION
rm -rf $PRGNAM
git clone https://github.com/postgres/pgadmin4.git
cd $PRGNAM
# tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
# cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

qmake-qt5 \
  -project \
  PREFIX=/usr \
  LIBPREFIX=/usr/lib${LIBDIRSUFFIX} \
  QMAKE_CFLAGS="$SLKCFLAGS" \
  QMAKE_CXXFLAGS="$SLKCFLAGS" \
  QT5LIBDIR=/usr/lib${LIBDIRSUFFIX}/qt5 \
  L_ETCDIR=/etc \

#sed -i 18,21d /tmp/SBo/pgadmin4-4.3/pkg/pip/build.sh
  
make
make install INSTALL_ROOT=$PKG DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

# add the range of pgAdmin4 images - only one can be used in the desktop file
# but the default might not be the one people would want
# mkdir -p $PKG/usr/share/pixmaps
# cp -a pgadmin/include/images/pgAdmin4* $PKG/usr/share/pixmaps

# mkdir -p  $PKG/usr/share/applications
# sed '/^Icon=/s/pgadmin4/pixmaps/' \
#  pkg/pgadmin4.desktop > $PKG/usr/share/applications/pgadmin4.desktop

# as with so many packages, --docdir is present but ignored
# mkdir -p $PKG/usr/doc
# ln -s ../share/pgadmin4/docs $PKG/usr/doc/$PRGNAM-$VERSION
# cp -a BUGS CHANGELOG DEVELOPERS INSTALL LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
and what i got:
Code:
pgadmin4-4.3-docs/_sources/browser.rst.txt
pgadmin4-4.3-docs/_sources/backup_server_dialog.rst.txt
pgadmin4-4.3-docs/_sources/backup_globals_dialog.rst.txt
pgadmin4-4.3-docs/_sources/backup_dialog.rst.txt
pgadmin4-4.3-docs/_sources/backup_and_restore.rst.txt
pgadmin4-4.3-docs/_sources/add_restore_point_dialog.rst.txt
pgadmin4-4.3-docs/add_restore_point_dialog.html
Created tarball dist/pgadmin4-4.3.tar.gz and dist/pgadmin4-4.3-docs.tar.gz
make: *** No rule to make target 'install'.  Stop.
root@darkstar:/tmp/pgadmin4#
in /tmp/SBo/pgadmin4/dist/pgadmin4-4.3.tar.gz (active link) and /tmp/SBo/pgadmin4/dist/pgadmin4-4.3-docs.tar.gz (active link)
Screenshot: https://i.imgur.com/UMQET1p.png
Script stuck on 'make install INSTALL_ROOT=$PKG DESTDIR=$PKG', but it does not have a rules to continue.
Anybody knows what I must to do with these two tarballs?

BTW, why I use git of pgadmin 4 and not a source?
If look at source/pkg/pip/build.sh is contain this instruction:
Code:
if [ ! -d .git -a ! -f .git/config ]; then
    echo This script must be run from a git checkout of the source tree.
    exit 1
fi
this instruction does not allow to continue compiling the source code of pgadmin 4.

Now I am more inclined to the fact that it is impossible to build pgadmin 4 package for Slackware

Last edited by TurboBlaze; 03-06-2019 at 12:44 PM.
 
Old 03-06-2019, 02:41 PM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,820

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by TurboBlaze View Post
Now I don't understand why we are use:
Code:
qmake-qt5 \
  -project \
  PREFIX=/usr \
  LIBPREFIX=/usr/lib${LIBDIRSUFFIX} \
  QMAKE_CFLAGS="$SLKCFLAGS" \
  QMAKE_CXXFLAGS="$SLKCFLAGS" \
  QT5LIBDIR=/usr/lib${LIBDIRSUFFIX}/qt5 \
  L_ETCDIR=/etc \
if we can use 'make' command instead of this?
My (limited -- meaning possibly wrong) understanding is that qmake is used to specify your options, kinda like the autotools ./configure. Once the configuring is done, you run make to actually compile the software.

Quote:
Originally Posted by TurboBlaze View Post
Script stuck on 'make install INSTALL_ROOT=$PKG DESTDIR=$PKG', but it does not have a rules to continue.
Anybody knows what I must to do with these two tarballs?
The Makefile doesn't have an install target, so it doesn't know what to do when you run that. This means you'd need to manually move the files into the locations you want them to be. Luckily, somebody with Arch has already done the legwork with that, so we can use their PKGBUILD as a guide on what we should move.

NOTE: config_distro.py, config_local.py, and pgadmin4.desktop are files that Arch provides, not something included with pgadmin4 source. You'll need to make the determination on whether these files are needed. You may also need to tweak the /usr/lib/ locations to match whether this is a 32bit or 64bit package.

Code:
  install -Dm 755 runtime/pgAdmin4 "$PKG/usr/lib/pgadmin4/runtime/pgAdmin4"
  cp -a docs web "$PKG/usr/lib/pgadmin4"
  install -Dm 644 "${srcdir}"/config_{distro,local}.py -t "$PKG/usr/lib/pgadmin4/web"

  install -Dm 644 runtime/pgAdmin4-0.png "$PKG/usr/share/icons/hicolor/256x256/apps/pgAdmin4.png"
  install -Dm 644 runtime/pgAdmin4-1.png "$PKG/usr/share/icons/hicolor/48x48/apps/pgAdmin4.png"
  install -Dm 644 runtime/pgAdmin4-2.png "$PKG/usr/share/icons/hicolor/32x32/apps/pgAdmin4.png"
  install -Dm 644 runtime/pgAdmin4-3.png "$PKG/usr/share/icons/hicolor/16x16/apps/pgAdmin4.png"
  install -Dm 644 "${srcdir}/pgAdmin4.desktop" -t "$PKG/usr/share/applications"

  install -D /dev/stdin "$PKG/usr/bin/pgadmin4" <<END
#!/bin/sh
cd /usr/lib/pgadmin4
exec runtime/pgAdmin4 "\$@"
END
  install -D /dev/stdin "$PKG/usr/bin/pgadmin4-server" <<END
#!/bin/sh
cd /usr/lib/pgadmin4
python web/pgAdmin4.py "\$@"
END

  install -Dm 644 LICENSE -t "$PKG/usr/share/licenses/$PRGNAM"
Quote:
Originally Posted by TurboBlaze View Post
BTW, why I use git of pgadmin 4 and not a source?
If look at source/pkg/pip/build.sh is contain this instruction:
Code:
if [ ! -d .git -a ! -f .git/config ]; then
    echo This script must be run from a git checkout of the source tree.
    exit 1
fi
this instruction does not allow to continue compiling the source code of pgadmin 4.
If you want to compile using a tarball instead of git, you could either remove that section of code (or even just remove the exit 1, since it will continue to run if that's removed), or you could just create the .git/ directory and the .git/config file and compilation will work fine.

Quote:
Originally Posted by TurboBlaze View Post
Now I am more inclined to the fact that it is impossible to build pgadmin 4 package for Slackware
Definitely some hurdles, but certainly not impossible. You've been doing great so far!
 
Old 03-07-2019, 07:52 AM   #13
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
The Makefile doesn't have an install target, so it doesn't know what to do when you run that. This means you'd need to manually move the files into the locations you want them to be.
manually - it is not possible. Look at this tree https://pastebin.com/kAASvKXJ

Quote:
Originally Posted by bassmadrigal View Post
If you want to compile using a tarball instead of git, you could either remove that section of code (or even just remove the exit 1, since it will continue to run if that's removed)...
I tried it via
Code:
sed -i 18,21d /tmp/SBo/pgadmin4-4.3/pkg/pip/build.sh
but it give another type of error.

Quote:
Originally Posted by bassmadrigal View Post
Definitely some hurdles, but certainly not impossible. You've been doing great so far!
Thanks.

I tried another way. I run nemesis-xfce-19.02.21-k5.0_rc7-x86_64.iso -(based on Artix Linux is a rolling-release distribution, based on Arch Linux) in VirtualBox.
I built the package pgadmin4-4.2-1-x86_64-archlinux.txz. Of course it does not work, but you can to look at the content of this package >>> https://pastebin.com/Uti63SYC or https://pastebin.com/kAASvKXJ

Code:
%DEPENDS%
qt5-base
postgresql-libs
hicolor-icon-theme
python
python-blinker
python-extras
python-fixtures
python-flask
python-flask-login
python-flask-migrate
python-flask-sqlalchemy
python-flask-wtf
python-html5lib
python-passlib
python-mimeparse
python-pytz
python-simplejson
python-six
python-speaklater
python-sqlparse
python-wtforms
python-psutil
python-jinja
python-paramiko
python-psycopg2
python-cryptography
python-sqlalchemy
python-testtools
python-webencodings
python-werkzeug
python-dateutil
python-pyrsistent
python-pbr
python-flask-gravatar
python-flask-mail
python-flask-principal
python-flask-paranoid
python-htmlmin
python-flask-htmlmin
python-sshtunnel
python-flask-security
Nemesis takes these packages:
Code:
du: cannot access '/tmp/double-conversion-3.1.1-1-x86_64.pkg.tar.xz': No such file or directory
75M pgadmin4-4.2-1-x86_64.pkg.tar.xz
1.3M postgresql-libs-11.1-3-x86_64.pkg.tar.xz
36M python-3.7.2-3-x86_64.pkg.tar.xz
244K python-alembic-1.0.7-1-any.pkg.tar.xz
16K python-appdirs-1.4.3-2-any.pkg.tar.xz
160K python-asn1crypto-0.24.0-2-any.pkg.tar.xz
4.7M python-babel-2.6.0-2-any.pkg.tar.xz
32K python-bcrypt-3.1.6-1-x86_64.pkg.tar.xz
88K python-beaker-1.10.1-1-any.pkg.tar.xz
24K python-blinker-1.4-4-any.pkg.tar.xz
208K python-cffi-1.12.2-1-x86_64.pkg.tar.xz
124K python-click-7.0-1-any.pkg.tar.xz
344K python-cryptography-2.5-1-x86_64.pkg.tar.xz
260K python-dateutil-2.8.0-1-any.pkg.tar.xz
8.0K python-editor-1.0.4-1-any.pkg.tar.xz
12K python-extras-1.0.0-3-any.pkg.tar.xz
68K python-fixtures-3.0.0-3-any.pkg.tar.xz
124K python-flask-1.0.2-2-any.pkg.tar.xz
28K python-flask-babelex-0.9.3.r2.gd699306-1-any.pkg.tar.xz
16K python-flask-gravatar-0.5.0-1-any.pkg.tar.xz
8.0K python-flask-htmlmin-1.5.0-1-any.pkg.tar.xz
24K python-flask-login-0.4.1-2-any.pkg.tar.xz
28K python-flask-mail-0.9.1-1-any.pkg.tar.xz
32K python-flask-migrate-2.3.1-1-any.pkg.tar.xz
16K python-flask-paranoid-0.2-1-any.pkg.tar.xz
24K python-flask-principal-0.4.0-1-any.pkg.tar.xz
28K python-flask-script-2.0.6-2-any.pkg.tar.xz
104K python-flask-security-3.0.0-1-any.pkg.tar.xz
64K python-flask-sqlalchemy-2.3.2-2-any.pkg.tar.xz
44K python-flask-wtf-0.14.2-2-any.pkg.tar.xz
184K python-html5lib-1.0.1-3-any.pkg.tar.xz
48K python-htmlmin-0.1.12-1-any.pkg.tar.xz
64K python-idna-2.8-1-any.pkg.tar.xz
28K python-itsdangerous-1.1.0-1-any.pkg.tar.xz
196K python-jinja-2.10-2-any.pkg.tar.xz
124K python-mako-1.0.7-3-any.pkg.tar.xz
24K python-markupsafe-1.1.1-1-x86_64.pkg.tar.xz
12K python-mimeparse-1.6.0-3-any.pkg.tar.xz
32K python-packaging-19.0-1-any.pkg.tar.xz
240K python-paramiko-2.4.2-1-any.pkg.tar.xz
624K python-passlib-1.7.1-2-any.pkg.tar.xz
120K python-pbr-5.1.3-1-any.pkg.tar.xz
76K python-ply-3.11-2-any.pkg.tar.xz
364K python-psutil-5.5.0-1-x86_64.pkg.tar.xz
272K python-psycopg2-2.7.7-1-x86_64.pkg.tar.xz
104K python-pyasn1-0.4.5-1-any.pkg.tar.xz
164K python-pycparser-2.19-1-any.pkg.tar.xz
80K python-pynacl-1.3.0-1-x86_64.pkg.tar.xz
100K python-pyparsing-2.3.1-1-any.pkg.tar.xz
88K python-pyrsistent-0.14.11-1-x86_64.pkg.tar.xz
176K python-pytz-2018.9-1-any.pkg.tar.xz
296K python-setuptools-1:40.8.0-1-any.pkg.tar.xz
92K python-simplejson-3.16.1-1-x86_64.pkg.tar.xz
24K python-six-1.12.0-1-any.pkg.tar.xz
8.0K python-speaklater-1.3-4-any.pkg.tar.xz
1.4M python-sqlalchemy-1.2.18-1-x86_64.pkg.tar.xz
56K python-sqlparse-0.2.4-2-any.pkg.tar.xz
44K python-sshtunnel-0.1.4.r3.g66a923e-1-any.pkg.tar.xz
300K python-testtools-2.3.0-2-any.pkg.tar.xz
20K python-webencodings-0.5.1-2-any.pkg.tar.xz
396K python-werkzeug-0.14.1-3-any.pkg.tar.xz
320K python-wtforms-2.2.1-4-any.pkg.tar.xz
13M qt5-base-5.12.1-2-x86_64.pkg.tar.xz
92K tslib-1.19-1-x86_64.pkg.tar.xz
8.0K xcb-util-keysyms-0.4.0-2-x86_64.pkg.tar.xz
12K xcb-util-renderutil-0.3.9-2-x86_64.pkg.tar.xz
du: cannot access 'xcb-util-wm-0.4.1-2-x86_64.xzm': No such file or directory
or
Code:
Packages (68) double-conversion-3.1.1-1 postgresql-libs-11.1-3
              python-3.7.2-3 python-alembic-1.0.7-1 python-appdirs-1.4.3-2
              python-asn1crypto-0.24.0-2 python-babel-2.6.0-2
              python-bcrypt-3.1.6-1 python-beaker-1.10.1-1
              python-blinker-1.4-4 python-cffi-1.12.2-1 python-click-7.0-1
              python-cryptography-2.5-1 python-dateutil-2.8.0-1
              python-editor-1.0.4-1 python-extras-1.0.0-3
              python-fixtures-3.0.0-3 python-flask-1.0.2-2
              python-flask-babelex-0.9.3.r2.gd699306-1
              python-flask-gravatar-0.5.0-1 python-flask-htmlmin-1.5.0-1
              python-flask-login-0.4.1-2 python-flask-mail-0.9.1-1
              python-flask-migrate-2.3.1-1 python-flask-paranoid-0.2-1
              python-flask-principal-0.4.0-1 python-flask-script-2.0.6-2
              python-flask-security-3.0.0-1 python-flask-sqlalchemy-2.3.2-2
              python-flask-wtf-0.14.2-2 python-html5lib-1.0.1-3
              python-htmlmin-0.1.12-1 python-idna-2.8-1
              python-itsdangerous-1.1.0-1 python-jinja-2.10-2
              python-mako-1.0.7-3 python-markupsafe-1.1.1-1
              python-mimeparse-1.6.0-3 python-packaging-19.0-1
              python-paramiko-2.4.2-1 python-passlib-1.7.1-2
              python-pbr-5.1.3-1 python-ply-3.11-2 python-psutil-5.5.0-1
              python-psycopg2-2.7.7-1 python-pyasn1-0.4.5-1
              python-pycparser-2.19-1 python-pynacl-1.3.0-1
              python-pyparsing-2.3.1-1 python-pyrsistent-0.14.11-1
              python-pytz-2018.9-1 python-setuptools-1:40.8.0-1
              python-simplejson-3.16.1-1 python-six-1.12.0-1
              python-speaklater-1.3-4 python-sqlalchemy-1.2.18-1
              python-sqlparse-0.2.4-2 python-sshtunnel-0.1.4.r3.g66a923e-1
              python-testtools-2.3.0-2 python-webencodings-0.5.1-2
              python-werkzeug-0.14.1-3 python-wtforms-2.2.1-4
              qt5-base-5.12.1-2 tslib-1.19-1 xcb-util-keysyms-0.4.0-2
              xcb-util-renderutil-0.3.9-2 xcb-util-wm-0.4.1-2
              pgadmin4-4.2-1

Total Download Size: 135.67 MiB
Total Installed Size: 397.46 MiB
BTW, pgadmin4 works great in Nemesis - screenshot >>> https://i.imgur.com/9Ycj1fL.png

Dear guru, any chance to build pgadmin4 package in Slackware-current or not?

Thanks

Last edited by TurboBlaze; 03-07-2019 at 07:56 AM.
 
Old 03-07-2019, 11:46 AM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,820

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by TurboBlaze View Post
manually - it is not possible. Look at this tree https://pastebin.com/kAASvKXJ
That right there is what should be in your package, folder structure and all. Where did you get that? Was that after compiling or from the package on nemesis or something else? If this was after compiling, you can create a package from those files and folders. If it is from another package, then the code I provided (with possibly a bit of tweaking) would create the same folder structure and would allow you to create a package. Most of the files there are in the docs/ and web/ folders, which were simply copied over. You should be able to replace the make install with the following code block and have the same result:

Code:
  # Install binary
  install -Dm 755 runtime/pgAdmin4 "$PKG/usr/lib/pgadmin4/runtime/pgAdmin4"

  # Install icons
  install -Dm 644 runtime/pgAdmin4-0.png "$PKG/usr/share/icons/hicolor/256x256/apps/pgAdmin4.png"
  install -Dm 644 runtime/pgAdmin4-1.png "$PKG/usr/share/icons/hicolor/48x48/apps/pgAdmin4.png"
  install -Dm 644 runtime/pgAdmin4-2.png "$PKG/usr/share/icons/hicolor/32x32/apps/pgAdmin4.png"
  install -Dm 644 runtime/pgAdmin4-3.png "$PKG/usr/share/icons/hicolor/16x16/apps/pgAdmin4.png"

  # Install docs/ and web/ folders
  cp -a docs web "$PKG/usr/lib/pgadmin4"

  # Add possibly needed config files
  touch $PKG/usr/lib/pgadmin4/web/config_local.py
  install -Dm 644 /dev/stdin "$PKG/usr/lib/pgadmin4/web/config_distro.py" <<END
SERVER_MODE = False
HELP_PATH = "/usr/lib/pgadmin4/docs/en_US/_build/html/"
END
  
  # Install .desktop file
  install -Dm 755 /dev/stdin "$PKG/usr/share/applications/pgAdmin4.desktop" <<END
[Desktop Entry]
Encoding=UTF-8
Name=pgAdmin 4
Exec=/usr/lib/pgadmin4/runtime/pgAdmin4
Icon=pgAdmin4
Type=Application
Categories=Application;Development;Database;
MimeType=text/html
DocPath=/usr/lib/pgadmin4/docs/en_US/_build/html/index.html
Comment=PostgreSQL Tools
Keywords=database;db;sql;query;administration;development;
END

  # Install scripts to /usr/bin
  install -Dm 755 /dev/stdin "$PKG/usr/bin/pgadmin4" <<END
#!/bin/sh
cd /usr/lib/pgadmin4
exec runtime/pgAdmin4 "\$@"
END
  install -Dm 755 /dev/stdin "$PKG/usr/bin/pgadmin4-server" <<END
#!/bin/sh
cd /usr/lib/pgadmin4
python web/pgAdmin4.py "\$@"
END
Quote:
Originally Posted by TurboBlaze View Post
I tried it via
Code:
sed -i 18,21d /tmp/SBo/pgadmin4-4.3/pkg/pip/build.sh
but it give another type of error.
Without knowing the error, it's hard to guess what's wrong. But you could also try creating the .git/ directory and creating a config file within that directory.

Quote:
Originally Posted by TurboBlaze View Post
Dear guru, any chance to build pgadmin4 package in Slackware-current or not?
It seems like you've already built it. We just need to package it to create the SlackBuild. Hopefully the code above should do that.
 
Old 03-08-2019, 02:09 PM   #15
TurboBlaze
Member
 
Registered: Jan 2018
Location: Russian Federation, Lipetsk region, Dankov
Distribution: Porteus
Posts: 42

Original Poster
Rep: Reputation: Disabled
Hi bassmadrigal.
I updated pgadmin4.SlackBuild (look at 1st post)

Code:
Created tarball dist/pgadmin4-4.3.tar.gz and dist/pgadmin4-4.3-docs.tar.gz
+ cd /tmp/SBo/pgadmin4/runtime
+ qmake-qt5 CONFIG+=release
Info: creating stash file /tmp/SBo/pgadmin4/runtime/.qmake.stash
Project MESSAGE: Building for QT5+...
Project MESSAGE: Building for Linux/Mac...
Project MESSAGE: Using /usr/bin/python-config
Project MESSAGE: Python2 detected.
+ make
/usr/lib64/qt5/bin/uic ConfigWindow.ui -o ui_ConfigWindow.h
/usr/lib64/qt5/bin/uic LogWindow.ui -o ui_LogWindow.h
/usr/lib64/qt5/bin/uic FloatingWindow.ui -o ui_FloatingWindow.h
g++ -c -pipe -I/usr/include/python2.7
it comes from
Code:
  # Install binary
  cd "$TMP/$PRGNAM/runtime"
  qmake-qt5 CONFIG+=release
  make
  install -Dm 755 "$TMP/$PRGNAM/runtime/pgAdmin4" "$PKG/usr/lib${LIBDIRSUFFIX}/pgadmin4/runtime/pgAdmin4"
Can you say to me how to skip of using /usr/bin/python-config with Python2 detected
and replace this by /usr/bin/python-config3 with Python3 detected?

Code:
 export PYTHON_CONFIG=/usr/bin/python3-config
does not solve this issue.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pgadmin postgresql install HeyAZ Fedora 5 12-22-2009 02:40 PM
Is there a forum for postgresql, pgadmin? g.ky73 Linux - Newbie 3 03-23-2009 04:43 PM
Looking for GUI MySQL tool like pgadmin asplus Linux - Server 2 12-12-2007 10:23 PM
I need help! pgAdmin make fails dickgregory Linux - Software 1 09-27-2005 12:55 PM
Error connecting to postgres with pgAdmin koswo Linux - Software 1 02-10-2004 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration