Closed jtojnar closed 4 years ago
There is a target "install-manpages" (or short install-man). Do you think that it needs to be run by default?
Yeah installing manpages by default makes sense since we already create $prefix/share/man
. I tried running ninja install-manpages
and it does seem to work:
[1/5] Generating zzipfseeko.xmlK
writing 'zzipfseeko.html'
writing 'zzipfseeko.docbook'
[2/5] Generating zzipmmapped.xml
writing 'zzipmmapped.html'
not found in anchors: ['munmap', 'zzip_file_header_to_data']
writing 'zzipmmapped.docbook'
[3/5] Generating zziplib.xml
writing 'zziplib.html'
not found in anchors: ['zlib', '_open', 'ZZIP_FILE', 'ZZIP_DIR', 'buf32k', 'inflateInit', 'EOF', '__zzip_find_disk_trailer']
writing 'zziplib.docbook'
[4/5] Generating manpages.tar
ls: cannot access '/build/source/build/docs/htmpages.tar': No such file or directory
-rw-r--r-- 1 nixbld nixbld 153600 Apr 17 19:46 /build/source/build/docs/manpages.tar
[5/5] cd /build/source/build/docs && /nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash -c "ls -l /build/source/build/docs/*pages.tar" && /nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash -c "mkdir -vp \$DESTDIR/nix/store/irsdvi388zzs0iib254grjmfh3nmag3d-zziplib-0.13.71/share/man >&2 || ls -ld \$DESTDIR/nix/store/irsdvi388zzs0iib254grjmfh3nmag3d-zziplib-0.13.71/share/man >&2" && /nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash -c "cd \$DESTDIR/nix/store/irsdvi388zzs0iib254grjmfh3nmag3d-zziplib-0.13.71/share/man && tar xf /build/source/build/docs/manpages.tar"
-rw-r--r-- 1 nixbld nixbld 153600 Apr 17 19:46 /build/source/build/docs/manpages.tar
└── share
├── aclocal
│ └── zziplib.m4
└── man
└── man3
├── __zzip_fetch_disk_trailer.3.gz
├── __zzip_parse_root_directory.3.gz
├── __zzip_try_open.3.gz
├── zzip_close.3.gz
├── zzip_closedir.3.gz
├── zzip_compr_str.3.gz
├── zzip_dir_alloc.3.gz
├── zzip_dir_alloc_ext_io.3.gz
├── zzip_dir_close.3.gz
├── zzip_dir_fdopen.3.gz
├── zzip_dir_fdopen_ext_io.3.gz
├── zzip_dir_free.3.gz
├── zzip_dir_open.3.gz
├── zzip_dir_open_ext_io.3.gz
├── zzip_dir_read.3.gz
├── zzip_dir_real.3.gz
├── zzip_dir_stat.3.gz
├── zzip_dirfd.3.gz
├── zzip_dirhandle.3.gz
├── zzip_disk_buffer.3.gz
├── zzip_disk_close.3.gz
├── zzip_disk_entry_fopen.3.gz
├── zzip_disk_entry_strdup_comment.3.gz
├── zzip_disk_entry_strdup_name.3.gz
├── zzip_disk_entry_to_data.3.gz
├── zzip_disk_entry_to_file_header.3.gz
├── zzip_disk_fclose.3.gz
├── zzip_disk_feof.3.gz
├── zzip_disk_findfile.3.gz
├── zzip_disk_findfirst.3.gz
├── zzip_disk_findmatch.3.gz
├── zzip_disk_findnext.3.gz
├── zzip_disk_fopen.3.gz
├── zzip_disk_fread.3.gz
├── zzip_disk_init.3.gz
├── zzip_disk_mmap.3.gz
├── zzip_disk_munmap.3.gz
├── zzip_disk_new.3.gz
├── zzip_disk_open.3.gz
├── zzip_entry_data_offset.3.gz
├── zzip_entry_fclose.3.gz
├── zzip_entry_feof.3.gz
├── zzip_entry_ffile.3.gz
├── zzip_entry_findfile.3.gz
├── zzip_entry_findfirst.3.gz
├── zzip_entry_findmatch.3.gz
├── zzip_entry_findnext.3.gz
├── zzip_entry_fopen.3.gz
├── zzip_entry_fread.3.gz
├── zzip_entry_fread_file_header.3.gz
├── zzip_entry_free.3.gz
├── zzip_entry_strdup_name.3.gz
├── zzip_errno.3.gz
├── zzip_error.3.gz
├── zzip_fclose.3.gz
├── zzip_file_close.3.gz
├── zzip_file_open.3.gz
├── zzip_file_read.3.gz
├── zzip_file_real.3.gz
├── zzip_file_stat.3.gz
├── zzip_filesize.3.gz
├── zzip_fopen.3.gz
├── zzip_fread.3.gz
├── zzip_freopen.3.gz
├── zzip_fstat.3.gz
├── zzip_get_default_io.3.gz
├── zzip_inflate_init.3.gz
├── zzip_init_io.3.gz
├── zzip_open.3.gz
├── zzip_open_ext_io.3.gz
├── zzip_open_shared_io.3.gz
├── zzip_opendir.3.gz
├── zzip_opendir_ext_io.3.gz
├── zzip_read.3.gz
├── zzip_readdir.3.gz
├── zzip_realdir.3.gz
├── zzip_realfd.3.gz
├── zzip_rewind.3.gz
├── zzip_rewinddir.3.gz
├── zzip_seek.3.gz
├── zzip_seek32.3.gz
├── zzip_seekdir.3.gz
├── zzip_seekdir32.3.gz
├── zzip_seterror.3.gz
├── zzip_strerror.3.gz
├── zzip_strerror_of.3.gz
├── zzip_tell.3.gz
├── zzip_tell32.3.gz
├── zzip_telldir.3.gz
└── zzip_telldir32.3.gz
I have revisited the cmake-options so that if(UNIX) then install-man is ON by default.
Perhaps I spoke too soon. The man pages are installed but opening them with man
command shows an empty page. Even with https://github.com/gdraheim/zziplib/commit/5583ccc7a247ee27556ede344e93d3ac1dc72e9b and https://github.com/gdraheim/zziplib/commit/03ddd0ce0864e629256bc078eaadb0d21d0df6d9.
Looking into the unpacked .gz
files, they only seem to contain string like .so man3/zzip_tell.3
not any usable content.
Never mind, those are includes.
If I install the package, they seem to get resolved correctly.
Yes, I have just changed the "see other" manpages to include a "man3/" prefix due to a report by #56 that this is the correct behaviour.
Both .so
with and without man3/
prefix work here (NixOS) when installed so I will leave that to the other person.
For some reason the man pages are not installed. This is the build log: