LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-18-2018, 02:16 AM   #1261
navigium
Member
 
Registered: Aug 2014
Location: Switzerland
Distribution: Slackware, FreeBSD
Posts: 119

Rep: Reputation: 58

Quote:
Originally Posted by ponce View Post
it's already included in current since some weeks
Oops. Thank you and sorry for the noise. That's awesome news.
 
Old 05-18-2018, 02:43 AM   #1262
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by ponce View Post
it's already included in current since some weeks
Code:
Wed Apr 25 04:38:51 UTC 2018
[...]
d/parallel-20180422-noarch-1.txz:  Added.
Parallel - build and execute shell command lines from standard input in parallel. Uh, oh...

BUT, for a shell scripting feature (somehow similar with xargs), its location in D series is a bit strange. I imagined that its place is in AP series, eventually...

Last edited by Darth Vader; 05-18-2018 at 03:00 AM.
 
Old 05-18-2018, 10:27 AM   #1263
akschu
Member
 
Registered: Dec 2007
Posts: 96

Rep: Reputation: 39
Quote:
Originally Posted by 55020 View Post
But upgrading your databases is nontrivial. So maybe it's better to have postgresql upgrades decoupled from Slackware upgrades.
It's just like anything else, minor version upgrades for security stuff is dead simple, restart the daemon. For other stuff, it requires an import/export, but it's only 3 commands...
 
1 members found this post helpful.
Old 05-18-2018, 10:37 AM   #1264
akschu
Member
 
Registered: Dec 2007
Posts: 96

Rep: Reputation: 39
Quote:
Originally Posted by Darth Vader View Post
Still I fail to notice where's the tragedy from the Slackware POV, considering that the PostgreSQL developers offer at least several years of support for a Major Release...

Also, it is not supposed you guys to use stable releases in production and Slackware to stick on the software's Major Releases for lifetime of a release?

Last I checked, our BDFL still does not pushed in the Slackware 14.2 "patches" the Plasma5, for example.

So, excuse me, but I cannot treat this story in other way than "yet another scary story ventilated in this forum"

There is no tragedy, postgres works every well and is easy to maintain. Easier in my opinion that mysql because mysql requires the user to know a little bit about the numerous different table types and has a lot of inconsistency issues, and in some cases plainly lacking real database features such as a timestamp with a time zone.

I'd WAY rather understand how to import and export every other year for a major release then hack time zone support into my app because the database won't do it.

Anyway, the SBo postgres package works fine, the only con is that it requires me to rebuild php to get the module. If postgres was in EXTRA, and the pgsql.so and pdo_pgsql.so modules were included in php (but disabled in php.ini), that would make my life WAY easier as I would just install postgres from EXTRA, uncomment two lines in php.ini and presto chango, php works. For those that don't want postgres, they don't install from EXTRA and it's just like it's always been.

My point is that a non intrusive change here makes slackware much nicer for those of us that want a real database.
 
2 members found this post helpful.
Old 05-18-2018, 11:42 AM   #1265
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by akschu View Post
There is no tragedy, postgres works every well and is easy to maintain. Easier in my opinion that mysql because mysql requires the user to know a little bit about the numerous different table types and has a lot of inconsistency issues, and in some cases plainly lacking real database features such as a timestamp with a time zone.

I'd WAY rather understand how to import and export every other year for a major release then hack time zone support into my app because the database won't do it.

Anyway, the SBo postgres package works fine, the only con is that it requires me to rebuild php to get the module. If postgres was in EXTRA, and the pgsql.so and pdo_pgsql.so modules were included in php (but disabled in php.ini), that would make my life WAY easier as I would just install postgres from EXTRA, uncomment two lines in php.ini and presto chango, php works. For those that don't want postgres, they don't install from EXTRA and it's just like it's always been.

My point is that a non intrusive change here makes slackware much nicer for those of us that want a real database.
IF the PostgreSQL is added to Slackware, as you pointed out, the PHP will build support for it.

BUT also the same will do Qt4 (or future Qt5) and probably other applications and libraries.

Then, I believe its place will not be in /extra, but in the main tree, maybe in N series.

And that's OK, because like you highlighted, PostgreSQL is a fine database server, with annual major releases and multi-annual maintenance and security support.

I for one, as one of those who uses PostgreSQL since Ice Age, I believe that it will be a fine addition to Slackware, and a non-invasive one.

I really hope that our BDFL will not be convinced for contrary by some who get mental scars from the usage of PostgreSQL.

Last edited by Darth Vader; 05-18-2018 at 12:03 PM.
 
Old 05-18-2018, 11:44 AM   #1266
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
We need libstdc++.so.5 back in aaa_elflibs. There are legacy games that need it.

Reference:

https://www.linuxquestions.org/quest...6/#post5856210
 
4 members found this post helpful.
Old 05-18-2018, 12:12 PM   #1267
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 614

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
I for one, as one of those who uses PostgreSQL since Ice Age, I believe that it will be a fine addition to Slackware, and a non-invasive one.
I agree with you too, I have been using PostgreSQL since I started using Slackware many years ago.
 
Old 05-18-2018, 12:23 PM   #1268
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,032

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Same here.

I think that PostgreSQL and NGINX will be nice additions to Slackware for the servers usage.

I do not know if the NGINX wasn't already requested, but it is widelly used and would be nice to have it along with Apache within Slackware.

Last edited by ZhaoLin1457; 05-18-2018 at 12:33 PM.
 
Old 05-18-2018, 12:39 PM   #1269
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,533

Rep: Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513
Quote:
Originally Posted by Darth Vader View Post
Parallel - build and execute shell command lines from standard input in parallel. Uh, oh...

BUT, for a shell scripting feature (somehow similar with xargs), its location in D series is a bit strange. I imagined that its place is in AP series, eventually...
It's written in Perl. Also, it's strange to keep fixating on which series a package belongs in, as if it's a dependency system or something.
 
3 members found this post helpful.
Old 05-18-2018, 12:40 PM   #1270
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
nginx and postgresql are doing just fine on SBo. I don't see what adding them to Slackware core would bring to the table, aside from shifting the maintenance burden from people who know them well and use them regularly, to people who have a thousand other packages to look at.

As for php and qt, both of those have scripts up on SBo as well for postgresql support:
- php-pgsql
- libqsqlpsql
 
4 members found this post helpful.
Old 05-18-2018, 12:53 PM   #1271
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,533

Rep: Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513
Quote:
Originally Posted by navigium View Post
I discovered GNU Parallel these days and IMHO it would be a great addition to a distro like Slackware which probably has quite a few console users. It's like "xargs" but executes the commands in parallel, using all those cores modern CPUs have.
GNU parallel is quite a bit more advanced than xargs (but I'm sure you know that if you've gone over the tutorial ;-)

If all your script requires is a parallel xargs, check out the xargs -P option. It's already able to do simple parallelization. In fact, even the busybox version supports this.
 
2 members found this post helpful.
Old 05-18-2018, 01:17 PM   #1272
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
openldap-client.SlackBuild:
Code:
# Remove man pages for the servers (not currently supported or shipped...
# do they even work properly without the evil PAM?)
find $PKG/usr/man -name slap* -exec rm -f {} \;
find $PKG/usr/man -type d -empty -exec rmdir {} \;
You don't need PAM to run a LDAP server.



nfs-utils.SlackBuild:
Code:
#
# No NFSv4 yet -- it requires additional libraries.

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --mandir=/usr/man \
  --with-statedir=/var/lib/nfs \
  --enable-mountconfig \
  --enable-nfsv4=no \
  --enable-gss=no \
  --enable-tirpc=yes \
  --program-prefix= \
  --program-suffix= \
  --build=$ARCH-slackware-linux || exit 1
http://git.linux-nfs.org/?p=steved/n...8b363f436cb1d5

You can enable nfs4 w/o gss, better than nothing.



Cheers
 
2 members found this post helpful.
Old 05-18-2018, 01:27 PM   #1273
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,533

Rep: Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513Reputation: 8513
Quote:
Originally Posted by shastah View Post
Even after the recent changes to pkgtools, enabling multi-threading where possible, creating txz packages with /sbin/makepkg still only uses one core here, I guess because of the compression preset level used.
[...]
Maybe if $XZ_THREADS_FORCED is set to 'yes' makepkg should drop the -9 from $COMPRESSOR for txz?
Perhaps I'll look at making the compression level a user-serviceable part. But I thought I should weigh in again here... the test you're running using random data doesn't really give real-world results since most compressors do a lousy job compressing random bytes. So here are three tests on my own machine using the Linux kernel source as the testfile:

Code:
bash-4.4$ time cat /tmp/linux-4.14.41.tar | xz -9 --threads=6 -c > /tmp/testfile.1.xz
real    2m23.472s
user    8m27.252s
sys     0m3.310s

bash-4.4$ time cat /tmp/linux-4.14.41.tar | xz --threads=6 -c > /tmp/testfile.2.xz
real    1m13.695s
user    6m42.475s
sys     0m1.356s

bash-4.4$ time cat /tmp/linux-4.14.41.tar | lbzip2 -9 -c > /tmp/testfile.3.bz2
real    0m10.049s
user    0m57.865s
sys     0m0.926s

bash-4.4$ ls -lh testfile.?.*
-rw-r--r-- 1 volkerdi users  96M May 18 13:10 testfile.1.xz
-rw-r--r-- 1 volkerdi users 101M May 18 13:12 testfile.2.xz
-rw-r--r-- 1 volkerdi users 116M May 18 13:13 testfile.3.bz2
As you can see, xz is still fairly slow even when the -9 is dropped, but look at the results using lbzip2 (bzip2 compression)!

The moral of the story is that if you're concerned about makepkg compression time, forget about building a .txz package - have it build .tbz instead. It will produce a larger package than xz will, but for packages intended for local use it's still a modest increase.
 
Old 05-18-2018, 01:45 PM   #1274
akschu
Member
 
Registered: Dec 2007
Posts: 96

Rep: Reputation: 39
Quote:
Originally Posted by ppr:kut View Post
nginx and postgresql are doing just fine on SBo. I don't see what adding them to Slackware core would bring to the table, aside from shifting the maintenance burden from people who know them well and use them regularly, to people who have a thousand other packages to look at.

As for php and qt, both of those have scripts up on SBo as well for postgresql support:
- php-pgsql
- libqsqlpsql
Fair enough.

I figured I would mention it since sendmail was removed. If we are going to force the sendmail/imapd users to migrate to postfix/docecot (or remove postfix and SBo sendmail) all in the name of it's a better mail system, then why not get a modern/feature-full database server in there while we are at it?

At least postfix supports milter, so it can mostly do what sendmail does....

schu

Last edited by akschu; 05-18-2018 at 01:47 PM.
 
Old 05-18-2018, 02:00 PM   #1275
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,914

Rep: Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032Reputation: 5032
There's a lot of very good software out there, and Postgres is one of them but we can't include it all in the distro and I think we need to be wary of Everything-but-the-kitchensinkism when requesting things to be added to the distro.

Postgres is the sort of thing that I prefer to install to /opt independently of the distro, but that's just me.
 
3 members found this post helpful.
  


Reply



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
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

All times are GMT -5. The time now is 12:37 AM.

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
Open Source Consulting | Domain Registration