Question about expr
Hello all, I am used to the normal GNU-version of expr (also available on Solaris) and much prefer it over the FreeBSD version. The GNU version allows internal commands like length, substring and others which make it much easier to work with. Is there any way I can replace FreeBSD's native expr with the GNU version ? Since I believe expr does not normally ship as a shell-builtin, I don't think the shell can of much help in the matter. Actually, I think it might not be a bad idea to place a port of GNU-expr in the ports directory. This would allow a lot a scripts to be readily portable to multiple environments. Thanks for any help. Regards Manish Jain invalid.poin...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gnome gdm diable_user_list
On 26/03/2010 3:42 ?.?., n dhert wrote: FreeBSD8.0, gnome2-2.28.2_1, using gdm to login. Gdm login screen presents a list of all users on the system to choose from. I don't want the list, just a prompt for a username and password. I tried # gconf-editor this graphical config program allows to set in apps / gdm / simple-greeter the setting 'disable_user_list' to checked (default is not checked) after setting it to checked, closing the program, rebooting I still have the user list at the gdm login window. I verified with starting the gconf-editor again: the option is still checked .. (also $ gconftool-2 -R /apps/gdm/simple-greeter shows: disable_user_list = true ) Why do I still have the user list? How to fix? gconf-editor changes the settings of the current user, the gdm settings are global (system) so should be changed by root or the user gdm is running in. I don't currently have gdm on any of my systems but AFAIR there is a gdm user created for running the greeter. You should be able to change the disable_user_list setting for this user which will have the desired effect. Something along the lines of this blog post http://lionlix.wordpress.com/2009/11/07/hack-ubuntu-9-10-disabling-userlist-in-gdm-login-screen/ should work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Question about expr
In the last episode (Mar 27), Manish Jain said: I am used to the normal GNU-version of expr (also available on Solaris) and much prefer it over the FreeBSD version. The GNU version allows internal commands like length, substring and others which make it much easier to work with. Is there any way I can replace FreeBSD's native expr with the GNU version ? Since I believe expr does not normally ship as a shell-builtin, I don't think the shell can of much help in the matter. Actually, I think it might not be a bad idea to place a port of GNU-expr in the ports directory. This would allow a lot a scripts to be readily portable to multiple environments. It's part of the coreutils package. If you install the sysutils/coreutils port, you can symlink /bin/expr over to it (or make a copy). I don't know if it's 100% compatible with BSD expr, though, so you may end up breaking scripts in the base system. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Question about expr
Dan Nelson wrote: In the last episode (Mar 27), Manish Jain said: I am used to the normal GNU-version of expr (also available on Solaris) and much prefer it over the FreeBSD version. The GNU version allows internal commands like length, substring and others which make it much easier to work with. Is there any way I can replace FreeBSD's native expr with the GNU version ? Since I believe expr does not normally ship as a shell-builtin, I don't think the shell can of much help in the matter. Actually, I think it might not be a bad idea to place a port of GNU-expr in the ports directory. This would allow a lot a scripts to be readily portable to multiple environments. It's part of the coreutils package. If you install the sysutils/coreutils port, you can symlink /bin/expr over to it (or make a copy). I don't know if it's 100% compatible with BSD expr, though, so you may end up breaking scripts in the base system. Hello Dan, Thanks for the info. But I don't intend to symlink /bin/expr over to it. Instead I'll just create an alias in bash's profile and my scripts. That should let core scripts execute with /bin/expr and my scripts to use the GNU-version. Which actually leads me to second question : When you execute a script, it will automatically pick up the exports in .bash_profile. But even if you manually source bash's profile at the start of your script, only the exports get picked up and the aliases are ignored. Is there some way to fix this so that I don't have to set an alias for expr at the top each time I write a script ? Thanks Regards Manish Jain invalid.poin...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
OT: Programming perl, BerkeleyDB/MLDBM
Hi: I have been searching for the appropriate perl mailing list, but no avail. I'm trying to build a database with Berkeley DB and MLDBM for a multi dimensional hash structure, my $hdbm = tie %host, 'MLDBM', -Filename = $dbdir/host.db, -Flags = DB_CREATE|O_RDWR or die Cannot open database '$dbdir/host.db: $!\n; but I have some problems: I can read entries and create new ones, but I can't update existing entries. And I have a problem untieing cleanly: untie attempted while 1 inner references still exist at bin/smtp_reject.pl line 175. untie attempted while 1 inner references still exist at bin/smtp_reject.pl line 176. Any hints? or which mailing list should I post to? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
internet connection tester script
Why doesn't my internet-connection script work? When I plug the ethcable out, it just waits...and waits...and waits... The script: http://pastebin.com/AE9U1qdL ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: internet connection tester script
On Sat, 27 Mar 2010 13:07:14 +0100, Jozsef Vadkan jozsi.avad...@gmail.com wrote: Why doesn't my internet-connection script work? When I plug the ethcable out, it just waits...and waits...and waits... It doesn't even work correctly: Now as I definitely have Internet connection, it prints NO INTERNET CONNECTION. Allow me a comment: #!/bin/bash This is Linux. It is not portable. FreeBSD is NOT Linux. In FreeBSD, the standard scripting shell is the Bourne shell /bin/sh. Unless you don't require things that are specific to bash, use the correct shebang for shm which is #!/bin/sh If you intendedly want to use bash, specify it correctly: #!/usr/local/bin/bash The bash is an additional package for FreeBSD, it does not belong to the OS itself. It needs to be installed. Of course, there's a way to make bash available as /bin/bash statically linked, but with all thoughts to interoperability, I wouldn't rely on this. Let me bring the script into a more easily readable form and allow me to say something about it: #!/bin/sh function internet_connection_ok { echo Testing internet connectionplease wait... if ping -W 1 -c 4 bix.hu | grep -q 4 received; then if ping -W 1 -c 4 www.yahoo.com | grep -q 4 received; then echo NET is OK else echo NO INTERNET CONNECTION exit 1 fi else echo NO INTERNET CONNECTION exit 1 fi } internet_connection_ok Basically, you're relying on a 100 % correct reception of pings from two specified host to see if Internet is up and running. In case of package loss, even with running Internet (e. g. 4 sent, 3 received), the script would say that there's no Internet connection, which is false. Additionally, you're giving only 1 ms for reply, which may not be enough for a slow (but stable) connection. Finally, you're relying on DNS to get the IPs to ping for bix.hu and www.yahoo.com. I'm not sure if this resolve time is important here, too. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: internet connection tester script
I prefer to use `host' command ping take time to run, especially when it do not respond... here's my script r...@omega ~ : cat /usr/local/bin/check_connectivity 13:43 #!/bin/sh # checks local and internet connectivity # faust - 2010/02/17 host google.com /dev/null if [ $? -eq 0 ]; then net=1 echo Internet connection is UP else net=0 echo Internet connection is DOWN fi host alpha.faust-network /dev/null if [ $? -eq 0 ]; then local=1 echo Local network is UP else local=0 echo local network is DOWN fi case `expr $local '*' 2 + $net` in 0) exit 2 ;; # big nothing 1) exit 42 ;; # just internet (uhu?) 2) exit 1 ;; # just local 3) exit 0 ;; # all right! *) exit 43 ;; # divided by zero? esac Samuel Martín Moro {EPITECH.} tek4 CamTrace S.A.S On Sat, Mar 27, 2010 at 1:22 PM, Polytropon free...@edvax.de wrote: On Sat, 27 Mar 2010 13:07:14 +0100, Jozsef Vadkan jozsi.avad...@gmail.com wrote: Why doesn't my internet-connection script work? When I plug the ethcable out, it just waits...and waits...and waits... It doesn't even work correctly: Now as I definitely have Internet connection, it prints NO INTERNET CONNECTION. Allow me a comment: #!/bin/bash This is Linux. It is not portable. FreeBSD is NOT Linux. In FreeBSD, the standard scripting shell is the Bourne shell /bin/sh. Unless you don't require things that are specific to bash, use the correct shebang for shm which is #!/bin/sh If you intendedly want to use bash, specify it correctly: #!/usr/local/bin/bash The bash is an additional package for FreeBSD, it does not belong to the OS itself. It needs to be installed. Of course, there's a way to make bash available as /bin/bash statically linked, but with all thoughts to interoperability, I wouldn't rely on this. Let me bring the script into a more easily readable form and allow me to say something about it: #!/bin/sh function internet_connection_ok { echo Testing internet connectionplease wait... if ping -W 1 -c 4 bix.hu | grep -q 4 received; then if ping -W 1 -c 4 www.yahoo.com | grep -q 4 received; then echo NET is OK else echo NO INTERNET CONNECTION exit 1 fi else echo NO INTERNET CONNECTION exit 1 fi } internet_connection_ok Basically, you're relying on a 100 % correct reception of pings from two specified host to see if Internet is up and running. In case of package loss, even with running Internet (e. g. 4 sent, 3 received), the script would say that there's no Internet connection, which is false. Additionally, you're giving only 1 ms for reply, which may not be enough for a slow (but stable) connection. Finally, you're relying on DNS to get the IPs to ping for bix.hu and www.yahoo.com. I'm not sure if this resolve time is important here, too. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OT: Programming perl, BerkeleyDB/MLDBM
Erik == Erik Norgaard norga...@locolomo.org writes: Erik I have been searching for the appropriate perl mailing list, Perl questions are best asked at perlmonks.org or Stack Overflow. Or you can join the beginners list at http://lists.perl.org/ for ongoing discussion and help by email if you prefer. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Enough Is Enough
Ever since I installed jpeg-8 I have had nothing but problems. I ran portupgrade -a hoping to take care of all those problems, well no such luck. Let's start with the first error I caught: libqt /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_resync_to_rest...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_read_scanli...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_finish_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_finish_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_createcompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_set_defau...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_read_hea...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_createdecompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_std_er...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_destroy_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_destroy_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_write_scanli...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_set_qual...@libjpeg_7.0' *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100324-4351-6tihzj-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=qt-copy-3.3.8_10 UPGRADE_PORT_VER=3.3.8_10 make ** Fix the problem and try again. The next error was for OOo (for which I need to follow the directions and email the maintainer). After portupgrade -a reaches the end (apparently, as it exits): --- Skipping 'editors/openoffice.org-3' (openoffice.org-3.1.1) because it has already failed ** Listing the failed packages (-:ignored / *:skipped / !:failed) - textproc/docbook-xml-440 (docbook-xml-4.4_1) - textproc/docbook-sk (docbook-sk-4.1.2_4) ! x11-toolkits/qt33 (qt-copy-3.3.8_10) (linker error) * audio/arts (arts-1.5.10_2,1) * devel/sdl12 (sdl-1.2.14,2) * graphics/sdl_image (sdl_image-1.2.10) - textproc/docbook-xml-430 (docbook-xml-4.3) * multimedia/ffmpeg (ffmpeg-0.5_2,1) * multimedia/vlc (vlc-1.0.5,3) * graphics/gegl (gegl-0.0.22_6) * graphics/gimp-app (gimp-app-2.6.8,1) * graphics/py-gimp (py26-gimp-app-2.6.8) * print/gimp-gutenprint (gimp-gutenprint-5.2.4) * print/scribus (scribus-1.3.3.13_1) * security/pinentry (pinentry-0.7.6_2) * sysutils/k3b (k3b-1.0.5_2) * multimedia/libxine (libxine-1.1.16.3_2) * multimedia/phonon-xine (phonon-xine-4.3.1_3) * games/gcompris (gcompris-8.4.12_3) ! editors/openoffice.org-3 (en-openoffice.org-US-3.1.1) (configure error) * editors/openoffice.org-3 (openoffice.org-3.1.1) A good deal of these (including Scribus and GIMP and a few others I believe) are from errors with my upgrading from jpeg-7 to jpeg-8. I was ready for many, many days of compiling (mainly because of OOo). Instead I'm lucky to go 36 hours total. Why has upgrading my jpeg library completely BROKEN so many apps? I cannot even start scribus now. /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by scribus Enough is enough. I've been trying to fix this problem on my own and I cannot. It is not from a lack of trying or looking to solve this issue. -- Yours In Christ, PIT Emails are not formal business letters, whatever businesses may want. Original content copyright under the OWL http://owl.apotheon.org Please do not CC me. If I'm posting to a list it is because I am subscribed. signature.asc Description: OpenPGP digital signature
Re: Enough Is Enough
On Saturday 27 March 2010 18:20:28 Programmer In Training wrote: Ever since I installed jpeg-8 I have had nothing but problems. I ran portupgrade -a hoping to take care of all those problems, well no such luck. Let's start with the first error I caught: libqt /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_resync_to_rest...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_read_scanli...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_finish_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_finish_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_createcompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_set_defau...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_read_hea...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_createdecompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_std_er...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_destroy_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_destroy_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_write_scanli...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_set_qual...@libjpeg_7.0' *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100324-4351-6tihzj-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=qt-copy-3.3.8_10 UPGRADE_PORT_VER=3.3.8_10 make ** Fix the problem and try again. The next error was for OOo (for which I need to follow the directions and email the maintainer). After portupgrade -a reaches the end (apparently, as it exits): --- Skipping 'editors/openoffice.org-3' (openoffice.org-3.1.1) because it has already failed ** Listing the failed packages (-:ignored / *:skipped / !:failed) - textproc/docbook-xml-440 (docbook-xml-4.4_1) - textproc/docbook-sk (docbook-sk-4.1.2_4) ! x11-toolkits/qt33 (qt-copy-3.3.8_10) (linker error) * audio/arts (arts-1.5.10_2,1) * devel/sdl12 (sdl-1.2.14,2) * graphics/sdl_image (sdl_image-1.2.10) - textproc/docbook-xml-430 (docbook-xml-4.3) * multimedia/ffmpeg (ffmpeg-0.5_2,1) * multimedia/vlc (vlc-1.0.5,3) * graphics/gegl (gegl-0.0.22_6) * graphics/gimp-app (gimp-app-2.6.8,1) * graphics/py-gimp (py26-gimp-app-2.6.8) * print/gimp-gutenprint (gimp-gutenprint-5.2.4) * print/scribus (scribus-1.3.3.13_1) * security/pinentry (pinentry-0.7.6_2) * sysutils/k3b (k3b-1.0.5_2) * multimedia/libxine (libxine-1.1.16.3_2) * multimedia/phonon-xine (phonon-xine-4.3.1_3) * games/gcompris (gcompris-8.4.12_3) ! editors/openoffice.org-3 (en-openoffice.org-US-3.1.1) (configure error) * editors/openoffice.org-3 (openoffice.org-3.1.1) A good deal of these (including Scribus and GIMP and a few others I believe) are from errors with my upgrading from jpeg-7 to jpeg-8. I was ready for many, many days of compiling (mainly because of OOo). Instead I'm lucky to go 36 hours total. Why has upgrading my jpeg library completely BROKEN so many apps? I cannot even start scribus now. /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by scribus Enough is enough. I've been trying to fix this problem on my own and I cannot. It is not from a lack of trying or looking to solve this issue. In /usr/ports/UPDATING look for the 20100205 entry for users of Qt 3 and KDE 3. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Enough Is Enough
On 03/27/10 13:06, Tijl Coosemans wrote: snip In /usr/ports/UPDATING look for the 20100205 entry for users of Qt 3 and KDE 3. Pointless in as far as that does not address the underlying problem of rebuilding EVERYTHING that needs to link against the jpeg library. GIMP and gegl failed because a dependency for it is linked against jpeg-7 and not jpeg-8. If I cannot basically reinstall the entire system via portupgrade -a I'm reduced to fixing the problem ad-hoc and that is unacceptable because eventually I'll have to deal with programs that link to whatever just got rebuilt. In essence, this is a problem that is not easily solved just by reading /usr/ports/UPDATING for Qt because it involves more than Qt (by the way, thanks for the hat tip on Qt, but it's not high on my priority list for being fixed right now, GIMP, Scribus and possibly a few other apps that I'm currently unaware of there being an issue with ARE). When jpeg-x (not a typo) is built, the port needs to be automatically looking forward to see what all depends on it (and if anything depends on that) and possibly asking the user if they want to upgrade all those programs to ensure they link to the proper version of jpeg at all times. Or they could all statically compile in jpeg support (as I assume FF does because I can still see jpegs in the file upload preview pane) so this is never an issue at all. I am currently able to manipulate any jpeg at all (and now unable to use an increasing number of apps) which is crippling my ability to edit images for any use. I'm really loving FreeBSD, but I can no longer use The GIMP to open JPEG's (and this is really the biggest issue I'm having as I need to be able to edit jpeg's so I can continue on with designing the site on my box, otherwise I will have to move back over to another computer (and right now the only one available is running WinXP, something I'd rather avoid using if I can), I cannot even launch Scribus (and a few other apps whose names escape me at the moment). Other apps open but have loads of errors regarding jpeg. I'm unable (as of about a month ago) to install Filezilla because of this (it stopped launching when I upgraded jpeg, so I uninstalled and reinstalled thinking that would work). Every time I think I've tracked down the one other library or whatever that something links against and needs jpeg, something new crops up and stops me from building. Again. Anyway, time I got off the comp. I'll be back later this evening to finish this discussion. -- Yours In Christ, PIT Emails are not formal business letters, whatever businesses may want. Original content copyright under the OWL http://owl.apotheon.org Please do not CC me. If I'm posting to a list it is because I am subscribed. signature.asc Description: OpenPGP digital signature
Re: Enough Is Enough
On 27 March 2010 13:20, Programmer In Training p...@joseph-a-nagy-jr.us wrote: Ever since I installed jpeg-8 I have had nothing but problems. I ran portupgrade -a hoping to take care of all those problems, well no such luck. portupgrade -fa -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Enough Is Enough
Programmer In Training wrote: [snip] When jpeg-x (not a typo) is built, the port needs to be automatically looking forward to see what all depends on it (and if anything depends on that) and possibly asking the user if they want to upgrade all those programs to ensure they link to the proper version of jpeg at all times. Or they could all statically compile in jpeg support (as I assume FF does because I can still see jpegs in the file upload preview pane) so this is never an issue at all. I am currently able to manipulate any jpeg at all (and now unable to use an increasing number of apps) which is crippling my ability to edit images for any use. So man portupgrade and see what the -r and -R switches do. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Enough Is Enough
On Sat, Mar 27, 2010 at 01:28:26PM -0500, Programmer In Training wrote: On 03/27/10 13:06, Tijl Coosemans wrote: snip In /usr/ports/UPDATING look for the 20100205 entry for users of Qt 3 and KDE 3. Pointless in as far as that does not address the underlying problem of rebuilding EVERYTHING that needs to link against the jpeg library. GIMP and gegl failed because a dependency for it is linked against jpeg-7 and not jpeg-8. If I cannot basically reinstall the entire system via portupgrade -a I'm reduced to fixing the problem ad-hoc and that is unacceptable because eventually I'll have to deal with programs that link to whatever just got rebuilt. In essence, this is a problem that is not easily solved just by reading /usr/ports/UPDATING for Qt because it involves more than Qt (by the way, thanks for the hat tip on Qt, but it's not high on my priority list for being fixed right now, GIMP, Scribus and possibly a few other apps that I'm currently unaware of there being an issue with ARE). So don't use portupgrade if doesn't do what is needed. The simple solution is to *first* deinstall *all* ports (or at least all ports that depend, directly or indirectly, on jpeg in this case) and then reinstall them all. This might require a bit more manual intervention than using portupgrade would have, but on the other hand it is almost guaranteed to work correctly every time. The problems you are running into is essentially due to trying to build updated binaries while still having old binaries installed (and having this trigger bugs in the build mechanism of various ports.) If you first remove all the old binaries and then build new ones you avoid many potential problems. -- Insert your favourite quote here. Erik Trulsson ertr1...@student.uu.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Enough Is Enough
On 27.03.2010 20:10, Erik Trulsson wrote: On Sat, Mar 27, 2010 at 01:28:26PM -0500, Programmer In Training wrote: On 03/27/10 13:06, Tijl Coosemans wrote: snip In /usr/ports/UPDATING look for the 20100205 entry for users of Qt 3 and KDE 3. Pointless in as far as that does not address the underlying problem of rebuilding EVERYTHING that needs to link against the jpeg library. GIMP and gegl failed because a dependency for it is linked against jpeg-7 and not jpeg-8. If I cannot basically reinstall the entire system via portupgrade -a I'm reduced to fixing the problem ad-hoc and that is unacceptable because eventually I'll have to deal with programs that link to whatever just got rebuilt. In essence, this is a problem that is not easily solved just by reading /usr/ports/UPDATING for Qt because it involves more than Qt (by the way, thanks for the hat tip on Qt, but it's not high on my priority list for being fixed right now, GIMP, Scribus and possibly a few other apps that I'm currently unaware of there being an issue with ARE). So don't use portupgrade if doesn't do what is needed. The simple solution is to *first* deinstall *all* ports (or at least all ports that depend, directly or indirectly, on jpeg in this case) and then reinstall them all. This might require a bit more manual intervention than using portupgrade would have, but on the other hand it is almost guaranteed to work correctly every time. The problems you are running into is essentially due to trying to build updated binaries while still having old binaries installed (and having this trigger bugs in the build mechanism of various ports.) If you first remove all the old binaries and then build new ones you avoid many potential problems. portupgrade -afr jpeg-8 there, done. //Svein -- +---+--- /\ |Svein Skogen | sv...@d80.iso100.no \ / |Solberg Østli 9| PGP Key: 0xE5E76831 X|2020 Skedsmokorset | sv...@jernhuset.no / \ |Norway | PGP Key: 0xCE96CE13 | | sv...@stillbilde.net ascii | | PGP Key: 0x58CD33B6 ribbon |System Admin | svein-listm...@stillbilde.net Campaign|stillbilde.net | PGP Key: 0x22D494A4 +---+--- |msn messenger: | Mobile Phone: +47 907 03 575 |sv...@jernhuset.no | RIPE handle:SS16503-RIPE +---+--- If you really are in a hurry, mail me at svein-mob...@stillbilde.net This mailbox goes directly to my cellphone and is checked even when I'm not in front of my computer. Picture Gallery: https://gallery.stillbilde.net/v/svein/ signature.asc Description: OpenPGP digital signature
Re: internet connection tester script
Jozsef Vadkan wrote: Why doesn't my internet-connection script work? When I plug the ethcable out, it just waits...and waits...and waits... The script: http://pastebin.com/AE9U1qdL As someone has noted, you're waiting on ping to timeout a bunch of times. And really, I'm not sure why this script is needed. In ~/.cshrc: alias upping -t3 yahoo.com ... or something (your .bashrc equivalent, or .shrc, etc.) should do the trick, with much less effort on all fronts. HTH, Kevin Kinsey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Question about expr
Manish Jain invalid.poin...@gmail.com wrote: When you execute a script ... the aliases are ignored. Is there some way to fix this ... Search for expand_aliases in the bash manpage. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: internet connection tester script
FWIW, here's what I use. Requires net/fping. #!/bin/sh target=ip.address.of.next.hop.out echo - Started at `date` is_dead=0 while true; do fping -q $target fping_rc=$? if [ $is_dead -eq 0 -a $fping_rc -gt 0 ]; then echo ! Failure at `date` is_dead=1 fi if [ $is_dead -eq 1 -a $fping_rc -eq 0 ]; then echo Alive at `date` is_dead=0 fi sleep 30 done -- James. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Freebsd, postfix and push email
Is there a way to get my freebsd/postfix setup to send push notifications to an iPhone (I assume other smart phones work the same way). I've searched the web and I can't find any information about how to make this work. I know it can be done with Exchange and ActiveSync, but I don't want to run any kind of exchange server. Thanks for any help, or even a point in the right direction. Ron ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Freebsd, postfix and push email
On 3/27/10, Ron (Lists) rg.li...@rzweb.com wrote: Is there a way to get my freebsd/postfix setup to send push notifications to an iPhone (I assume other smart phones work the same way). I've searched the web and I can't find any information about how to make this work. I know it can be done with Exchange and ActiveSync, but I don't want to run any kind of exchange server. Thanks for any help, or even a point in the right direction. Ron Wouldn't push email be a function of your POP3 or IMAP server? FreeBSD and Postfix are neither of those. Check your incoming mail services, such as what serves your POP3 or IMAP. Good luck. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org