Description of problem: I see that as delivered, logrotate has some porting done for HP-UX. I am improving on that with this patch. I did check and the source code will build correctly if following the instructions in README.HPUX. The source code will also build on Red Hat Linux 7.3 if you replace /usr/src/redhat/SOURCES/logrotate-3.6.4.tar.gz with the patched version.
Created attachment 58124 [details] unified diff of logrotate-3.6.4 on HP-UX
applied