Sample Header Ad - 728x90

debuild lintian manpage-in-wrong-directory and binary-without-manpage

0 votes
1 answer
324 views
I am running debuild and lintian automatically finds 2 errors that I have with manpage. the project structure after running debuild command looks like this hoseopjeong@hoseopjeong-VirtualBox:~/Documents/HoseopJeong_debian_lab9/debianlaboration9-0.0$ tree . ├── debian │   ├── changelog │   ├── compat │   ├── control │   ├── copyright │   ├── debhelper-build-stamp │   ├── debianlaboration9 │   │   ├── DEBIAN │   │   │   ├── control │   │   │   └── md5sums │   │   └── usr │   │   ├── bin │   │   │   └── electrotest_standalone │   │   └── share │   │   ├── doc │   │   │   └── debianlaboration9 │   │   │   ├── changelog.Debian.gz │   │   │   ├── copyright │   │   │   └── README.Debian │   │   └── man │   │   └── electrotest_standalone.man.gz │   ├── debianlaboration9.debhelper.log │   ├── debianlaboration9.substvars │   ├── files │   ├── patches │   │   └── series │   ├── README.Debian │   ├── rules │   ├── source │   │   ├── format │   │   └── local-options │   └── watch ├── electrotest_standalone ├── electrotest_standalone.man ├── Makefile └── src └── electrotest_standalone.c the makefile which debuild uses looks like this prefix = /usr/local all: electrotest electrotest: ./src/electrotest_standalone.c gcc -o electrotest_standalone ./src/electrotest_standalone.c -lm install:electrotest install -D electrotest_standalone \ $(DESTDIR)$(prefix)/bin/electrotest_standalone mkdir $(DESTDIR)/usr/share mkdir $(DESTDIR)/usr/share/man cp electrotest_standalone.man \ $(DESTDIR)/usr/share/man/ clean: -rm -f electrotest distclean:clean uninstall: -rm -f $(DESTDIR)$(prefix)/bin/electrotest_standalone .PHONY: all install clean distclean uninstall So, as far as I understand a man file must be located inside usr/share/man. That's why I created ushare/man folders manually with Makefile and I can see when I run debuild command, debuild creates those folders and with `cp electrotest_standalone.man \ $(DESTDIR)/usr/share/man/`, debuild also manages to copy that file into man folder that generated by debuild. However, lintian still doesn't like that. When I run debuild, lintian shows Now running lintian... W: debianlaboration9: improbable-bug-number-in-closes 10 E: debianlaboration9: manpage-in-wrong-directory usr/share/man/electrotest_standalone.man.gz W: debianlaboration9: binary-without-manpage usr/bin/electrotest_standalone It says my man file is in wrong place and binary file electrotest_standalone does not have any man page. What am I doing wrong? Currently my man page just has a single sentence NAME: electrotest_standalone
Asked by javaprogrammer (43 rep)
Jun 17, 2022, 08:58 AM
Last activity: Jun 17, 2022, 09:03 AM