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
Can't install under Fedora 23 #364
Comments
@jsmad thanks for the report... Sorry there is an install problem, and hope someone with Fedora 23 can shed some light on the problem... |
CPack generated RPM failed to install due to the RPM owning directories owned by filesystem packages. Exclude mandir directories from CPack. Resolves htacg#364
It's a problem w/ CMake/CPack. I verified the package metadata, and it owns directories from base system package filesystem. rpm -qp --fileclass tidy-5.1.25-64bit.rpm
/usr/bin/tidy ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=a47d915eb211a8509ffefb1221d3425efc3db960, not stripped
/usr/include/tidy.h C source, ASCII text
/usr/include/tidybuffio.h C source, ASCII text
/usr/include/tidyenum.h C source, ASCII text
/usr/include/tidyplatform.h C source, ASCII text
/usr/lib/libtidy.so symbolic link to `libtidy.so.5'
/usr/lib/libtidy.so.5 symbolic link to `libtidy.so.5.1.25'
/usr/lib/libtidy.so.5.1.25 ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=9703d64a92d489f39bb85e80a68eb5bb59098d43, not stripped
/usr/lib/libtidys.a current ar archive
/usr/share/man directory
/usr/share/man/man1 directory
/usr/share/man/man1/tidy.1.gz troff or preprocessor input, ASCII text, with very long lines (gzip compressed data, from Unix, max compression)
`` |
Comparison with package generated using the fixed CMake file. rpm -qp --fileclass tidy-5.1.*-64bit.rpm
/usr/bin/tidy ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d23281d0e318573a1abb800ebc5ca2b3825b4b76, not stripped
/usr/include/tidy.h C source, ASCII text
/usr/include/tidybuffio.h C source, ASCII text
/usr/include/tidyenum.h C source, ASCII text
/usr/include/tidyplatform.h C source, ASCII text
/usr/lib/libtidy.so symbolic link to `libtidy.so.5'
/usr/lib/libtidy.so.5 symbolic link to `libtidy.so.5.1.36'
/usr/lib/libtidy.so.5.1.36 ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=073c484854f5dc6f347db0d04dc55fd909c5de24, not stripped
/usr/lib/libtidys.a current ar archive
/usr/share/man/man1/tidy.1.gz troff or preprocessor input, ASCII text, with very long lines (gzip compressed data, max compression, from Unix) Installs fine now |
Excellent! When I tried it, I had to exclude many more folders:
However, I might need to do a clean. Verifying. |
Yep, your patch works perfectly for me. The relevant bit from the generate spec file is as follows.
Notice it includes no paths owned by the system. Great work @hguemar! |
The variable you used override default paths from CPack, CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION can be used to easily add more paths without this side effect |
It looks like this eliminates the need for an upstream patch in Fedora. https://pkgs.fedoraproject.org/cgit/rpms/tidy.git/tree/0001-allow-modified-install-paths.patch So it should be possible now for Fedora to package this without modification. Here's the upstream (downstream?) package: |
@hguemar Now I understand. Excellent! |
The rpm package provided by http://binaries.html-tidy.org/ does not install under Fedora 23.
The error provided by dnf is:
The text was updated successfully, but these errors were encountered: