Re: SHEBANG_FILES
--On June 13, 2014 at 9:23:44 AM +0200 Matthias Andree wrote: Am 12.06.2014 23:52, schrieb Paul Schmehl: --On June 12, 2014 at 11:25:03 PM +0200 Kurt Jaeger wrote: Hi! I'm working on switching one of my ports over to staging. During testing, I got this: Error: '/usr/bin/perl' is an invalid shebang you need USES=shebangfix for 'bin/argus-lsof' Error: '/bin/bash' is an invalid shebang you need USES=shebangfix for 'bin/argus-vmstat' I've never seen this before, so I had to do a little digging. Eventually I put this in the Makefile: USES=shebangfix SHEBANG_FILES=bin/argus-lsof bin/argus-vmstat Almost correct. Do I need a comma between the files? No, but instead of giving their install location, you need to list the files with the relative path into $WRKSRC after they've gotten unpacked. That *is* the relative path into WRKSRC. I just gave up trying to figure it out and used REINPLACE instead. Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: SHEBANG_FILES
Am 12.06.2014 23:52, schrieb Paul Schmehl: > --On June 12, 2014 at 11:25:03 PM +0200 Kurt Jaeger wrote: > >> Hi! >> >>> I'm working on switching one of my ports over to staging. During >>> testing, I got this: >>> >>> Error: '/usr/bin/perl' is an invalid shebang you need USES=shebangfix >>> for 'bin/argus-lsof' >>> Error: '/bin/bash' is an invalid shebang you need USES=shebangfix for >>> 'bin/argus-vmstat' >>> >>> I've never seen this before, so I had to do a little digging. >>> Eventually I put this in the Makefile: >>> >>> USES=shebangfix >>> SHEBANG_FILES=bin/argus-lsof bin/argus-vmstat >> >> Almost correct. >> > > Do I need a comma between the files? No, but instead of giving their install location, you need to list the files with the relative path into $WRKSRC after they've gotten unpacked. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: SHEBANG_FILES
Hi! > >> I've never seen this before, so I had to do a little digging. > >> Eventually I put this in the Makefile: > >> > >> USES=shebangfix > >> SHEBANG_FILES=bin/argus-lsof bin/argus-vmstat > > > > Almost correct. > > > > Do I need a comma between the files? No. > >> But I'm getting errors: > >> > >> ===> Patching for argus-sasl-3.0.6.1 > >> sed: bin/argus-lsof: No such file or directory > >> > >> The argus-lsof and argus-vmstat files don't exist in the tarball. They > >> are created during the make process. > > > > Can you fix the path from the source files they are created from ? [...] > net-mgmt/argus3 It's probably events/argus-lsof.pl and events/argus-vmstat.sh, then. -- p...@opsec.eu+49 171 3101372 6 years to go ! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: SHEBANG_FILES
--On June 12, 2014 at 11:25:03 PM +0200 Kurt Jaeger wrote: Hi! I'm working on switching one of my ports over to staging. During testing, I got this: Error: '/usr/bin/perl' is an invalid shebang you need USES=shebangfix for 'bin/argus-lsof' Error: '/bin/bash' is an invalid shebang you need USES=shebangfix for 'bin/argus-vmstat' I've never seen this before, so I had to do a little digging. Eventually I put this in the Makefile: USES=shebangfix SHEBANG_FILES=bin/argus-lsof bin/argus-vmstat Almost correct. Do I need a comma between the files? But I'm getting errors: ===> Patching for argus-sasl-3.0.6.1 sed: bin/argus-lsof: No such file or directory The argus-lsof and argus-vmstat files don't exist in the tarball. They are created during the make process. Can you fix the path from the source files they are created from ? Then you do not need shebangfix for them. Well, yeah, I could. Which port is that ? net-mgmt/argus3 -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: SHEBANG_FILES
Hi! > I'm working on switching one of my ports over to staging. During testing, > I got this: > > Error: '/usr/bin/perl' is an invalid shebang you need USES=shebangfix for > 'bin/argus-lsof' > Error: '/bin/bash' is an invalid shebang you need USES=shebangfix for > 'bin/argus-vmstat' > > I've never seen this before, so I had to do a little digging. Eventually I > put this in the Makefile: > > USES=shebangfix > SHEBANG_FILES=bin/argus-lsof bin/argus-vmstat Almost correct. > But I'm getting errors: > > ===> Patching for argus-sasl-3.0.6.1 > sed: bin/argus-lsof: No such file or directory > > The argus-lsof and argus-vmstat files don't exist in the tarball. They are > created during the make process. Can you fix the path from the source files they are created from ? Then you do not need shebangfix for them. Which port is that ? -- p...@opsec.eu+49 171 3101372 6 years to go ! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
SHEBANG_FILES
I'm working on switching one of my ports over to staging. During testing, I got this: Error: '/usr/bin/perl' is an invalid shebang you need USES=shebangfix for 'bin/argus-lsof' Error: '/bin/bash' is an invalid shebang you need USES=shebangfix for 'bin/argus-vmstat' I've never seen this before, so I had to do a little digging. Eventually I put this in the Makefile: USES=shebangfix SHEBANG_FILES=bin/argus-lsof bin/argus-vmstat But I'm getting errors: ===> Patching for argus-sasl-3.0.6.1 sed: bin/argus-lsof: No such file or directory The argus-lsof and argus-vmstat files don't exist in the tarball. They are created during the make process. So I moved the SHEBANG_FILES line into the .do-install section. do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/argus ${STAGEDIR}/${PREFIX}/sbin/argus SHEBANG_FILES= bin/argus-lsof bin/argus-vmstat Same error. I even moved it inside the for loop that deals with the files: .for i in argus-lsof argus-snmp argus-vmstat argusbug SHEBANG_FILES= bin/argus-lsof bin/argus-vmstat ${INSTALL_SCRIPT} ${WRKSRC}/bin/$i ${STAGEDIR}/${PREFIX}/bin/$i No difference. What's the proper way to do this? -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"