This page was exported from phaq
[ http://phaq.phunsites.net ] Export date: Mon Apr 21 2:05:00 2025 / +0000 GMT |
Yesterday I started digging around for a solution to create per-user or per-database statistics on MySQL, one of the more important peaces I was missing from it for a long time. Luckily enough, some guys over there had already done some work on this topic, so I wouldn't have to start over from scratch :-) It took me only little time to port over the patch from MySQL 5.0.51 to the more current 5.0.83 release within the FreeBSD ports tree, however not soon after starting a build I would encounter this error message:
At first I thought the port was corrupted so I refetched the package and reapplied the patch, to no avail. At second glance I checked for the file list from above command and noticed that it included the file named sql_yacc.yy, one of which had been altered by the previously applied patch. The question was: Why would the command line “/bin/sh ../ylwrap sql_yacc.yy ….” not get invoked when doing a build on a clean, unpatched package? At that stage I decided to just add a single whitespace to the file sql_yacc.yy and run the command manually:
Interestingly enough that command actually only seems to get involved when the contents of the sql_yacc.yy file is altered. So I digged deeper in analyzing the “ylwrap” script file, which is included with the MySQL package. Oh well, at that time I really felt like an idiot! Well, do I have YACC installed?
Well, I do … the only catch is: MySQL depends on bison, not on YACC. Good catch, after having installed bison from the ports tree MySQL compiled like a charm even with all my patches applied :-) |
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com |