How to Create an OpenBSD Port and Package
Wanting to learn about porting, I am following: How to Create an OpenBSD Port and Package from http://undeadly.org/cgi?action=articlesid=2008031806 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?
Re: How to Create an OpenBSD Port and Package
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=articlesid=2008031806 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
Re: How to Create an OpenBSD Port and Package
On Sun, Aug 10, 2008 at 10:06:39AM -0500, 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=articlesid=2008031806 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. You need to use tabs instead of spaces to indent commands used in your Makefile rules. do-install: tab here${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin/ tab here${INSTALL_DATA_DIR} ${PREFIX}/share/myscripts/ tab here${INSTALL_DATA} ${WRKSRC}/share/myscripts/* ${PREFIX}/share/myscripts/ In addition to the guide at undeadly, I recommend you read this: http://www.openbsd.org/porting.html Good luck, Stefan
Re: How to Create an OpenBSD Port and Package
Thanks, that was the problem. Cut and paste is mostly helpful ---But... Chris Stefan Sperling wrote: On Sun, Aug 10, 2008 at 10:06:39AM -0500, 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=articlesid=2008031806 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. You need to use tabs instead of spaces to indent commands used in your Makefile rules. do-install: tab here${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin/ tab here${INSTALL_DATA_DIR} ${PREFIX}/share/myscripts/ tab here${INSTALL_DATA} ${WRKSRC}/share/myscripts/* ${PREFIX}/share/myscripts/ In addition to the guide at undeadly, I recommend you read this: http://www.openbsd.org/porting.html Good luck, Stefan
Re: How to Create an OpenBSD Port and Package
On Sun, 2008-08-10 at 10:28 -0500, Chris Bennett wrote: Thanks, that was the problem. Cut and paste is mostly helpful ---But... :set list ...in vim(1) can help find these things. Also Port Lint ?