[RFC] New port: games/craft - Minecraft clone

2014-03-23 Thread Danilo E. Gondolfo
Somebody would like to help me to test this port?

Craft is a Minecraft clone created by Michael Fogleman and adapted by me
to run on FreeBSD.

svn co https://svn.redports.org/daniloegea/games/craft/
cd craft
make install clean

To run the game: craft

To run the server: craft-server
To connect to server: craft localhost

Thanks!

Danilo.
___
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: fs-uae amiga emulator

2014-03-10 Thread Danilo E. Gondolfo
On 03/10/14 05:13, Marko Cupać wrote:
> On Wed, 26 Feb 2014 15:29:07 -0300
> "Danilo E. Gondolfo"  wrote:
>
>> The port that I sent works perfectly on my FreeBSD 10-amd64.
>> I'm building it on redports.org right now [1], you can see the results
>> in a few minutes.
> Here as well, neighbourhood children can't get enough of Giana
> Sisters :) Any chance to see it in ports tree soon?
Yes! I'll do that during this week.

Danilo.
___
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: fs-uae amiga emulator

2014-02-26 Thread Danilo E. Gondolfo
On 02/26/14 15:25, Marko Cupać wrote:
> On Wed, 26 Feb 2014 18:43:41 +0100
> Carsten Jensen  wrote:
>
>> I've been installing it from scratch on 10.0 and it compiled without
>> problems + all the dependencies.
>>
>> I haven't tested it on older versions of FreeBSD.
>> Which version are you running?
> I am also on 10-RELEASE amd64.
>
> I didn't think this should matter, but apparently it does. I have
> Windows 7 and FreeBSD 10 dual-boot laptop with shared FAT32 partition:
>
> pacija@kaa:~ % sudo gpart show ada0
> =>63  1250263665  ada0  MBR  (596G)
>   631985- free -  (993K)
> 2048  204800 1  ntfs  (100M)
>   206848   167567360 2  ntfs  (80G)
>167774208   104857600 3  freebsd  [active]  (50G)
>272631808   977629184 4  fat32  (466G)
>   12502609922736- free -  (1.3M)
>
> FAT32 partition is mounted in directory under my home dir:
>
> pacija@kaa:~ % cat /etc/fstab
> /dev/ada0s3a / ufs rw 1 1
> /dev/ada0s3b none swap sw 0 0
> /dev/ada0s4 /home/pacija/data msdosfs rw,large,noatime,-Len_GB.UTF-8 2 2
> tmpfs /tmp tmpfs rw,size=128m,mode=1777 0 0
> proc /proc procfs rw 0 0
>
> If I put port dir on freebsd partition
> (eg. /home/pacija/Desktop/fs-uae), port compiles fine. If I put it on
> fat32 partition, I get those chown errors.
Yes, fat32 file system not recognize unix permissions. ;)
___
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: fs-uae amiga emulator

2014-02-26 Thread Danilo E. Gondolfo
On 02/26/14 14:43, Carsten Jensen wrote:
> On 02/26/2014 03:35 PM, Marko Cupać wrote:
>> On Mon, 17 Feb 2014 17:34:55 -0300
>> "Danilo E. Gondolfo"  wrote:
>>
>>> Hello,
>>>
>>> In this case, making a port is quite simple.
>>> Maybe I forgot something. But basically is this.
>>>
>>> To extract: sh fs-uae.shar
>> Sorry it took me some time to get to this. make fails with bunch of
>> chown errors:
>>
>> chown: 
>> /usr/home/pacija/data/softver/amiga/porttest/fs-uae/work/fs-uae-2.4.0/gensrc/cpuemu_31.cpp:
>> Invalid argument
>> chown: 
>> /usr/home/pacija/data/softver/amiga/porttest/fs-uae/work/fs-uae-2.4.0/gensrc:
>> Invalid argument
>> chown: 
>> /usr/home/pacija/data/softver/amiga/porttest/fs-uae/work/fs-uae-2.4.0/out/.dummy:
>> Invalid argument
>> chown: 
>> /usr/home/pacija/data/softver/amiga/porttest/fs-uae/work/fs-uae-2.4.0/out:
>> Invalid argument
>> chown: /usr/home/pacija/data/softver/amiga/porttest/fs-uae/work/fs-uae-2.4.0:
>> Invalid argument
>> chown: /usr/home/pacija/data/softver/amiga/porttest/fs-uae/work:
>> Invalid argument *** Error code 1
>>
>> Similar thing happen with another port I am testing (mixxx).
>>
>> Perhaps it has something to do with staging?
>>
> I've been installing it from scratch on 10.0 and it compiled without
> problems + all the dependencies.
>
> I haven't tested it on older versions of FreeBSD.
> Which version are you running?
>
> I still need to do some more testing on earlier systems, but I hope to
> be able to add the launcher as an option, though it might be tricky.
>
> cheers
> Carsten
>
The port that I sent works perfectly on my FreeBSD 10-amd64.
I'm building it on redports.org right now [1], you can see the results
in a few minutes.

[1] https://redports.org/buildarchive/20140226182600-11724/
___
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: fs-uae amiga emulator

2014-02-17 Thread Danilo E. Gondolfo
On 02/17/14 16:05, Marko Cupać wrote:
> Hi,
>
> for some time now I am using this great amiga emulator:
> http://fs-uae.net/
>
> It compiles and runs fine on FreeBSD, no need for any patches.
>
> Is there a chance we could see it in ports tree? Unfortunately I am not
> skilled enough to make a port (meaning I never made one).
>
> Regards,

Hello,

In this case, making a port is quite simple.
Maybe I forgot something. But basically is this.

To extract: sh fs-uae.shar
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#   fs-uae
#   fs-uae/Makefile
#   fs-uae/distinfo
#   fs-uae/pkg-plist
#   fs-uae/pkg-descr
#
echo c - fs-uae
mkdir -p fs-uae > /dev/null 2>&1
echo x - fs-uae/Makefile
sed 's/^X//' >fs-uae/Makefile << '26a01418ba2c0c8c4ce2b9933dc23f74'
X# Created by: 
X# $FreeBSD$
X
XPORTNAME=  fs-uae
XPORTVERSION=   2.4.0
XCATEGORIES=emulators
XMASTER_SITES=  http://fs-uae.net/stable/${PORTVERSION}/
X
XMAINTAINER=po...@freebsd.org
XCOMMENT=   Amiga emulators
X
XLICENSE=   GPLv2
X
XLIB_DEPENDS=   libpng.so:${PORTSDIR}/graphics/png \
X   libopenal.so:${PORTSDIR}/audio/openal
X
XUSES=  gettext gmake pkgconfig
XUSE_SDL=   sdl
XUSE_GL=gl
XUSE_GNOME= glib20
XINSTALLS_ICONS=yes
XMAKE_ARGS+=prefix=${PREFIX}
X
X.include 
26a01418ba2c0c8c4ce2b9933dc23f74
echo x - fs-uae/distinfo
sed 's/^X//' >fs-uae/distinfo << 'ebcf3025e96f209ee55286052ae62af9'
XSHA256 (fs-uae-2.4.0.tar.gz) = 
f198dcf88e20e0b72e63ae7f1173ffa9a852b92d9d8bc1adc10929201a062ac1
XSIZE (fs-uae-2.4.0.tar.gz) = 4390424
ebcf3025e96f209ee55286052ae62af9
echo x - fs-uae/pkg-plist
sed 's/^X//' >fs-uae/pkg-plist << '0121217920d4e87da7991fa7fa4a7bec'
Xbin/fs-uae
Xbin/fs-uae-device-helper
Xshare/applications/fs-uae.desktop
X%%PORTDOCSDOCSDIR%%/COPYING
X%%PORTDOCSDOCSDIR%%/README
X%%PORTDOCSDOCSDIR%%/example.conf
X%%DATADIR%%/2x_1920_1080/theme.conf
X%%DATADIR%%/2x_1920_1080_bezel/overlay.png
X%%DATADIR%%/2x_1920_1080_bezel/theme.conf
X%%DATADIR%%/aspect.png
X%%DATADIR%%/close.png
X%%DATADIR%%/floppy_sounds/drive_click.wav
X%%DATADIR%%/floppy_sounds/drive_snatch.wav
X%%DATADIR%%/floppy_sounds/drive_spin.wav
X%%DATADIR%%/floppy_sounds/drive_spinnd.wav
X%%DATADIR%%/floppy_sounds/drive_startup.wav
X%%DATADIR%%/gloss.png
X%%DATADIR%%/glow_left.png
X%%DATADIR%%/glow_top.png
X%%DATADIR%%/glow_top_left.png
X%%DATADIR%%/heading_strip.png
X%%DATADIR%%/input/0300300f12011001/jess_tech_dual_analog_pad_12_4_1_0_linux.conf
X%%DATADIR%%/input/0300300f12011001/names.txt
X%%DATADIR%%/input/03004c0568021101/names.txt
X%%DATADIR%%/input/03004c0568021101/sony_playstation_r_3_controller_19_27_0_0_linux.conf
X%%DATADIR%%/input/03004f0420b31001/names.txt
X%%DATADIR%%/input/03004f0420b31001/thrustmaster_2_in_1_dt_12_4_1_0_linux.conf
X%%DATADIR%%/input/03005e0419070001/names.txt
X%%DATADIR%%/input/03005e0419070001/xbox_360_wireless_receiver_15_6_0_0_linux.conf
X%%DATADIR%%/input/03005e048e021401/microsoft_x_box_360_pad_11_6_1_0_linux.conf
X%%DATADIR%%/input/03005e048e021401/names.txt
X%%DATADIR%%/input/03006d0419c21101/logitech_logitech_cordless_rumblepad_2_12_4_1_0_linux.conf
X%%DATADIR%%/input/03006d0419c21101/names.txt
X%%DATADIR%%/input/03006d041dc21440/generic_x_box_pad_11_6_1_0_linux.conf
X%%DATADIR%%/input/03006d041dc21440/names.txt
X%%DATADIR%%/input/03006d041ec22020/generic_x_box_pad_11_6_1_0_linux.conf
X%%DATADIR%%/input/03006d041ec22020/names.txt
X%%DATADIR%%/input/03006d041fc20503/generic_x_box_pad_11_6_1_0_linux.conf
X%%DATADIR%%/input/03006d041fc20503/names.txt
X%%DATADIR%%/input/03006d04d2ca1101/names.txt
X%%DATADIR%%/input/03006d04d2ca1101/ps3_usb_cordless_gamepad_13_4_1_0_linux.conf
X%%DATADIR%%/input/0300a30609010001/names.txt
X%%DATADIR%%/input/0300a30609010001/saitek_p880_12_4_1_0_linux.conf
X%%DATADIR%%/input/2_in_1_dt_12_4_1_0_macosx.conf
X%%DATADIR%%/input/2_in_1_dt_12_4_1_0_windows.conf
X%%DATADIR%%/input/common/gamepad.ini
X%%DATADIR%%/input/common/xarcade.ini
X%%DATADIR%%/input/common/xinput_gamepad.ini
X%%DATADIR%%/input/controller_gamepad_f310_10_5_1_0_windows.conf
X%%DATADIR%%/input/controller_rumble_gamepad_f510_10_5_1_0_windows.conf
X%%DATADIR%%/input/controller_wireless_gamepad_f710_10_5_1_0_windows.conf
X%%DATADIR%%/input/controller_xbox_360_for_windows_10_5_1_0_windows.conf
X%%DATADIR%%/input/controller_xbox_360_wireless_receiver_for_windows_10_5_1_0_windows.conf
X%%DATADIR%%/input/custom/custom

Re: PATCH net/openmpi making FORTRAN optional, Open GridScheduler support

2014-02-12 Thread Danilo E. Gondolfo
On 02/11/14 23:42, Benediktus Anindito wrote:
> Greetings,
>
> I'm now try to build a cluster with OpenMPI and Open GridScheduler
> (formerly Sun Grid Engine) as the job scheduler. based on OpenMPI FAQ,
> there is an option to build OpenMPI with SGE support. Since FORTRAN
> support is enabled by default and it depends on gcc46 and I do not use
> FORTRAN at all, I prefer to make FORTRAN support optional.
> Please correct me if this email (and its attachment) was wrong.
>
> Sincerely,
>

Hello, Benediktus.

Thank you for your work. Would you can open a PR about that?

Thanks!!

Danilo.
___
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: Ports with duplicate LATEST_LINKs

2014-01-11 Thread Danilo E. Gondolfo
On 01/11/14 10:39, Ports Index build wrote:
> Dear port maintainers,
>
> The following list includes ports maintained by you that have duplicate
> LATEST_LINK values.  They should either be modified to use a unique
> PKGNAME, e.g. by using PKGNAMESUFFIX.  Note that NO_LATEST_LINK is
> deprecated.  See the portmgr blog post for more information:
> http://blogs.freebsdish.org/portmgr/2013/10/03/package-name-collisions/
>
>
> Thanks,
> Erwin "Annoying Reminder Guy III" Lansing
>
>
> LATEST_LINK  PORTNAME   MAINTAINER  
> ==
> csound   audio/csound   po...@freebsd.org   
> csound   audio/csound6  po...@freebsd.org   

Ooops! My fault!!! Sorry!!!


>
> Total: 2 ports
> ___
> 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"
>

___
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: openmpi doesn't install under F10

2013-12-05 Thread Danilo E. Gondolfo
On 12/05/13 16:00, Dennis Glatting wrote:
> 
> 
> On Thu, 5 Dec 2013, Danilo E. Gondolfo wrote:
> 
>> On 12/05/13 15:17, Dennis Glatting wrote:
>>>
>>> OpenMPI fails to install under FreeBSD-10 BETA4. It previously
>>> installed under BETA3. The key difference appears to be version _1 vs
>>> _2. Data follows.
>>>
>>> The system:
>>>
>>> Coke# uname -a
>>> FreeBSD Coke 10.0-BETA4 FreeBSD 10.0-BETA4 #1 r258932: Wed Dec  4
>>> 14:57:28 PST 2013 root@Coke:/usr/obj/usr/src/sys/XYZZY-FBSD10  amd64
>>>
>>> Key part of the Makefile:
>>>
>>> PORTNAME=   openmpi
>>> DISTVERSION=1.7.3
>>> PORTREVISION=   2
>>>
>>> The relevant diagnostic output:
>>>
>>> Coke# make -dA install
>>> ...
>>> + echo '===>   Registering installation for openmpi-1.7.3_2'
>>> Execute: '/usr/bin/env FORCE_POST="rmdir kldxref mkfontscale mkfontdir
>>> fc-cache  fonts.dir fonts.scale gtk-update-icon-cache
>>> gio-querymodules gtk-query-immodules  ldconfig  load-octave-pkg
>>> update-desktop-database update-mime-database  gdk-pixbuf-query-loaders
>>> catalog.ports glib-compile-schemas" /usr/local/sbin/pkg-static
>>> register -i /usr/ports/net/openmpi/work/stage -m
>>> /usr/ports/net/openmpi/work/.metadir -f
>>> /usr/ports/net/openmpi/work/.PLIST.mktmp'
>>> + /usr/bin/env 'FORCE_POST=rmdir kldxref mkfontscale mkfontdir
>>> fc-cache fonts.dir fonts.scale gtk-update-icon-cache  gio-querymodules
>>> gtk-query-immodules  ldconfig  load-octave-pkg
>>> update-desktop-database update-mime-database  gdk-pixbuf-query-loaders
>>> catalog.ports glib-compile-schemas' /usr/local/sbin/pkg-static
>>> register -i /usr/ports/net/openmpi/work/stage -m
>>> /usr/ports/net/openmpi/work/.metadir -f
>>> /usr/ports/net/openmpi/work/.PLIST.mktmp
>>> pkg-static:
>>> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/ompi-iof):
>>>
>>> No such file or directory
>>> pkg-static:
>>> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/ompi-probe):
>>>
>>> No such file or directory
>>> pkg-static:
>>> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/ompi-profiler):
>>>
>>> No such file or directory
>>> pkg-static:
>>> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/orte-bootproxy.sh):
>>>
>>> No such file or directory
>>> pkg-static:
>>> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/orte-iof):
>>>
>>> No such file or directory
>>>
>>>
>>> pkg info from working installation:
>>>
>>> root@Monster:~ # pkg info | grep -i openmpi
>>> openmpi-1.7.3_1High Performance Message Passing Library
>>>
>>>
>>> ___
>>> 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"
>>>
>>
>> Hello Dennis,
>>
>> I'm a bit confused. The port net/openmpi installs the version 1.6.5. The
>> version 1.7.3 is installed by net/openmpi-devel.
>>
>> Look:
>>
>> $ pkg info | grep openmpi
>> openmpi-1.6.5_2High Performance Message Passing Library
>>
>> and with net/openmpi-devel installed:
>>
>> $ pkg info | grep openmpi
>> openmpi-devel-1.7.3High Performance Message Passing Library
>>
>>
>> Did you edit the Makefile?
>>
> 
> Thanks. Apparently. I deleted the Makefile and rechecked it out. That
> version is 1.6.5. My goof. Thanks.
> 

Ok :)

___
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: openmpi doesn't install under F10

2013-12-05 Thread Danilo E. Gondolfo
On 12/05/13 15:17, Dennis Glatting wrote:
>
> OpenMPI fails to install under FreeBSD-10 BETA4. It previously
> installed under BETA3. The key difference appears to be version _1 vs
> _2. Data follows.
>
> The system:
>
> Coke# uname -a
> FreeBSD Coke 10.0-BETA4 FreeBSD 10.0-BETA4 #1 r258932: Wed Dec  4
> 14:57:28 PST 2013 root@Coke:/usr/obj/usr/src/sys/XYZZY-FBSD10  amd64
>
> Key part of the Makefile:
>
> PORTNAME=   openmpi
> DISTVERSION=1.7.3
> PORTREVISION=   2
>
> The relevant diagnostic output:
>
> Coke# make -dA install
> ...
> + echo '===>   Registering installation for openmpi-1.7.3_2'
> Execute: '/usr/bin/env FORCE_POST="rmdir kldxref mkfontscale mkfontdir
> fc-cache  fonts.dir fonts.scale gtk-update-icon-cache 
> gio-querymodules gtk-query-immodules  ldconfig  load-octave-pkg 
> update-desktop-database update-mime-database  gdk-pixbuf-query-loaders
> catalog.ports glib-compile-schemas" /usr/local/sbin/pkg-static
> register -i /usr/ports/net/openmpi/work/stage -m
> /usr/ports/net/openmpi/work/.metadir -f
> /usr/ports/net/openmpi/work/.PLIST.mktmp'
> + /usr/bin/env 'FORCE_POST=rmdir kldxref mkfontscale mkfontdir
> fc-cache fonts.dir fonts.scale gtk-update-icon-cache  gio-querymodules
> gtk-query-immodules  ldconfig  load-octave-pkg 
> update-desktop-database update-mime-database  gdk-pixbuf-query-loaders
> catalog.ports glib-compile-schemas' /usr/local/sbin/pkg-static
> register -i /usr/ports/net/openmpi/work/stage -m
> /usr/ports/net/openmpi/work/.metadir -f
> /usr/ports/net/openmpi/work/.PLIST.mktmp
> pkg-static:
> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/ompi-iof):
> No such file or directory
> pkg-static:
> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/ompi-probe):
> No such file or directory
> pkg-static:
> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/ompi-profiler):
> No such file or directory
> pkg-static:
> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/orte-bootproxy.sh):
> No such file or directory
> pkg-static:
> lstat(/usr/ports/net/openmpi/work/stage/usr/local/mpi/openmpi/bin/orte-iof):
> No such file or directory
>
>
> pkg info from working installation:
>
> root@Monster:~ # pkg info | grep -i openmpi
> openmpi-1.7.3_1High Performance Message Passing Library
>
>
> ___
> 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"
>

Hello Dennis,

I'm a bit confused. The port net/openmpi installs the version 1.6.5. The
version 1.7.3 is installed by net/openmpi-devel.

Look:

$ pkg info | grep openmpi
openmpi-1.6.5_2High Performance Message Passing Library

and with net/openmpi-devel installed:

$ pkg info | grep openmpi
openmpi-devel-1.7.3High Performance Message Passing Library


Did you edit the Makefile?

___
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: Problems with "spaces" in file names during stage-qa

2013-11-04 Thread Danilo E. Gondolfo
On 11/03/13 20:56, Matthias Andree wrote:
> Am 03.11.2013 14:16, schrieb Danilo E. Gondolfo:
>> Hello folks,
>>
>>  I've had some problems with blank chars in file names during stage-qa.
>>
>> Problems like that:
>>
>> > Running Q/A tests (stage-qa)
>> sed:
>> /home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/01:
>> No such file or directory
>> sed: -: No such file or directory
>> sed: pronobozo: No such file or directory
>> sed: -: No such file or directory
>> sed: lincity.ogg: No such file or directory
>> sed:
>> /home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/03:
>> No such file or directory
>> sed: -: No such file or directory
>> sed: Robert: No such file or directory
>> sed: van: No such file or directory
>> sed: Herk: No such file or directory
>> sed: -: No such file or directory
>> sed: Architectural: No such file or directory
>> sed: Contemplations.ogg: No such file or directory
>> sed:
>> /home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/02:
>> No such file or directory
>> sed: -: No such file or directory
>> sed: Robert: No such file or directory
>> sed: van: No such file or directory
>> sed: Herk: No such file or directory
>> sed: -: No such file or directory
>> sed: City: No such file or directory
>> sed: Blues.ogg: No such file or directory
>>
>>
>> I've fixed this with the attached patch. What do you think?
> Thanks for taking a stab at this.
>
> However, the patch goes only halfway. If we really want to proof it
> against blanks, we need to tweak IFS - and that would still not proof it
> against tabs or line feeds in filenames.
>
> As reference, I found David A. Wheeler's article most elucidating:
> <http://www.dwheeler.com/essays/filenames-in-shell.html>
>
> Would you like to take another, more robust, stab at the script?
Tweak IFS is smarter :D
It reduced my patch to this:

Index: qa.sh
===
--- qa.sh(revision 332718)
+++ qa.sh(working copy)
@@ -110,6 +110,7 @@
 ret=0
 cd ${STAGEDIR}
 for check in ${checks}; do
+IFS="$(printf '\n\t')"
 ${check} || ret=1
 done

But the problem with other blanks remains... =/
___
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"


Problems with "spaces" in file names during stage-qa

2013-11-03 Thread Danilo E. Gondolfo
Hello folks,

 I've had some problems with blank chars in file names during stage-qa.

Problems like that:

> Running Q/A tests (stage-qa)
sed:
/home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/01:
No such file or directory
sed: -: No such file or directory
sed: pronobozo: No such file or directory
sed: -: No such file or directory
sed: lincity.ogg: No such file or directory
sed:
/home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/03:
No such file or directory
sed: -: No such file or directory
sed: Robert: No such file or directory
sed: van: No such file or directory
sed: Herk: No such file or directory
sed: -: No such file or directory
sed: Architectural: No such file or directory
sed: Contemplations.ogg: No such file or directory
sed:
/home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/02:
No such file or directory
sed: -: No such file or directory
sed: Robert: No such file or directory
sed: van: No such file or directory
sed: Herk: No such file or directory
sed: -: No such file or directory
sed: City: No such file or directory
sed: Blues.ogg: No such file or directory


I've fixed this with the attached patch. What do you think?


Danilo.
Index: Scripts/qa.sh
===
--- Scripts/qa.sh	(revision 332574)
+++ Scripts/qa.sh	(working copy)
@@ -17,8 +17,8 @@
 
 shebang() {
 	rc=0
-	for f in `find ${STAGEDIR} -type f`; do
-		interp=$(sed -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p;2q' $f)
+	find ${STAGEDIR} -type f | while read f; do
+		interp=$(sed -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p;2q' "$f")
 		case "$interp" in
 		"") ;;
 		/usr/bin/env) ;;
@@ -37,8 +37,8 @@
 
 symlinks() {
 	rc=0
-	for l in `find ${STAGEDIR} -type l`; do
-		link=$(readlink ${l})
+	find ${STAGEDIR} -type l | while read l; do
+		link=$(readlink "${l}")
 		case "${link}" in
 		${STAGEDIR}*) err "Bad symlinks ${l} pointing inside the stage directory"
 			rc=1
@@ -50,9 +50,9 @@
 paths() {
 	rc=0
 	dirs="${STAGEDIR} ${WRKDIR}"
-	for f in `find ${STAGEDIR} -type f`;do
+	find ${STAGEDIR} -type f | while read f; do
 		for d in ${dirs}; do
-			if grep -q ${d} ${f} ; then
+			if grep -q ${d} "${f}" ; then
 err "${f} is referring to ${d}"
 rc=1
 			fi
@@ -64,8 +64,8 @@
 stripped() {
 	[ -x /usr/bin/file ] || return # this is fatal
 	[ -n "${STRIP}" ] || return 0
-	for f in `find ${STAGEDIR} -type f`; do
-		output=`/usr/bin/file ${f}`
+	find ${STAGEDIR} -type f | while read f; do
+		output=`/usr/bin/file "${f}"`
 		case "${output}" in
 		*:*\ ELF\ *,\ not\ stripped*) warn "${f} is not stripped consider using \${STRIP_CMD}";;
 		esac

___
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"