Package Details: gerbera-git 2:1.9.2.r281.g6ed650c4-1

Git Clone URL: https://aur.archlinux.org/gerbera-git.git (read-only, click to copy)
Package Base: gerbera-git
Description: UPnP Media Server (Based on MediaTomb)
Upstream URL: https://github.com/gerbera/gerbera
Licenses: GPL2
Conflicts: gerbera
Provides: gerbera
Submitter: bhedrich
Maintainer: Rogach
Last Packager: Rogach
Votes: 1
Popularity: 0.000000
First Submitted: 2017-08-05 18:25 (UTC)
Last Updated: 2021-12-25 17:26 (UTC)

Latest Comments

1 2 3 Next › Last »

vertebrate commented on 2023-09-10 09:29 (UTC)

Indeed, my spdlog was outdated, sorry for the noise.

Rogach commented on 2023-09-10 05:28 (UTC)

@vertebrate I tried building a clean copy and it completed without issues.

Can you try doing a full system update and remove pkg and src directories before building the package?

vertebrate commented on 2023-09-10 03:06 (UTC)

The build fails with /usr/include/spdlog/logger.h:374:75: error: cannot bind non-const lvalue reference of type ‘bool&’ to an rvalue of type ‘bool’

Rogach commented on 2021-12-25 17:27 (UTC)

@FabioLolix That you for your suggestions!

I added the simpler pkgver function, and switched the cmake release type (don't see any adverse effects so far).

Can you clarify about "adding ${pkgver} to provide is not needed"? I have provides=(gerbera) here, but that seems to be explicitly suggested in VCS package guidelines.

FabioLolix commented on 2021-12-22 12:35 (UTC)

Hello,

  • A standard pkgver like git describe --long --tags | sed 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' is enough, see https://wiki.archlinux.org/title/VCS_package_guidelines#Git
  • about cmake release type, None is suggested by the wiki (if available)
  • adding ${pkgver} to provide is not needed
  • Just FYI when you added epoch, epoch=1 was enough

Rogach commented on 2021-11-06 16:36 (UTC)

@dreieck Thank you for your suggestions! Updated the PKGBUILD with these fixes.

Does it really need to depend on libupnp-git, i.e. explicitly the -git variant?

It was the case previously (libupnp in the repos was much older) - but seems that now it builds fine with stock libupnp.

dreieck commented on 2021-11-03 13:22 (UTC) (edited on 2021-11-03 15:19 (UTC) by dreieck)

Some comments on your PKGBUILD (thanks for the maintanence work, btw.!):

  • Does it really need to depend on libupnp-git, i.e. explicitly the -git variant? Is libupnp not sufficient? (libupnp-git should provide libupnp, if not, write a comment that the provides-entry should be added.)
  • You could add -DCMAKE_BUILD_TYPE=Release.
  • There is some "official" package version available: git describe --tags reveals currently v1.9.2-123-g2d03e26c. So, please use the part currently reading 1.9.2-123 as first part in $pkgver. pkgver() then could look like:
  pkgver () {
    cd "${pkgname}"
    _ver="$(git describe  --tags | sed 's|^v||' | sed 's|-[^-]*$||' | tr '-' '.')"
    _rev="$(git rev-list --count HEAD)"
    _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
    _hash="$(git rev-parse --short HEAD)"

    if [ -z "${_ver}" ]; then
      error "Version could not be determined."
      return 1
    else
      printf '%s' "${_ver}+r${_rev}.${_date}.${_hash}"
    fi
  }

which currently yields 1.9.2.123+r4761.20211103.2d03e26c. - Then you also can add =${pkgver} to the provides-entry. - Don't forget to increment $epoch when changing package versioning scheme.

You could see my package gerbera-nosystemd-git for references.

kyak commented on 2020-05-06 16:49 (UTC)

Awesome, thanks!

Rogach commented on 2020-05-06 14:19 (UTC)

@kyak Done.

kyak commented on 2020-05-06 05:39 (UTC)

Can you please enable AVCODEC (File metadata) and FFMPEGTHUMNAILER (Generate video thumbnails) by adding these options to cmake:

-DWITH_AVCODEC=1 -DWITH_FFMPEGTHUMBNAILER=1

And adding these packages to depends: 'ffmpeg' 'ffmpegthumbnailer'