Apropos of jkorchok@hotmail.com's issue, I am seeing some errors from awk. Are different versions in use? This is what I get from a failed upgrade to gnome-doc-utils: Making all in gnome-doc-make make[2]: Nothing to be done for `all'. Making all in xslt awk -W compat -f "./xsldoc.awk" "../../xslt/docbook/common/db- chunk.xsl" | xsltproc -o "C/db-chunk.xml" --stringparam basename "db- chunk" --stringparam xsl_file "../../xslt/docbook/common/db- chunk.xsl" "./xsldoc.xsl" - awk: unknown option -W ignored awk: can't open file -f source line number 1 -:1: parser error : Document is empty ^ -:1: parser error : Start tag expected, '<' not found ^ unable to parse - make[2]: *** [C/db-chunk.xml] Error 6 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 awk -W compat is not an option in awk on OS X. It *is* on the awk I have on FreeBSD (actually, gawk). So what's happening here? is one of these a prerequisite but not listed as a dependency? white:~ paul$ port list | grep awk gawk @3.1.5 lang/gawk nawk @20050424 lang/nawk I didn't realize there were awk variants in the ports tree, but does anyone thing establishing a dependency on them without making that clear is a good idea? -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
I maintain the gnome-doc-util port and am using only the system awk (Mac OS X 10.4.9 ppc) I haven't the time to look at the port until this weekend though. On 21 Mar 2007, at 23:43, Paul Beard wrote:
Apropos of jkorchok@hotmail.com's issue, I am seeing some errors from awk. Are different versions in use?
This is what I get from a failed upgrade to gnome-doc-utils:
Making all in gnome-doc-make make[2]: Nothing to be done for `all'. Making all in xslt awk -W compat -f "./xsldoc.awk" "../../xslt/docbook/common/db- chunk.xsl" | xsltproc -o "C/db-chunk.xml" --stringparam basename "db-chunk" --stringparam xsl_file "../../xslt/docbook/common/db- chunk.xsl" "./xsldoc.xsl" - awk: unknown option -W ignored
awk: can't open file -f source line number 1 -:1: parser error : Document is empty
^ -:1: parser error : Start tag expected, '<' not found
^ unable to parse - make[2]: *** [C/db-chunk.xml] Error 6 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
awk -W compat is not an option in awk on OS X. It *is* on the awk I have on FreeBSD (actually, gawk). So what's happening here?
is one of these a prerequisite but not listed as a dependency?
white:~ paul$ port list | grep awk gawk @3.1.5 lang/gawk nawk @20050424 lang/nawk
I didn't realize there were awk variants in the ports tree, but does anyone thing establishing a dependency on them without making that clear is a good idea? -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
Randall Wood rhwood@mac.com "The rules are simple: The ball is round. The game lasts 90 minutes. All the rest is just philosophy."
On 2007-03-22 05:47:36 -0400, Randall Wood wrote:
I maintain the gnome-doc-util port and am using only the system awk (Mac OS X 10.4.9 ppc)
And I fear that many ports need to be updated to use the MacPorts version instead of the system one (not only for awk, but also for other utilities). And that's a reason why I think that the "g" prefix is a bad idea. -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Vincent, As the original porter of the gawk and gsed ports, I remember having a lengthy exchange about naming these two ports. Regarding gawk: By default GNU awk is installed as gawk, with awk linking to it: Saturn:/usr/local/bin marius$ ls -l *awk lrwxr-xr-x 1 root wheel 4 Feb 21 2006 awk -> gawk -rwxr-xr-x 2 root wheel 803996 Feb 21 2006 gawk -rwxr-xr-x 1 root wheel 3089 Feb 21 2006 igawk -rwxr-xr-x 2 root wheel 806200 Feb 21 2006 pgawk (Yes, this is not a MacPorts installation...) On Mar 22, 2007, at 8:29 AM, Vincent Lefevre wrote:
On 2007-03-22 05:47:36 -0400, Randall Wood wrote:
I maintain the gnome-doc-util port and am using only the system awk (Mac OS X 10.4.9 ppc)
And I fear that many ports need to be updated to use the MacPorts version instead of the system one (not only for awk, but also for other utilities). And that's a reason why I think that the "g" prefix is a bad idea.
-- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/ blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS- Lyon)
Marius -- Marius Schamschula Webmaster The Huntsville Macintosh Users Group www.hmug.org webmaster at hmug dot org marius at schamschula dot com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 22, 2007, at 2:47 AM, Randall Wood wrote:
I maintain the gnome-doc-util port and am using only the system awk (Mac OS X 10.4.9 ppc)
I haven't the time to look at the port until this weekend though.
Well, all I know is that "awk -W" works on systems with gawk installed and doesn't where it's missing. The gawk man page or simply running awk -W (on a system w/o gawk) should make it plain. - -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGApQnfHLPwpj1/JQRAvPpAJ994QCmn4cCLRV5xPABFwAjU//xVQCghAyt WYSXjr0XjljoH1IHgwKreSo= =Wt63 -----END PGP SIGNATURE-----
On 2007-03-22 08:49:24 -0500, Marius Schamschula wrote:
Vincent,
As the original porter of the gawk and gsed ports, I remember having a lengthy exchange about naming these two ports.
Regarding gawk:
By default GNU awk is installed as gawk, with awk linking to it:
Saturn:/usr/local/bin marius$ ls -l *awk lrwxr-xr-x 1 root wheel 4 Feb 21 2006 awk -> gawk -rwxr-xr-x 2 root wheel 803996 Feb 21 2006 gawk -rwxr-xr-x 1 root wheel 3089 Feb 21 2006 igawk -rwxr-xr-x 2 root wheel 806200 Feb 21 2006 pgawk
(Yes, this is not a MacPorts installation...)
Well, the default behavior is OK: The main point is that there is a version of the executable without the prefix. And I don't think that MacPorts should remove it. -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
On 22 Mar 2007, at 09:29, Vincent Lefevre wrote:
On 2007-03-22 05:47:36 -0400, Randall Wood wrote:
I maintain the gnome-doc-util port and am using only the system awk (Mac OS X 10.4.9 ppc)
And I fear that many ports need to be updated to use the MacPorts version instead of the system one (not only for awk, but also for other utilities). And that's a reason why I think that the "g" prefix is a bad idea.
NO! Many ports need to have bug reports submitted to upstream maintainers to have non-POSIX [g|m|n]awk dependencies fixed. Since gawk behaves differently than awk (and needs to be passed flags to prevent that different behavior), we do not want to risk breaking a port whose upstream maintainers are aware of and have worked around that issue. The problem with gnome-doc-utils is that the upstream maintainers accidently left some code in to force gawk to behave like awk when they shipped it, knowing that on linux, awk = gawk[1]. This port's configure system correctly detects for the presence of gawk, mawk, nawk, and awk (in that order). In any event, the next version of gnome-doc-utils will have this fixed, and, in the meantime, the Portfile has this fixed as of changeset 23035[2]. Port sync, port clean gnome-doc-utils, and build again. I did not bump the revision as users with gawk installed would not have noticed this problem. [1] http://bugzilla.gnome.org/show_bug.cgi?id=378739 [2] http://svn.macosforge.org/projects/macports/changeset/23035 Randall Wood rhwood@mac.com "The rules are simple: The ball is round. The game lasts 90 minutes. All the rest is just philosophy."
On 22 Mar 2007, at 14:50, Vincent Lefevre wrote:
On 2007-03-22 08:49:24 -0500, Marius Schamschula wrote:
Vincent,
As the original porter of the gawk and gsed ports, I remember having a lengthy exchange about naming these two ports.
Regarding gawk:
By default GNU awk is installed as gawk, with awk linking to it:
Saturn:/usr/local/bin marius$ ls -l *awk lrwxr-xr-x 1 root wheel 4 Feb 21 2006 awk -> gawk -rwxr-xr-x 2 root wheel 803996 Feb 21 2006 gawk -rwxr-xr-x 1 root wheel 3089 Feb 21 2006 igawk -rwxr-xr-x 2 root wheel 806200 Feb 21 2006 pgawk
(Yes, this is not a MacPorts installation...)
Well, the default behavior is OK: The main point is that there is a version of the executable without the prefix. And I don't think that MacPorts should remove it
Ports that use the autoconf-based configure system seem to be mostly aware of the potential difference between gawk, mawk, nawk, and awk, and check to know which one is being used. If an upstream developer assumes that all awks are like gawk, maybe the port maintainer needs to submit a bug report helping the developer work around gawk's extended non-POSIX feature set.
-- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/ blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS- Lyon) _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
Randall Wood rhwood@mac.com "The rules are simple: The ball is round. The game lasts 90 minutes. All the rest is just philosophy."
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 22, 2007, at 6:38 PM, Randall Wood wrote:
The problem with gnome-doc-utils is that the upstream maintainers accidently left some code in to force gawk to behave like awk when they shipped it, knowing that on linux, awk = gawk[1]. This port's configure system correctly detects for the presence of gawk, mawk, nawk, and awk (in that order).
In any event, the next version of gnome-doc-utils will have this fixed, and, in the meantime, the Portfile has this fixed as of changeset 23035[2]. Port sync, port clean gnome-doc-utils, and build again. I did not bump the revision as users with gawk installed would not have noticed this problem.
Not sure if I have the fix yet ( I did the sync/clean/build sequence) but this is the result. I removed gawk, since there seem to be no dependencies on it. So where does this "awk -W" come from? That is not supported in awk, and if configure does its job, it shouldn't happen. Making all in xslt xsltproc -o gnome-doc-xslt-C.omf --stringparam db2omf.basename gnome- doc-xslt --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.4//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/opt/local/share/omf" -- stringparam db2omf.help_dir "/opt/local/share/gnome/help" -- stringparam db2omf.omf_in "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_gnome_gnome-doc-utils/work/gnome-doc-utils-0.10.1/doc/xslt/gnome- doc-xslt.omf.in" --stringparam db2omf.scrollkeeper_cl "`scrollkeeper- config --pkgdatadir`/Templates/C/scrollkeeper_cl.xml" ../../xslt/ docbook/omf/db2omf.xsl C/gnome-doc-xslt.xml || { rm -f "gnome-doc- xslt-C.omf"; exit 1; } awk: unknown option -W ignored awk: can't open file /<\!--BEGIN-->/ { inc=1; } /<\!--END-->/ { inc=0; } inc { if (match($0, /<include href="[^"]*\.xml"/)) { base = $0; sub(/.*<include href="/, "", base); sub(/\.xml".*/, "", base); print base; } } source line number 1 gnome-doc-xslt.xml does not include all reference pages make[2]: *** [gnome-doc-xslt-check] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 Warning: the following items did not execute (for gnome-doc-utils): com.apple.activate com.apple.build com.apple.destroot com.apple.install Error: Status 1 encountered during processing. This is what configure finds: configure:1552: checking for gawk configure:1581: result: no configure:1552: checking for mawk configure:1581: result: no configure:1552: checking for nawk configure:1581: result: noconfigure:1552: checking for awk configure:1568: found /usr/bin/awk configure:1578: result: awk After installing gawk, I get this: configure:1552: checking for gawk configure:1568: found /opt/local/bin/gawk configure:1578: result: gawk And everything goes just fine from there. So it's plainly looking for gawk, with it's additional options (POSIX or no) and not really handling failure well. This may not be a big deal in the grand scheme of things, but it's really quite frustrating for people like me who don't know why something is failing. - -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGAznbfHLPwpj1/JQRAldgAJ0V+F4ibDd4P6j11U7+gGAdsCPs9wCgmtpJ Cpn3PqopH9Z1tRAdbmZOtaM= =0x6Z -----END PGP SIGNATURE-----
I recently posted about difficulty installing the ncursesw port. One of the lines in the error message is ./MKparametrized.sh: line 61: 25116 Illegal instruction ${AWK-awk} ' I have the gawk port installed and I'm wondering if (g)awk problems are at the root of it as well. John Korchok
On Mar 22, 2007, at 6:38 PM, Randall Wood wrote:
The problem with gnome-doc-utils is that the upstream maintainers accidently left some code in to force gawk to behave like awk when they shipped it, knowing that on linux, awk = gawk[1]. This port's configure system correctly detects for the presence of gawk, mawk, nawk, and awk (in that order).
In any event, the next version of gnome-doc-utils will have this fixed, and, in the meantime, the Portfile has this fixed as of changeset 23035[2]. Port sync, port clean gnome-doc-utils, and build again. I did not bump the revision as users with gawk installed would not have noticed this problem.
Not sure if I have the fix yet ( I did the sync/clean/build sequence) but this is the result. I removed gawk, since there seem to be no dependencies on it. So where does this "awk -W" come from? That is not supported in awk, and if configure does its job, it shouldn't happen.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 22, 2007, at 8:20 PM, John Korchok wrote:
I recently posted about difficulty installing the ncursesw port. One of the lines in the error message is
./MKparametrized.sh: line 61: 25116 Illegal instruction ${AWK-awk} '
I have the gawk port installed and I'm wondering if (g)awk problems are at the root of it as well.
what do you see if you turn up the debug level (port -ddd build ncursesw)? - -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGA1b+fHLPwpj1/JQRApdOAJ4yiozsOo/j0r7k1fiwJdBOM7JSJACfdIRn JfPsKX2K2a4mtGVKI/ZMAXc= =Xq10 -----END PGP SIGNATURE-----
On Mar 22, 2007, at 22:20, John Korchok wrote:
./MKparametrized.sh: line 61: 25116 Illegal instruction ${AWK-awk} '
If I understand my bash syntax, that should mean "the value of the variable AWK, unless it's undefined, in which case use the value 'awk'". The variable AWK is defined, or at least should be, to the value "gawk", per your previously posted output in that other thread.
Please wait a day. The fixed port is in svn, but does not seem to have made the rsync tree yet. On 22 Mar 2007, at 22:22, Paul Beard wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mar 22, 2007, at 6:38 PM, Randall Wood wrote:
The problem with gnome-doc-utils is that the upstream maintainers accidently left some code in to force gawk to behave like awk when they shipped it, knowing that on linux, awk = gawk[1]. This port's configure system correctly detects for the presence of gawk, mawk, nawk, and awk (in that order).
In any event, the next version of gnome-doc-utils will have this fixed, and, in the meantime, the Portfile has this fixed as of changeset 23035[2]. Port sync, port clean gnome-doc-utils, and build again. I did not bump the revision as users with gawk installed would not have noticed this problem.
Not sure if I have the fix yet ( I did the sync/clean/build sequence) but this is the result. I removed gawk, since there seem to be no dependencies on it. So where does this "awk -W" come from? That is not supported in awk, and if configure does its job, it shouldn't happen.
Making all in xslt xsltproc -o gnome-doc-xslt-C.omf --stringparam db2omf.basename gnome-doc-xslt --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.4//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/opt/local/share/omf" -- stringparam db2omf.help_dir "/opt/local/share/gnome/help" -- stringparam db2omf.omf_in "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.10.1/doc/xslt/ gnome-doc-xslt.omf.in" --stringparam db2omf.scrollkeeper_cl "`scrollkeeper-config --pkgdatadir`/Templates/C/ scrollkeeper_cl.xml" ../../xslt/docbook/omf/db2omf.xsl C/gnome-doc- xslt.xml || { rm -f "gnome-doc-xslt-C.omf"; exit 1; } awk: unknown option -W ignored
awk: can't open file /<\!--BEGIN-->/ { inc=1; } /<\!--END-->/ { inc=0; } inc { if (match($0, /<include href="[^"]*\.xml"/)) { base = $0; sub(/.*<include href="/, "", base); sub(/\.xml".*/, "", base); print base; } } source line number 1 gnome-doc-xslt.xml does not include all reference pages make[2]: *** [gnome-doc-xslt-check] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
Warning: the following items did not execute (for gnome-doc-utils): com.apple.activate com.apple.build com.apple.destroot com.apple.install Error: Status 1 encountered during processing.
This is what configure finds:
configure:1552: checking for gawk configure:1581: result: no configure:1552: checking for mawk configure:1581: result: no configure:1552: checking for nawk configure:1581: result: noconfigure:1552: checking for awk configure:1568: found /usr/bin/awk configure:1578: result: awk
After installing gawk, I get this: configure:1552: checking for gawk configure:1568: found /opt/local/bin/gawk configure:1578: result: gawk
And everything goes just fine from there.
So it's plainly looking for gawk, with it's additional options (POSIX or no) and not really handling failure well.
This may not be a big deal in the grand scheme of things, but it's really quite frustrating for people like me who don't know why something is failing.
- -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin)
iD8DBQFGAznbfHLPwpj1/JQRAldgAJ0V+F4ibDd4P6j11U7+gGAdsCPs9wCgmtpJ Cpn3PqopH9Z1tRAdbmZOtaM= =0x6Z -----END PGP SIGNATURE-----
Randall Wood rhwood@mac.com "The rules are simple: The ball is round. The game lasts 90 minutes. All the rest is just philosophy."
On 2007-03-22 21:38:37 -0400, Randall Wood wrote:
Many ports need to have bug reports submitted to upstream maintainers to have non-POSIX [g|m|n]awk dependencies fixed. Since gawk behaves differently than awk (and needs to be passed flags to prevent that different behavior), we do not want to risk breaking a port whose upstream maintainers are aware of and have worked around that issue.
If gawk doesn't behave in a way that is compatible with awk when called as awk, then a bug should be reported to the gawk maintainers.
The problem with gnome-doc-utils is that the upstream maintainers accidently left some code in to force gawk to behave like awk when they shipped it, knowing that on linux, awk = gawk[1]. This port's configure system correctly detects for the presence of gawk, mawk, nawk, and awk (in that order).
So what? Of course, if gnome-doc-utils calls awk while expecting gawk extensions, that's a bug in gnome-doc-utils. But it was said here that there should be a few dependencies with the system as possible. That's why I think that there should be a /opt/local/bin/awk (whether it comes from gawk or another port) or gawk should be used instead. -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
participants (6)
-
John Korchok
-
Marius Schamschula
-
Paul Beard
-
Randall Wood
-
Ryan Schmidt
-
Vincent Lefevre