On 16-07-11 17:57:38, Amit Kulkarni wrote: > On Mon, Jul 11, 2016 at 4:51 PM, Edgar Pettijohn <ed...@pettijohn-web.com> > wrote: > > > On 16-07-11 09:21:18, Stuart Henderson wrote: > > > On 2016/07/10 23:54, Edgar Pettijohn wrote: > > > > I'm attempting to port libxlsxwriter. The problem I'm having is > > > > that I can't seem to get the examples to install correctly. > > > > > > > > In the Makefile I have this: > > > > ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/libxlsxwriter > > > > ${INSTALL_DATA} ${WRKSRC}/examples/*.c > > ${PREFIX}/share/examples/libxlsxwriter/ > > > > > > > > pkg/PLIST shows all of the relevent files. > > > > > > > > After $ make fake everything looks good in > > /usr/ports/pobj/etc/etc/fake-i386/etc/etc > > > > > > > > However, after $ make build install the > > /usr/local/share/examples/libxlsxwriter > > > > directory doesn't exist and obviously none of its intended files > > either. > > > > > > > > Everything else works correctly. I can compile test programs and link > > with > > > > -lxlsxwriter > > > > -- > > > > Edgar Pettijohn > > > > > > > > > > Perhaps you built a package before adding the examples and didn't remove > > it > > > before installing? > > > > > I think I may have found the issue. The plist under /usr/ports/plist/... > > still > > had the wrong info. Should this have been fixed by $ make update-plist? > > If so > > there may be a bug involved. If not I guess I should double check there > > in the > > future. > > > > When I try out new ports, I do the following since I don't build ports in > bulk now (If you wipe out packages you lose 1-2 days of built package data, > so be extremely careful). I would probably add a pattern to remove > MY_NEW_PORT to /usr/ports/packages as a adaptation below. > > pkg_delete MY_NEW_PORT > rm -rf /usr/ports/plist > rm -rf /usr/ports/packages > rm -rf /usr/ports/pobj > make install >
This has proven to be excellent advice. Probably needs to make its way into the porting guide somewhere. > Hope that helps you out. I think this is a known thing, sicne you are > tweaking the new port to get it right. I expect most ports people know this. -- Edgar Pettijohn