On Sun, 10 Aug 2008, Chris Bennett wrote:
Wanting to learn about porting, I am following: How to Create an OpenBSD Port and Package from http://undeadly.org/cgi?action=article&sid=20080318060000
Check out http://openbsd.org/porting.html too.
Ran into problem with: # Install myscripts under /usr/local/. do-install: ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin/ ${INSTALL_DATA_DIR} ${PREFIX}/share/myscripts/ ${INSTALL_DATA} ${WRKSRC}/share/myscripts/* ${PREFIX}/share/myscripts/ When I run make makesum, I get: $ sudo make makesum "Makefile", line 179: Need an operator "Makefile", line 180: Need an operator "Makefile", line 181: Need an operator Fatal errors encountered -- cannot continue referring to the three lines above. How do I fix this?
Erm what exactly are you trying to do? You normally don't need to use sudo for "make makesum" and I think you're trying to run it in the wrong directory. Run it in the port's directory to create the "distinfo" file after you have fetched the distfiles with "make fetch". If the software you're trying to port has been done right you don't need to do your own "do-install" target for the port. Sadly this isn't the case always. The error you are receiving from the "sudo make makesum" command is usually (always?) caused by trying to parse GNU Makefile with BSD make. Your port probably needs USE_GMAKE=Yes. -- Antti Harri