Package Details: postgresql-jdbc 42.3.1-1

Git Clone URL: (read-only, click to copy)
Package Base: postgresql-jdbc
Description: The official JDBC driver for PostgreSQL. Contains JDBC 4.2 drivers.
Upstream URL:
Licenses: custom: BSD
Submitter: None
Maintainer: Huulivoide
Last Packager: Huulivoide
Votes: 52
Popularity: 0.026179
First Submitted: 2008-01-28 20:22 (UTC)
Last Updated: 2022-01-11 12:05 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

egore911 commented on 2021-12-30 01:06 (UTC)

PKGBUILD for 42.3.1

egore911 commented on 2021-10-06 19:21 (UTC)

PKGBUILD for 42.2.24

elbahek commented on 2020-12-11 05:54 (UTC)

PKGBUILD for 42.2.18

Huulivoide commented on 2019-10-02 10:52 (UTC)

Package should be fixed now.

jimduchek commented on 2019-09-30 15:15 (UTC)

At some point this package got pretty broken. postgresql...jdbc42.jar does not even get installed, and the other two jars are zero-length files.

egore911 commented on 2018-10-28 19:53 (UTC)

PKGBUILD for 42.2.5:

This fixes also the lacking installation of the JDBC 4.2 driver.

radio_rogal commented on 2017-10-05 05:44 (UTC)

Current version is 42.*.* PostgreSQL has removed the build number for whole 42 series.

strang3r commented on 2016-12-03 18:47 (UTC)

PKGBUILD for 9.4.1212:

snoreven commented on 2016-09-07 16:51 (UTC)

Sorry, didn't see the PKGBUILD from the comments. Works with it. Please fix.

snoreven commented on 2016-09-07 15:14 (UTC)

I can't install, getting error when it's unpacking the .jar: -> Pakker ut postgresql-jdbc-9.4.1208.jdbc4.jar med bsdtar META-INF/: Can't replace existing directory with non-directory bsdtar: Error exit delayed from previous errors.

SRChiP commented on 2016-07-04 17:21 (UTC)

You can use this PKGBUILD to successfully build it. The changes are renaming the file names in noextract, loser137's change. #Maintainer: Jesse Jaara < jesse.jaara> pkgname=postgresql-jdbc _mainver=9.4 _build=1208 pkgver=${_mainver}.${_build} pkgrel=2 pkgdesc="The official JDBC driver for PostgreSQL. Contains JDBC 4.0 and 4.1 drivers." arch=('any') url="" license=("Custom: BSD") depends=('java-runtime') source=(LICENSE postgresql-jdbc-${pkgver}.jdbc4.jar::${_mainver}.${_build}.jre6.jar postgresql-jdbc-${pkgver}.jdbc41.jar::${_mainver}.${_build}.jre7.jar postgresql-jdbc-${pkgver}.jdbc42.jar::${_mainver}.${_build}.jar) md5sums=('da7e6f8b26deefe7c03b391454732a0d' 'ad222fd5d73c16db63aed7bc19396019' 'e23f33f6bac5638842ed0f810590e3d4' '19c06fdfc4fe514acf0bfacd1f8afd6a') noextract=(postgresql-jdbc-${pkgver}.jdbc4.jar postgresql-jdbc-${pkgver}.jdbc41.jar postgresql-jdbc-${pkgver}.jdbc42.jar) package() { install -d -m755 "${pkgdir}/usr/share/java/${pkgname}" install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc4.jar" "${pkgdir}/usr/share/java/${pkgname}/" install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc41.jar" "${pkgdir}/usr/share/java/${pkgname}/" install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/" ln -s postgresql-jdbc-${pkgver}.jdbc4.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc4.jar" ln -s postgresql-jdbc-${pkgver}.jdbc41.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc41.jar" ln -s postgresql-jdbc-${pkgver}.jdbc42.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc42.jar"

loser137 commented on 2016-03-22 08:05 (UTC)

postgresql-jdbc-9.4.1208.jdbc42.jar is downloaded but not installed. You can insert the following line in package() to fix this: install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/"

GLaDER commented on 2016-02-17 10:36 (UTC)

AUR Packages (1): postgresql-jdbc-9.4.1206-2 :: Proceed with installation? [Y/n] :: Retrieving package(s)... Already up-to-date. :: View postgresql-jdbc PKGBUILD? [Y/n] :: postgresql-jdbc PKGBUILD viewed :: Checking postgresql-jdbc integrity... ==> ERROR: license should be an array :: failed to verify postgresql-jdbc integrity

egore911 commented on 2014-12-20 21:09 (UTC)

The following PKGBUILD can be used for the latest driver (9.3_1102) and JDBC 4.1 support: # Contributor: [Vitaliy Berdinskikh]( aka UR6LAD # Contributor: [Christoph Brill]( pkgname=postgresql-jdbc pkgver=9.3_1102 pkgrel=1 pkgdesc="The official JDBC driver for PostgreSQL. This package contains JDBC3 and JDBC4 drivers." arch=('any') url="" license="BSD" depends=('java-runtime') source=(${pkgver//_/-}.jdbc3.jar \${pkgver//_/-}.jdbc4.jar \${pkgver//_/-}.jdbc41.jar) noextract=("postgresql-${pkgver//_/-}.jdbc3.jar" "postgresql-${pkgver//_/-}.jdbc4.jar" "postgresql-${pkgver//_/-}.jdbc41.jar") package() { mkdir -p $pkgdir/usr/share/java/$pkgname for f in $srcdir/*; do install -m644 ${f} $pkgdir/usr/share/java/$pkgname done for i in ${pkgdir}/usr/share/java/${pkgname}/*.jar; do _filename=${i##*\/}; _version=${pkgver//_/-} ln -s ${_filename} ${pkgdir}/usr/share/java/${pkgname}/${_filename/${_version}./} done } md5sums=('28130260a585a6c56c391c9522e04b5b' '5faefdec7dbd96f72a5b4c428cae4901' 'd45001469e6fc43664b5080fcea731a4') sha256sums=('bc0d11354b1932eba111fad53f2545b3aa796ebc16c2f49a2eae57d21fc5cbc3' '092090809bcf94aec9abc0ba6ba471949ad2e5971e7c1fc3777e2bc7ae9ebc3d' 'b78749d536da75c382d0a71c717cde6850df64e16594676fc7cacb5a74541d66')

radio_rogal commented on 2012-12-01 07:16 (UTC)


giddie commented on 2011-12-12 15:26 (UTC)

Is the arch actually restricted to x86 and x86_64, or should this actually be "any"?

radio_rogal commented on 2011-11-20 21:42 (UTC)

I see. 9.1_901-2 (Fix noextract)

schuay commented on 2011-11-19 21:33 (UTC)

Yeah the package contents are now fine, because you install both .jar files manually (without using wildcards). If you look inside $srcdir/ though after a makepkg, you will see that both .jar's are extracted. So no, noextract doesn't work with wildcards.

radio_rogal commented on 2011-11-19 21:26 (UTC)

No, noextract works: jars are not extracted. On my workstation: $ pacman -Ql postgresql-jdbc postgresql-jdbc /usr/ postgresql-jdbc /usr/share/ postgresql-jdbc /usr/share/java/ postgresql-jdbc /usr/share/java/postgresql-jdbc/ postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc3.jar postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc4.jar postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc3.jar postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc4.jar

schuay commented on 2011-11-19 08:09 (UTC)

Thanks. The noextract=('*.jar') line is still broken though, noextract doesn't accept wildcards. That's the reason a plain cp $srcdir/* didn't work.

radio_rogal commented on 2011-11-18 22:29 (UTC)


schuay commented on 2011-11-18 12:41 (UTC)

Please fix this package. If it hasn't been updated by Nov 22 (= 2 weeks after pcarrier's comment), it will be orphaned.

teekay commented on 2011-11-12 10:55 (UTC)

This package is broken. cp -R as suggested by pcarrier would still result in broken symlinks and needless install of all .class files I used this: package() { mkdir -p $pkgdir/usr/share/java/$pkgname cd $pkgdir/usr/share/java/$pkgname cp $srcdir/*.jar . cp $srcdir/ . for i in *.jar; do _filename=${i##*\/}; _version=${pkgver//_/-} ln -s ${_filename} ${_filename/${_version}./} || return 1 done }

pcarrier commented on 2011-11-08 15:05 (UTC)

cp $srcdir/* $pkgdir/usr/share/java/$pkgname has to be replaced with: cp -r $srcdir/* $pkgdir/usr/share/java/$pkgname

radio_rogal commented on 2010-11-13 16:20 (UTC)