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

if --prefix is provided with trailing slash it fails to build RPM #819

Closed
dhajoshi opened this issue Dec 6, 2014 · 1 comment

Comments

@dhajoshi
Copy link

@dhajoshi dhajoshi commented Dec 6, 2014

Not sure i am doing it correctly but .. ( or not sure it's intentionally made that FPM will not remove trailing slash )

fpm -s dir -t rpm --debug --verbose --force --rpm-attr '0555,dhajoshi,other:/tmp/testpacking/./parent' --name testfpm --repo-id osbuild --version 1.0 --workdir /var/tmp/ --prefix /tmp/testpacking/ --directories . -C /tmp/testpacking/ .

error: line 43: Prefixes must not end with "/": Prefix: /tmp/ {:level=>:info, :file=>"cabin/mixins/pipe.rb", :line=>"46"}
Process failed: rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /var/tmp/package-rpm-build20141206-16026-ziyvex/BUILD", "--define", "_topdir /var/tmp/package-rpm-build20141206-16026-ziyvex", "--define", "_sourcedir /var/tmp/package-rpm-build20141206-16026-ziyvex", "--define", "_rpmdir /var/tmp/package-rpm-build20141206-16026-ziyvex/RPMS", "--define", "_tmppath /var/tmp/", "/var/tmp/package-rpm-build20141206-16026-ziyvex/SPECS/testfpm.spec"] {:level=>:error, :file=>"/home/dhajoshi/fpm/lib/fpm/command.rb", :line=>"463"}

@dhajoshi

This comment has been minimized.

Copy link
Author

@dhajoshi dhajoshi commented Dec 6, 2014

jordansissel added a commit that referenced this issue Jun 24, 2016
remove trailing slash from --prefix option in rpm-packages, fixes #819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.