Hi all, I’m using the gradle-ospackage-plugin provided by Netflix (https://github.com/nebula-plugins/gradle-ospackage-plugin).
I want my RPM to create a few empty directory when installed. In an oldfashioned rpm spec I would have done this:
I tried using this:
packageName = ‘foo’
And “gradlew buildRpm” does its job fine. When calling 'rpm -q -filesbypkg -p ', I get this, seemingly correct, output:
But, when installing, it fails:
[vagrant@guest1 share]$ sudo rpm -i foo-0.0.1.noarch.rpm
error: unpacking of archive failed on file ./var/opt/myapp/data: cpio: Archive file not in header
I don’t see:
Why it tries to install the directory in “.” rather than the root, and
Why even that fails.
Any hints would be most welcome since the Plugin-Rpm.md file is not very forthcoming on the issue of directories.