Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libarchive: update 3.3.3 to 2.5.2
- update

NOTE:

Building via autotools by removing CMakeLists.txt the diffs will be:

```
0 : /usr/share/bee/libarchive-3.3.3-0.x86_64/CONTENT
1 : /scratch/local/bee-root/libarchive/libarchive-3.5.2-0/image/
 0 | 1 | t |  mode |  acc  | uid | gid | nln | file
 X | - | r |0100755|   0755|    0|    0|    1| /usr/lib/libarchive.so.13.3.3
 - | X | r |0100755|   0755|    0|    0|    1| /usr/lib/libarchive.so.13.5.2
 X | - | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so.13//libarchive.so.13.3.3
 - | X | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so.13//libarchive.so.13.5.2
 X | - | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so.14//libarchive.so.13.2.1
 X | - | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so//libarchive.so.13.3.3
 - | X | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so//libarchive.so.13.5.2
 - | X | r |0100644|   0644|    0|    0|    1| /usr/share/man/man3/archive_entry_misc.3

```

which is ok.

on the other hand: using cmake we'll end up in chaos:

```
0 : /usr/share/bee/libarchive-3.3.3-0.x86_64/CONTENT
1 : /scratch/local/bee-root/libarchive/libarchive-3.5.2-0/image/
 0 | 1 | t |  mode |  acc  | uid | gid | nln | file
 X | - | r |0100755|   0755|    0|    0|    1| /usr/lib/libarchive.so.13.3.3
 X | - | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so.13//libarchive.so.13.3.3
 X | - | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so.14//libarchive.so.13.2.1
 - | X | r |0100755|   0755|    0|    0|    1| /usr/lib/libarchive.so.18
 X | - | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so//libarchive.so.13.3.3
 - | X | s |0120777|   0777|    0|    0|    1| /usr/lib/libarchive.so//libarchive.so.18
 - | X | r |0100644|   0644|    0|    0|    1| /usr/share/man/man3/archive_entry_misc.3
```
  • Loading branch information
wwwutz committed Nov 16, 2021
1 parent 90cf93e commit e3495e7
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions libarchive.be0
@@ -1,31 +1,33 @@
#!/usr/bin/env beesh

# BEE_VERSION libarchive-3.3.3-0
# BEE_VERSION libarchive-3.5.2-0

SRCURL[0]="https://www.libarchive.org/downloads/libarchive-${PKGVERSION}.tar.gz"
# SRCURL[0]="https://www.libarchive.org/downloads/libarchive-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/73b093ce0ac09bb73b1ab58f02e95db7/libarchive-3.5.2.tar.gz"

# Diese kloppskoepfe kuemmern sich einen dreck um so.versions
#
# libarchive-3.1.2 libarchive-3.2.1
#
# cmake build libarchive.so.14 libarchive.so.15
# autotool build libarchive.so.13.1.2 libarchive.so.13.2.1
#
# laut aussage der entwickler sind die 3er ABIs stabil
#
# also: libarchive mit ./configure und noch n symlink namens 'libarchive.so.14'
# PATCHURL+=()

# Hirn: {F}:download, {S}:source, {B}:build, {D}:image
# build_in_sourcedir

function mee_patch() {
( cd ${S}; rm -v CMakeLists.txt; sleep 3 ) # defeat cmake
}
# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

function mee_install() {
bee_install
(
echo "# creating 'libarchive.so.14' compatibility link"; sleep 3
cd ${D}/usr/lib || cd ${D}/dev/shm/junk/lib
ln -sv libarchive.so.13.2.1 libarchive.so.14
)
mee_patch() {
bee_patch "${@}"
rm -v CMakeLists.txt
}

#mee_configure() {
# bee_configure
#}

#mee_build() {
# bee_build
#}

#mee_install() {
# bee_install
#}

0 comments on commit e3495e7

Please sign in to comment.