Package Details: lib32-libprotobuf-git v3.3.1.r420.gd1bc27ca-1

Git Clone URL: https://aur.archlinux.org/lib32-libprotobuf-git.git (read-only, click to copy)
Package Base: lib32-libprotobuf-git
Description: A language-neutral, platform-neutral extensible mechanism for serializing structured data.
Upstream URL: https://developers.google.com/protocol-buffers/
Licenses: custom
Submitter: JustPeachyKris
Maintainer: None
Last Packager: JustPeachyKris
Votes: 3
Popularity: 0.000000
First Submitted: 2017-08-09 20:42 (UTC)
Last Updated: 2017-09-15 22:07 (UTC)

Latest Comments

MarsSeed commented on 2022-05-07 21:01 (UTC)

Also please add provides=(lib32-protobuf) and conflicts=(lib32-protobuf) to PKGBUILD, as is standard for VCS packages.

MarsSeed commented on 2022-03-02 18:30 (UTC) (edited on 2022-03-02 19:15 (UTC) by MarsSeed)

Also please kindly fix minor issues with pkgver() function. What my suggested code does:

  • Removes v prefix.
  • Finds all tags, not just standalone ones. (The project changed to using so-called lightweight tags.)
    pkgver() {
        cd protobuf
        git describe --long --tags | sed 's/v\([0-9.]\+\)-\([a-z]\+\)/\1\2/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
    }
    

Current versioning function generates the following version:

pkgver=v3.7.0.rc.2.r2802.g1d13b6090

Correct version as of now should be:

pkgver=3.19.4.r304.g1d13b6090

MarsSeed commented on 2022-03-02 18:19 (UTC) (edited on 2022-03-02 19:17 (UTC) by MarsSeed)

Minor, non-blocking warnings observed during build:

Configure seems to override or disregard build flags in makepkg.conf like -O2 (or in my case, -O3).

Log shows hundreds of instances of such warnings:

/usr/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
412 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    |    ^~~~~~~

There are some other small issues as well:

  • Build disregards LDFLAGS which by default enables relro security feature.
  • There is some overlinking as well (disregarding "as-needed" LDFLAG).
  • Missing custom license directory.
    $ namcap /var/cache/pacman-local/pkg/lib32-libprotobuf-git-v3.7.0.rc.2.r2802.g1d13b6090-1-x86_64.pkg.tar.zst
    
    lib32-libprotobuf-git W: ELF file ('usr/lib32/libprotobuf-lite.so.30.0.4') lacks FULL RELRO, check LDFLAGS.
    lib32-libprotobuf-git W: ELF file ('usr/lib32/libprotobuf.so.30.0.4') lacks FULL RELRO, check LDFLAGS.
    lib32-libprotobuf-git W: ELF file ('usr/lib32/libprotoc.so.30.0.4') lacks FULL RELRO, check LDFLAGS.
    lib32-libprotobuf-git E: Missing custom license directory (usr/share/licenses/lib32-libprotobuf-git)
    lib32-libprotobuf-git W: Unused shared library '/usr/lib32/libz.so.1' by file ('usr/lib32/libprotobuf-lite.so.30.0.4')
    lib32-libprotobuf-git W: Unused shared library '/usr/lib32/libm.so.6' by file ('usr/lib32/libprotobuf-lite.so.30.0.4')
    lib32-libprotobuf-git W: Unused shared library '/usr/lib32/libm.so.6' by file ('usr/lib32/libprotobuf.so.30.0.4')
    lib32-libprotobuf-git W: Unused shared library '/usr/lib32/libz.so.1' by file ('usr/lib32/libprotoc.so.30.0.4')
    lib32-libprotobuf-git W: Unused shared library '/usr/lib32/libm.so.6' by file ('usr/lib32/libprotoc.so.30.0.4')