Package Details: db4.8 4.8.30-7

Git Clone URL: https://aur.archlinux.org/db4.8.git (read-only, click to copy)
Package Base: db4.8
Description: The Berkeley DB embedded database system 4.8
Upstream URL: http://www.oracle.com/technology/software/products/berkeley-db/index.html
Keywords: db4.8
Licenses: custom
Submitter: None
Maintainer: pizzaman (Raansu)
Last Packager: Raansu
Votes: 40
Popularity: 0.26
First Submitted: 2010-11-26 09:45 (UTC)
Last Updated: 2021-04-23 02:16 (UTC)

Pinned Comments

Raansu commented on 2021-04-23 02:12 (UTC)

Let me know of any issues!

Updated 04/22/2021

Added "format security" patch from https://git.sailfishos.org/mer-core/db4/blob/master/db-4.8.30-format-security.patch This deals with a change to the default makepkg.conf compile options as set by the Arch Linux maintainers that adds '-Werror=format-security' to the default compiling options.

Changed PKGBUILD to correctly identify the list of supported architectures this package can compile on. Theoretically this should compile and run on a wide range of processors so if I missed one let me know and I can add it in.

Latest Comments

KillerWasp commented on 2022-03-18 05:06 (UTC) (edited on 2022-03-18 06:01 (UTC) by KillerWasp)

Those files need change +w permission for apply the last patch:

repmgr/repmgr_net.c crypto/aes_method.c txn/txn.c

iohzrd commented on 2021-04-23 10:49 (UTC)

@pizzaman As was stated by Raansu, it was getting set automatically. But I wasn't sure where it was getting set.

@Raansu Thanks for fixing

Raansu commented on 2021-04-23 02:12 (UTC)

Let me know of any issues!

Updated 04/22/2021

Added "format security" patch from https://git.sailfishos.org/mer-core/db4/blob/master/db-4.8.30-format-security.patch This deals with a change to the default makepkg.conf compile options as set by the Arch Linux maintainers that adds '-Werror=format-security' to the default compiling options.

Changed PKGBUILD to correctly identify the list of supported architectures this package can compile on. Theoretically this should compile and run on a wide range of processors so if I missed one let me know and I can add it in.

Raansu commented on 2021-04-23 02:04 (UTC)

@pizzaman thank you for adding me back as a maintainer. The package has been updated.

Raansu commented on 2021-04-23 01:29 (UTC)

@pizzaman I feel like I orphaned the package too soon. But I found out just recently that the default makepkg.conf file compiling options got changed recently. It seems like arch linux maintainers think " -Werror=format-security " is a good idea to have.

In the meantime I found a fix so db4.8 would compile with " -Werror=format-security " enabled from a Sailfish OS developer found here. https://git.sailfishos.org/mer-core/db4/blob/master/db-4.8.30-format-security.patch

Could you please add this?

pizzaman commented on 2021-04-22 23:01 (UTC)

@iohzrd I am wondering why are you compiling with the -Werror=format-security CFLAG?

Raansu commented on 2021-04-22 07:21 (UTC)

@iohzrd I'm not 100% about this issue and I don't know how to best fix it.

Because of this I feel like I cannot support this package any further and I will orphaning this package so someone else can take over support.

iohzrd commented on 2021-04-21 21:30 (UTC) (edited on 2021-04-21 21:30 (UTC) by iohzrd)

Currently getting:

../dist/../repmgr/repmgr_net.c: In function ‘__repmgr_listen’:
../dist/../repmgr/repmgr_net.c:1334:2: error: format not a string literal and no format arguments [-Werror=format-security]
 1334 |  __db_err(env, ret, why);
      |  ^~~~~~~~
cc1: some warnings being treated as errors
make: *** [Makefile:1954: repmgr_net.lo] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

while trying to compile. Please advise.

allspark commented on 2018-10-28 08:37 (UTC) (edited on 2018-10-28 08:38 (UTC) by allspark)

Hi,

the ARCH of this package is not ANY. it is ARCH dependend compiled (compiled on x86_64, but runs not on ARM)

https://wiki.archlinux.org/index.php/PKGBUILD#arch

"If a package is architecture-independent in its compiled state (shell scripts, fonts, themes, many types of extensions, etc.) then use arch=('any'). Please note that, as this is intended for packages that can be built once and used on any architecture, it will cause the package to be labeled -any as opposed to -x86_64, etc. "

Raansu commented on 2018-03-13 09:28 (UTC) (edited on 2018-03-13 12:37 (UTC) by Raansu)

Let me know of any issues!

Updated 03/13/2018

Added "__atomic_compare_exchange" patch as suggested.

Added "CVE-2017-10140-cwd-db_config" patch from Debian security (https://security-tracker.debian.org/tracker/CVE-2017-10140)

ozz commented on 2018-03-12 18:08 (UTC)

Is someone still maintaining this? It's an extremely important lib for lots of cryptocurrencies.

Probably should update this to include a patch for the __atomic_compare_exchange issue. Here's one way: https://gist.github.com/danieldk/5700533

Raansu commented on 2015-08-01 13:18 (UTC)

UPDATED!!! Let me know of any issues!

Raansu commented on 2015-08-01 13:06 (UTC)

I'll take this over, look for a new update in a few hours after this comment.

Naypam commented on 2015-04-24 10:46 (UTC)

Yeah somebody else could maybe take over running this, it's a dep of bitcoin-git and it won't compile without fixing the PKGBUILD.

ArchMagic commented on 2015-03-16 01:24 (UTC)

Note to others: this only builds if you replace "build()" with "package()" in the PKGBUILD

Nothing4You commented on 2015-02-11 15:49 (UTC)

==> ERROR: Missing package() function in /home/rschwab/build/db4.8/PKGBUILD

Red54 commented on 2013-04-12 18:15 (UTC)

Please use ${srcdir} to replace ${startdir}/src,and ${pkgdir} to replace ${startdir}/pkg, or I will make a new package to replace this one.

commented on 2012-06-29 08:38 (UTC)

This won't build if we're using custom src directories. You need to replace ${startdir}/src with ${srcdir} and ${startdir}/pkg with ${pkgdir} throughout the PKGBUILD.

commented on 2012-01-30 09:25 (UTC)

Thanks @laloch, link is now updated

laloch commented on 2012-01-25 18:24 (UTC)

Hello, new download link is http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz