cvs commit: ports/deskutils/cairo-dock-plugins Makefile distinfo ports/deskutils/cairo-dock-plugins/files patch-CDBashApplet.sh patch-Doncky-data-nvidia-config patch-GMenu-applet-menu patch-Network-Monitor-data-access-point patch-Network-Monitor-

Chris Rees crees at FreeBSD.org
Sun Apr 15 12:01:59 UTC 2012


On 15 April 2012 12:29, Pawel Pekala <pawel at freebsd.org> wrote:
> Hello Michael,
>
> Dnia 2012-04-14, o godz. 21:51:16
> Michael Scheidell <scheidell at FreeBSD.org> napisał(a):
>
>>    deskutils/cairo-dock-plugins/files patch-CDBashApplet.sh
>>                                       patch-Doncky-data-nvidia-config
>>                                       patch-GMenu-applet-menu
>>                                       patch-Network-Monitor-data-access-point
>>                                       patch-Network-Monitor-data-wifi
>>                                       patch-System-Monitor-data-nvidia-config
>>                                       patch-System-Monitor.conf.in
>>                                       patch-applet-appli-finder.c
>>                                       patch-applet-notifications.c
>>                                       patch-calc.sh
>>                                       patch-demo_bash.sh
>>                                       patch-netspeed
>>                                       patch-updatedb.sh
>>                                       patch-upload2free.sh
>>                                       patch-wifi-data-access-point
>>                                       patch-wifi-data-wifi
>
> This will break when LOCALBASE != /usr/local and it's user-settable
> variable as documented in ports(7). And two small questions:
> - could some of this be better solved by using REINPLACE_CMD ?
> - there's a lot bash scripts, shouldn't be there RUN_DEPENDS+= bash ?

For LOCALBASE_safeness we should use #!/usr/bin/env bash à la perl.

${REINPLACE_CMD} -e '1s,^#!/bin/bash,#!/usr/bin/env bash,'

If you can get upstream to do this as well, that'd mean it won't break
on other OSes too!

Chris


More information about the cvs-ports mailing list