Re: [Fink-devel] /usr/bin/login
I was lurking on the list, and read these mails: Robert T Wyatt wondered why the terminal login produced this line: -bash: alias: aqua: not found Benjamin Reed observed: It looks like you've got something setting a bad alias in ~/.profile or ~/.bashrc (or there's a fink package doing so, in /sw/etc/profile.d) I concur. It seems like a bad alias. The alternative that the alias command is not available seems less likely, since the error would probably have been bash: alias: command not found: in that case. So, it is probably a bad alias line, like this: alias test= aqua This is bad, because unlike the tcsh shell, the bash shell does not allow a space before or behind the =. Indeed, the above line produces this error in my bash shell: bash: alias: aqua: not found Now, the .profile Robert quoted does not contain such a line, so it must be included in an other file. The default files bash parses are: /etc/profile ~/.bash_profile or ~/.bash_login or ~/.profile (This is where environment variables are defined) ~/.bashrc (This is where aliases and options are defined) $BASH_ENV (This file is run if $BASH_ENV is set) we can exclude .profile and .bashrc, so the other options are /etc/profile and the files fink includes. Robert, can you run this command and see what comes back? $ grep aqua /etc/profile /sw/bin/init.sh /sw/etc/profile.d/* If one of these files contains a line like alias test= aqua Then change it to alias test=aqua If the file is somewhere in the /sw directory, please report back to the list, so that it can be fixed in fink. Regards, Freek --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Re: dists/10.4-transitional/unstable/main/finkinfo/text ispell.patch,1.1,1.2
Daniel Macks wrote: [] To find the ispell occurance of sort we'd have to build with textutils installed. That's what I did and where it crashed. I was looking at it because of a recent crash report on the users list. There it crashed on a consequence of the tail bug, and after correcting this, I saw the sort bug. With sort it is more difficult, because sort +n starts counting fields at 0, whereas sort -k n starts counting at 1, so you would have to use the replacement sort -k n+1 after doing some arithmetic to compute n+1. Another possibility is given in info sort: Use env _POSIX2_VERSION=199209 sort instead of sort. This reinstates the old behavior (I tested it and it works). -- Martin --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
procheck [was Re: [Fink-devel] /usr/bin/login]
Freek Dijkstra wrote: Robert T Wyatt wondered why the terminal login produced this line: -bash: alias: aqua: not found Benjamin Reed observed: It looks like you've got something setting a bad alias in ~/.profile or ~/.bashrc (or there's a fink package doing so, in /sw/etc/profile.d) I concur. It seems like a bad alias. The alternative that the alias command is not available seems less likely, since the error would probably have been bash: alias: command not found: in that case. So, it is probably a bad alias line, like this: alias test= aqua This is bad, because unlike the tcsh shell, the bash shell does not allow a space before or behind the =. Indeed, the above line produces this error in my bash shell: bash: alias: aqua: not found snip Robert, can you run this command and see what comes back? $ grep aqua /etc/profile /sw/bin/init.sh /sw/etc/profile.d/* If one of these files contains a line like alias test= aqua Then change it to alias test=aqua If the file is somewhere in the /sw directory, please report back to the list, so that it can be fixed in fink. Regards, Freek Thanks Freek! bash-3.00$ grep aqua /etc/profile /sw/bin/init.sh /sw/etc/profile.d/* /sw/etc/profile.d/procheck.csh:# @@_aqua_program_directory_@@ below to point to the /sw/etc/profile.d/procheck.csh:# directories containing the procheck and aqua executables /sw/etc/profile.d/procheck.csh:alias aquapro $prodir'/aquapro.scr' /sw/etc/profile.d/procheck.csh:# Aliases are initialised by typing 'aqua' /sw/etc/profile.d/procheck.csh:if ( ! $?aquaroot ) setenv aquaroot @@_aqua_program_directory_@@ /sw/etc/profile.d/procheck.csh:if ( `alias aqua` == ) alias aqua 'source $aquaroot/aqsetupi' /sw/etc/profile.d/procheck.sh:# @@_aqua_program_directory_@@ below to point to the /sw/etc/profile.d/procheck.sh:# directories containing the procheck and aqua executables /sw/etc/profile.d/procheck.sh:alias aquapro=$prodir'/aquapro.scr' /sw/etc/profile.d/procheck.sh:# Aliases are initialised by typing 'aqua' /sw/etc/profile.d/procheck.sh:if [ -z $aquaroot ]; then /sw/etc/profile.d/procheck.sh: aquaroot=@@_aqua_program_directory_@@ /sw/etc/profile.d/procheck.sh: export aquaroot /sw/etc/profile.d/procheck.sh:if [ `alias aqua` = ]; then /sw/etc/profile.d/procheck.sh: alias aqua='source $aquaroot/aqsetupi' # This needs a SH equivalent !!! bash-3.00$ --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
[Fink-devel] Dependence on a compiler
Is there a way to handle a package's dependence on a compiler besides using a virtual package? I have a program, written in Ada, that depends on the macada.org port of GNAT to OSX. Is there a way I could express that dependence in a package .info? Thanks, Ben Place --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
[Fink-devel] mozilla-1.7.5-1 compile problem
I got problems trying to install Mozilla in my computer... Computer: PowerBook 15, G4 1.67 Ghz, 1GB RAM, 1440x960, millions. MacOSX 10.4.3 Error: cc -o Darwin8.3.0_OPT.OBJ/asymmkey.o -c -O2 -Dppc -Wmost -fpascal-strings -no-cpp-precomp -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -DNSS_3_4_CODE -UDEBUG -DNDEBUG -I/sw/src/mozilla-1.7.5-1/mozilla/dist/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/include -I/sw/src/mozilla-1.7.5-1/mozilla/dist/include/nspr -I/sw/src/mozilla-1.7.5-1/mozilla/dist/include/dbm -I../../../../dist/public/nspr asymmkey.c In file included from ../../../../dist/private/nss/nsspki1.h:57, from nsspki.h:56, from asymmkey.c:39: ../../../../dist/private/nss/oiddata.h:46: error: array type has incomplete element type make[4]: *** [Darwin8.3.0_OPT.OBJ/asymmkey.o] Error 1 make[4]: Leaving directory `/sw/src/mozilla-1.7.5-1/mozilla/security/nss/lib/pki' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/sw/src/mozilla-1.7.5-1/mozilla/security/nss/lib' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/sw/src/mozilla-1.7.5-1/mozilla/security/manager' make[1]: *** [tier_40] Error 2 make[1]: Leaving directory `/sw/src/mozilla-1.7.5-1/mozilla' make: *** [default] Error 2 make: Leaving directory `/sw/src/mozilla-1.7.5-1/mozilla' ### execution of /var/tmp/tmp.1.OOU7vG failed, exit code 1 Failed: compiling mozilla-1.7.5-1 failed There is a solution for this problem? Thanks -- Package manager version: 0.23.10 Distribution version: 0.8.0 Mac OS X version: 10.4.3 Xcode version: 2.1 gcc version: 4.0.0 (Apple Computer, Inc. build 5026) make version: 3.80 Feedback Courtesy of FinkCommander __ Carlos Le Mare __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] mozilla-1.7.5-1 compile problem
On Tue, Dec 13, 2005 at 10:43:45AM -0600, Carlos Le Mare wrote: I got problems trying to install Mozilla in my computer... Package manager version: 0.23.10 Distribution version: 0.8.0 Mac OS X version: 10.4.3 Xcode version: 2.1 gcc version: 4.0.0 (Apple Computer, Inc. build 5026) make version: 3.80 Feedback Courtesy of FinkCommander [...] Failed: compiling mozilla-1.7.5-1 failed Fink's mozilla has been at 1.7.5-2 or higher for many months now...you need to selfupdate. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Dependence on a compiler
On Dec 13, 2005, at 6:35 AM, Benjamin Place wrote: Is there a way to handle a package's dependence on a compiler besides using a virtual package? I have a program, written in Ada, that depends on the macada.org port of GNAT to OSX. Is there a way I could express that dependence in a package .info? If I understand what you're asking, and GNAT is used *only* to build the program, and there is a GNAT package in Fink, you can simply add this line to the program's .info: BuildDepends: gnat Trevor --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: procheck [was Re: [Fink-devel] /usr/bin/login]
Robert T Wyatt wrote: [] /sw/etc/profile.d/procheck.sh:# Aliases are initialised by typing 'aqua' /sw/etc/profile.d/procheck.sh:if [ -z $aquaroot ]; then /sw/etc/profile.d/procheck.sh: aquaroot=@@_aqua_program_directory_@@ /sw/etc/profile.d/procheck.sh: export aquaroot /sw/etc/profile.d/procheck.sh:if [ `alias aqua` = ]; then /sw/etc/profile.d/procheck.sh: alias aqua='source $aquaroot/aqsetupi' # This needs a SH equivalent !!! So finally this is a bug in the procheck package. In order to make the error message go away, the line if [ `alias aqua` = ]; then should be if [ `alias aqua 2/dev/null` = ]; then But the whole thing looks dubious anyway; there is no file named aqsetupi in the package. -- Martin --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Dependence on a compiler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trevor Harmon wrote: | On Dec 13, 2005, at 6:47 PM, Benjamin Place wrote: | | I don't think there is a GNAT package in Fink, I looked on the | Packages page and didn't find one. It seems to me that the GNAT Ada | compiler is analogous to Apple's DevTools, so therefore GNAT would | need to be represented in Fink by a virtual package. | | My reading of Fink's dev docs makes me think that would be *hard*. | | Is there another way? Is making a virtual package easier than I think? | | | You shouldn't need a virtual package. You can just write a normal | package description that grabs GNAT from here: | | http://www.gnu.org/software/gnat/gnat.html | | There's a tutorial for that here: | | http://fink.sourceforge.net/doc/quick-start-pkg/index.php | Except that gnat needs an ada compiler to bootstrap (specifically it needs gnat). There is no gnat package in fink bacause making one is a pain and, until now, there has been no demand for one. Peter -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Darwin) iQCVAwUBQ5+TQ7iDAg3OZTLPAQL7AQQAsF56c/GQXq8UMn0IY0MO04ue4yUBuMrn oFCWKVO4rbaeLVQqW3aiCvIMRb4h1KupX69kntn0GiYak9TsY0obKy4JDh8uD9tn TFjuG3PL7OLdYtOQdd1tK+w+0YYVVpI+oIxDPy31JjLqW/TBpcunvUDnpTnzt4IE Q556nR6A2OA= =90Tx -END PGP SIGNATURE- --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Dependence on a compiler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter O'Gorman wrote: | | Except that gnat needs an ada compiler to bootstrap (specifically it needs | gnat). There is no gnat package in fink bacause making one is a pain and, | until now, there has been no demand for one. Replying to myself :) Looks like the macada folks have a compiler available for download now that does not require you to overwrite /usr/bin/gcc. This could be unpackacked in the build directory and with the -B option to gcc, be used to bootstrap a fink ada compiler. Would probably want to do this as part of the gcc4 pacakge. No, I'm not volunteering :) Peter -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Darwin) iQCVAwUBQ5+hiriDAg3OZTLPAQKBpAP+PTf9KjTtM0gvsAFDnudXQJsAttvQJrsI /4SRvEwHmDndpnQaD3RIzyY5yqPtOyQFk88CAfv+bstuUV9o3YrAHNW4GCxR1i0/ ltdy36IkwyiG0L4+F4wq532KbxEleXGz8JZNyfcby7x7Xh5++8INGCJ7L3VrhJRf cAmM6mBwl14= =Uj/j -END PGP SIGNATURE- --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Dependence on a compiler
Benjamin Place wrote: On Dec 13, 2005, at 1:49 PM, Trevor Harmon wrote: If I understand what you're asking, and GNAT is used *only* to build the program, and there is a GNAT package in Fink, you can simply add this line to the program's .info: BuildDepends: gnat Thanks for your response, Trevor. I don't think there is a GNAT package in Fink, I looked on the Packages page and didn't find one. It seems to me that the GNAT Ada compiler is analogous to Apple's DevTools, so therefore GNAT would need to be represented in Fink by a virtual package. My reading of Fink's dev docs makes me think that would be *hard*. Is there another way? Is making a virtual package easier than I think? No, it is not easy, because the virtual packages you are thinking of are coded as parts of the fink kernel, not as actual packages. But IMHO there is another legitimate possibility, more along the lines you were thinking of originally: I think you can just write a package for your project that checks at build time (and again at install time if there is a runtime depency) whether the macada.org compiler is installed. If it detects that this is not installed, it errors out and gives instructions on where to read about installing the macada compiler. The package DescUsage text would mention that you need to download and install the macada stuff first before trying to build or install your package and it would give links to instructions for doing so. We already have examples of packages that depend on external stuff like specific commercial fortran compilers or parts of the developer tools that are not installed by default, and which manage their dependencies on these external components by hand, not via virtual packages. Creating a virtual package would only be justified if there were several packages using it. Of course, creating a veritable ada package in Fink would be best, but it is a major task and not indispensable for what you are trying to do. -- Martin --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Dependence on a compiler
Benjamin Place wrote: [] You need a binary gnat to build gnat from source. gnu.org doesn't have any binaries that'll run on OS X. macada.org does, but can I make a package that's binary-only? That would be fine, I guess. Maybe I could make a source package that depends on the binary package. I think the line should be drawn precisely between these two possibilities (but this is open for discussion, of course): Making a binary-only package, or downloading the precompiled madaca stuff as part of your source and installing it into /usr/local/ada, I would not consider compatible with Fink's philosophy. OTOH, requiring the user to do this and having your package check whether the user did it, I would consider acceptable. For a while we had a package (gnuplot) that did download a precompiled binary (aquaterm) as part of its build process, but this was always considered an anomaly, and it was a relief when aquaterm could finally be built as a normal Fink package. -- Martin --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel