Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpio Archive file not in header error when installing an RPM Built by gradle-ospackage-plugin when directory directive has trailing slash #131

Open
sshort opened this issue Mar 12, 2018 · 1 comment

Comments

@sshort
Copy link

sshort commented Mar 12, 2018

This is mainly FYI and to help future googlers as the workaround is so easy. I'm using the nebula ospackage gradle plugin to build an RPM and I have found that using directory directive with a trailing slash causes a cpio archive file not in header error when the rpm is --install-ed. E.g.

directory("/var/log/blah/", 0644)

causes the error, but:

directory("/var/log/blah", 0644)

does not.

@terefang
Copy link
Contributor

hello

i hit the same issue with maven/antrun using emptydir

i have researched that there where and still are various bugs/features in stock rpm that trigger that problem.

a best practice seems to eat up any extra "/" in directory paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants