Commit Graph

50 Commits

Author SHA1 Message Date
Huangbin Zhan 0ec746ccb6 treewide: add conffiles
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2020-05-09 06:06:43 +08:00
Sebastian Kemper 00882ebb36 postgresql: fix pkg-config file
Currently the pc file has includedir hard coded to "/usr/include" and
libdir to "/usr/lib". This commit changes this so they can be controlled
via the "prefix" variable.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-05 22:41:21 +01:00
Daniel Golle c2d15517ab postgresql: fix PKG_HASH
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-01-07 09:40:58 +02:00
Daniel Golle af420515be postgresql: update to version 12.1
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-01-07 01:27:16 +02:00
Petr Štetiar 8383c19b90 treewide: fix service status command in procd compatible services
Fix breaking change introduced in the main tree with a commit
7519a36774ca ("base-files,procd: add generic service status") where the
old service `status` callback function doesn't work anymore and needs to
be renamed to `status_service`.  This name was chosen for consistency
with start and stop function callbacks, which are using `start_service`
and `stop_service` naming schemes.

While at it, fix whitespace issues in the status_service as well.

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-September/019035.html
Reported-by: Dirk Brenken <dev@brenken.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-11-18 06:28:57 +01:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Eneas U de Queiroz 2593eabd6b treewide: Capitalize submenus
Fixed a typo in tcpreplay.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-07-25 09:35:40 +08:00
Daniel Danzberger d9bd0c19e4 postgresql: Update to version 11.3
Version 11.3 is the current stable relase.

Changes between 9.3 and 11.3:
- pg_receivexlog, pg_resetxlog and pg_xlogdump have been replaced with pg_resetwal
- ZIC config variable must be set when cross compiling
- disable systemd support
- ecpg is no longer needed for building
- MAKELEVEL must be set to 0 when called from another makefile
- Setting AC_CONFIG_AUX_DIR([config]) is no longer requried
- Decrease build time by removing unnecessary configure checks

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2019-06-18 20:00:57 +02:00
Daniel Golle 6a8bf63004 postgresql: update ot version 9.6.13
Fixes CVE-2019-10129: Memory disclosure in partition routing
Does **NOT** fix CVE-2019-9193 which PostgreSQL doesn't consider a
security issue, see [1].

[1]: https://www.postgresql.org/about/news/1935/

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-05-18 19:09:21 +02:00
Hannu Nyman d8e61d49da postgresql: Revert adding build dependency to zlib/host
Revert the addition of build dependency in commit 2d1694ff7
to a non-existent host build of zlib.

The host build of zlib was removed already in April 2018 by
8dcd941d8b (diff-1ed408c61d79f9c6c5d197333e94ce8d)
which made zlib a build tool defined in /tools

The newly introduced build dependency causes always a warning like:
   WARNING: Makefile 'package/feeds/packages/postgresql/Makefile'
   has a build dependency on 'zlib/host', which does not exist

Not sure what was the error that 2d1694ff7 tried to fix,
but reference to a non-existent host build is not the solution.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-03-17 10:33:25 +02:00
Daniel Golle 2d1694ff7c postgresql: add HOST_BUILD_DEPENDS:=zlib/host
spotted on buildbot trying postgresql/host build:
configure: error: zlib library not found

Fix this by adding zlib/host to HOST_BUILD_DEPENDS.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-03-07 13:06:26 +01:00
Daniel Golle fe6597dd76 postgresql: update to version 9.6.12
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-03-02 20:42:58 +01:00
Rosen Penev 845aab78a9 postgresql: Update to 9.6.11
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-16 17:32:00 -08:00
Sebastian Kemper 43ec390bd7 postgresql: security bump to 9.6.10
This update includes fixes for the following CVEs:

- CVE-2018-1115
- CVE-2018-10925
- CVE-2018-10915

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-15 16:55:22 +02:00
Sebastian Kemper b86d9028d1 postgresql: update to version 9.6.8
This update addresses:

CVE-2018-1052
CVE-2018-1053
CVE-2018-1058

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-19 23:56:59 +01:00
Sebastian Kemper be07e031d0 postgresql: fix build for ARC arch
When building for ARC the compile fails with:

  /var/lib/buildbot/slaves/dave-builder/arc_arc700/build/sdk/build_dir/target-arc_arc700_uClibc/postgresql-9.6.5/src/include/storage/s_lock.h:899:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org.
   #error PostgreSQL does not have native spinlock support on this platform.  To continue the compilation, rerun configure using --disable-spinlocks.  However, performance will be poor.  Please report this to pgsql-bugs@postgresql.org.

So disable spinlocks when compiling for this arch. This was done
likewise for the avr32 target, which is not supported anymore, so this
can be deleted.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-19 23:54:56 +01:00
Sebastian Kemper 74d15bdb98 postgresql: clean up DEPENDS
Currently the DEPENDS do not reflect reality. Fix this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-19 23:49:18 +01:00
Sebastian Kemper 8e9ad7bb51 postgresql: clean up CFLAGS
- The extra include is removed; the postgresql build system adds this
  include by itself.

- '-lpthread' is removed; the postgresql build system is able to detect
  how to access pthread features by itself.

- '$(FPIC)' is removed; adding this to CFLAGS is not recommendable:

  a) The postgresql build system adds its own PIC flag behind OpenWrt's
  CFLAGS when compiling shared objects, overriding OpenWrt's setting.
  b) Forcing applications into PIC mode will just slow them down.
  c) This leads to build failures on aarch64:

    access/transam/commit_ts.o: In function `CommitTsPagePrecedes':
    commit_ts.c:(.text+0x14): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `TransactionIdPrecedes' defined in .text section in access/transam/transam.o
    commit_ts.c:(.text+0x14): warning: Too many GOT entries for -fpic, please recompile with -fPIC
    /var/lib/buildbot/slaves/dave-builder/aarch64_generic/build/sdk/staging_dir/toolchain-aarch64_generic_gcc-7.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/7.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: final link failed: Symbol needs debug section which does not exist
    collect2: error: ld returned 1 exit status

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-19 23:38:48 +01:00
Daniel Golle cf296664fe postgresql: update to version 9.6.6
Fixes CVE-2017-12172, CVE-2017-15098 and CVE-2017-15099.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-01-05 02:12:24 +01:00
Daniel Golle 395d5ece4f postgresql: update to version 9.6.5
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-11-07 01:30:02 +01:00
Daniel Golle 4cbd03a097 postgresql: update to version 9.6.4
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-08-14 17:27:30 +02:00
Daniel Golle 9a5e39ba7c Merge pull request #4180 from michael-dev/features/libpq-pkgconfig-files
postgresql: InstallDev pkg-config files for libpq
2017-08-01 17:01:00 +02:00
Michael Braun 3b82cf5419 postgresql: InstallDev pkg-config files for libpq
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
2017-08-01 15:48:28 +02:00
Daniel Golle c709189de4
postgresql: allow populating required DB using script
Extend UCI mechanics to allow pre-populating a newly created
database by executing SQL statements from a scripts file.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-02 19:57:31 +02:00
Daniel Golle 04e71645c7 postgresql: update to version 9.6.3
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-01 18:13:23 +02:00
Daniel Golle 66afa3c3ea postgresql: fix host build and correctly apply NLS
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-24 15:05:59 +02:00
Daniel Golle d0c3f8b967 postgresql: properly handle pg_config host build
pg_config needs to be build for each target which creates some
extra complications...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-23 20:58:34 +02:00
Daniel Golle c2d1bc7ae7 postgresql: set include path to fix building contribs
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-20 23:21:43 +02:00
Daniel Golle d619064f8e postgresql: disable parallel build
It seems to break things (occasionally)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-20 22:19:38 +02:00
Daniel Golle 2135991f51 postgresql: fix build and improve packaging
* make sure contrib stuff gets built and installed
* refresh patches and improve Makefile while at it

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-19 20:49:40 +02:00
Daniel Golle d9297dc5ce postgresql: update to version 9.4.12
Fixes CVE-2017-7484 and CVE-2017-7485.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-19 01:33:32 +02:00
Matthias Schiffer 4a984a8d60
treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424 for more information on
STAGING_DIR_HOSTPKG.

STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.

Also fixes a typo in the dbus Makefile ("STAGIND_DIR").

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-10 18:25:54 +01:00
Gergely Kiss 5ab41729ea postgresql: fix download URLs
Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
2016-11-11 11:23:49 +01:00
Daniel Golle ce46b633e2 postgresql: properly stop service
postmaster always detaches from procd, work around by using
pg_ctl to stop the server.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-10-11 01:03:27 +02:00
Daniel Golle c14f2ac6da postgresql: move some binaries to pgsql-cli-extra
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-28 14:45:27 +02:00
Daniel Golle 46ab42b35e postgresql: clean package to fix duplicate files issue
Both postgresql-server and postgresql-cli install /usr/bin/psql which
thus creates a conflict when installing both packages.
Fix this by removing duplicate and useless binaries from the
postgresql-server package.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-27 21:08:12 +02:00
Daniel Golle 63120640e6 postgresql: update to version 9.5.4 and major rework
* convert package build to use host-build for ecpg, pg_config and zic
 * introduce /lib/functions/postgresql.sh to be used by packages
   requiring a postgres database to exist as well as postgres' init
 * no longer require shadow-su, patch pg_ctl to setuid() ifself instead
 * auto-create database directory if there is enough free space
 * auto-create databases configured in UCI
 * remove some dead uci config options
 * grab maintainership

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-23 20:03:05 +02:00
Daniel Golle 3d3918bb9a postgresql: make host-built-tools safe for rebuilds
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-08-26 20:24:22 +02:00
Jo-Philipp Wich 9843f170d7 treewide: replace my defunct email address
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-07 12:00:59 +02:00
Jo-Philipp Wich ff0f689f97 Merge pull request #2530 from dangowrt/update-postgresql-to-9-5-1
postgresql: update source to 9.5.1 and refresh patches
2016-04-15 11:48:48 +02:00
Daniel Golle b0f8e994f3 postgresql: update source to 9.5.1 and refresh patches
Setting the additional include path for host-build of ecpg is no
longer required and started breaking the build (PostgeSQL BUG-14033),
remove it.
Also, pgsql-server no longer requires shadow-su since procd can take
care of starting it running under the appropriate user.
Moving the dependency to pgsql-cli makes sense as the 'su' command is
still needed to boot-strap a new data directory and also commonly used
for other administration tasks. However, in that way the CLI and
shadow-su can be removed during production once pgsql-server has been
setup.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-03-21 23:04:28 +01:00
Yousong Zhou 92b0575e28 Drop the redundant -r option to $(CP)
$(CP) was defined as `cp -fpR' since the very begining of OpenWrt build
system (2006-06-22).  The -R option should be enough and base packages
use only $(CP) for the same purposes just fine and BSD manual of cp also
discourages the use of `-r' option.  So let's just tidy up the usage now.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2016-03-12 01:23:28 +08:00
Alexander Ryzhov 4bfc89560e postgresql: now visible with uclibc
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-12-06 08:08:49 -05:00
Dirk Neukirchen bf119cb33b postgresql: fix potential snprintf issue
adopt buildroot commit: 3d3f70b567718ae308b5704ddd7d107c4849309e

spotted while reviewing buildroot changes to postgresql

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-21 10:05:11 +02:00
Dirk Neukirchen b19dc5496e postgresql: fix uclibc locale.h bug
reported in forum:
https://forum.openwrt.org/viewtopic.php?id=59137

issue was discovered and fixed already in buildroot
git commit id: f5e4ca10220e2325d3a34c0a423388e40b27dbdf

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-21 10:05:06 +02:00
Dirk Neukirchen 736ecae209 postgresql: add missing librt dependency
fixes build error with uclibc

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-21 10:04:59 +02:00
Daniel Golle 714a408a6e postgresql: update source to 9.4.4 and refresh scripts
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-08-12 17:30:20 +02:00
Dirk Neukirchen 6ae54e4075 postgresql: update to 9.4.1
- supports arm64/aarch64

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-12 17:30:20 +02:00
Ted Hess 581aef1d6e libpq: Fix missing dependency (shadow-utils)
Signed-off-by: Ted Hess <thess@kitschensync.net>
2014-10-07 14:02:46 -04:00
Jo-Philipp Wich 022ce86177 postgresql: import from oldpackages, add myself as maintainer, add license information, update to v9.0.17
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-02 12:42:33 +02:00