Skip to content

cartridge pack rpm does not work properly for almalinux 8 #732

@maxim-komar

Description

@maxim-komar

Command cartridge pack rpm does not work properly If cartridge project directory contains symbolic links. I used tarantool-enterprise-bundle-2.10.2, so in my reproduce script you must change corresponding lines:

#!/bin/bash
NAME=min-app2

dnf upgrade

## >> CHANGE THIS LINES
curl -O https://t.bk.ru/Hp40HK0uD7aoUuF/tarantool-enterprise-bundle-2.10.2-0-gf4228cb7d-r503-linux-x86_64.tar.gz
tar zxfp tarantool-enterprise-bundle-2.10.2-0-gf4228cb7d-r503-linux-x86_64.tar.gz -C /opt/
## << CHANGE THIS LINES

export PATH=/opt/tarantool-enterprise/:$PATH
cartridge create --name $NAME
cd $NAME

mkdir config
touch config/somefile
cd test/
ln -s ../config/somefile .
cd ..

dnf -y install git
git init
git add .
git commit -m 'initial commit'
git tag -a 0.0.1 -m 'initial'
cartridge pack rpm

And then I tried to install this package:

# rpm -U /root/min-app2/min-app2-0.0.1.0-1.x86_64.rpm
error: unpacking of archive failed: cpio: Bad magic
error: min-app2-0.0.1.0-1.x86_64: install failed

OS version:

# cat /etc/centos-release
AlmaLinux release 8.6 (Sky Tiger)

cartridge cli version:

# PATH=/opt/tarantool-enterprise cartridge version
Tarantool Cartridge CLI
 Version: 2.12.1
 OS/Arch:  linux/amd64
 Git commit: af99c20

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions