Bug 152399 - databases/yasql fail to compile/run due to non-existing function call
Summary: databases/yasql fail to compile/run due to non-existing function call
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 12:00 UTC by Riccardo Torrini
Modified: 2010-11-21 22:40 UTC (History)
0 users

See Also:


Attachments
yasql.patch.gz (2.62 KB, text/plain)
2010-11-19 12:00 UTC, Riccardo Torrini
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Torrini 2010-11-19 12:00:18 UTC
	yasql try to use perl err() function and fail to compile/run.
	Also give some warning about deprecated functions.

Fix: Change err() with die(), replace \1 with $1, add some missing \
	Also bumped PORTREVISION to 1 (full patch attached)
How-To-Repeat: 	# cd /usr/ports/databases/yasql && make install clean
	# yasql
	syntax error at /usr/local/bin/yasql line 177, near "err"
	syntax error at /usr/local/bin/yasql line 180, near "}"
	Execution of /usr/local/bin/yasql aborted due to compilation errors.

	After substitued all err() with die() yasql start but if you use
	perl -w `which yasql` you can also get this warnings:

	Use of "do" to call subroutines is deprecated at /tmp/ya line 2407.
	Use of "do" to call subroutines is deprecated at /tmp/ya line 2410.
	\1 better written as $1 at /tmp/ya line 2876.
	\1 better written as $1 at /tmp/ya line 2890.
	Unrecognized escape \G passed through at /tmp/ya line 3565.
	Unrecognized escape \S passed through at /tmp/ya line 3565.

	First four lines are self-explained, last two have a missing "\"
	in the help section (to correctly show as "\G" asking for help).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-19 12:00:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-11-21 22:38:07 UTC
thierry     2010-11-21 22:37:58 UTC

  FreeBSD ports repository

  Modified files:
    databases/yasql      Makefile distinfo 
  Added files:
    databases/yasql/files patch-yasql.in 
  Log:
  Fix non-existing function call and deprecated functions.
  
  Since I'm there, define the license, and release the maintainership.
  
  PR:             ports/152399
  Submitted by:   Riccardo Torrini <riccardo (at) torrini.org>
  
  Revision  Changes    Path
  1.5       +6 -2      ports/databases/yasql/Makefile
  1.4       +0 -1      ports/databases/yasql/distinfo
  1.1       +114 -0    ports/databases/yasql/files/patch-yasql.in (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2010-11-21 22:38:20 UTC
State Changed
From-To: open->closed


Committed, thanks!