Skip to content
Permalink
83e0d7979c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@pmenzel
Latest commit dc11807 Feb 11, 2019 History
On MarIuX `/usr/lib64` is a symbolic link to `/usr/lib`.

    $ ls -ld /usr/lib*
    drwxr-xr-x 240 root root 143360 Feb 11 16:51 /usr/lib
    lrwxrwxrwx   1 root root      3 Mar  7  2011 /usr/lib64 -> lib
    drwxr-xr-x  21 root root   4096 Feb  5 16:45 /usr/libexec

[CMake sets the `LIBDIR` to `lib64` by default.][1] This causes problems
when updating packages, where the same files where in `/usr/lib`
beforehand, as Bee will remove files, when removing the older package,
as it is unaware of the symbolic link.

    $ sudo bee query libzip.pc
    libzip-0.10-1.x86_64
      /usr/lib/pkgconfig/libzip.pc
    $ sudo bee update libzip
    $ tail -2 /usr/share/bee/libzip-1.5.1-0.x86_64/CONTENT
    type=directory:mode=040755:access=0755:uid=0:user=root:gid=0:group=root:size=60:mtime=1549900187:nlink=2:file=/usr/lib64/pkgconfig
    type=regular:mode=0100644:access=0644:uid=0:user=root:gid=0:group=root:size=302:mtime=1549900185:nlink=1:md5=aed6fcf96127fe49130955b6d670229f:file=/usr/lib64/pkgconfig/libzip.pc
    $ ls -l /usr/lib64/pkgconfig/libzip.pc
    ls: cannot access /usr/lib64/pkgconfig/libzip.pc: No such file or directory

Rebuild this package with Bee’s fixed CMake build type, where
`CMAKE_INSTALL_LIBDIR` is set to `/usr/lib`.

    [BEE] cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib /dev/shm/bee-root/libzip/libzip-1.5.1-1/source

Increment the revision to 1.

[1]: https://cmake.org/cmake/help/v3.8/module/GNUInstallDirs.html
1 contributor

Users who have contributed to this file

executable file 31 lines (21 sloc) 351 Bytes
#!/bin/env beesh
# BEE_VERSION libzip-1.5.1-1
SRCURL[0]="https://libzip.org/download/libzip-${PKGVERSION}.tar.xz"
PATCHURL[0]=""
# BEE_CONFIGURE=compat
# EXCLUDE=""
mee_extract() {
bee_extract ${@}
}
mee_patch() {
bee_patch ${@}
}
mee_configure() {
bee_configure
}
mee_build() {
bee_build
}
mee_install() {
bee_install
}