good news for Apple java development

Developer – Frequently Asked Questions

Q: When will Apple have an implementation of J2SE 1.4 available?

A: We’re now providing an early version of our 1.4 implementation, the Java 1.4 Developer Preview, to all seeded ADC members. This pre-release has only been qualified against the WWDC Jaguar seed, and has not been qualified against any other seeds/builds. The product development cycle includes plans to seed a prerelease version of the J2SE v1.4.1 to developers. Specific dates for further releases have not been determined and are in part dependent upon Sun’s release schedule.

Looks like Apple is starting to close the gap between it’s java implementation and all the others.

perl 5.6.0 rollback for fink

I couldn’t find a better way than this: I just put the Installer Disc 1 in the drive and looked for perl bits.

[/Volumes/Mac OS X Install Disc 1]# cd /Volumes/Mac\ OS\ X\ Install\ Disc\ 1/
(root@pink)-(12:03 PM / Wed Sep 18)
[/Volumes/Mac OS X Install Disc 1]# find . -name "*perl*"
./System/Library/Perl/darwin/auto/Apache/mod_perl.exp
./System/Library/Perl/darwin/auto/mod_perl
./System/Library/Perl/darwin/CORE/libperl.dylib
./System/Library/Perl/darwin/mod_perl.pm
./System/Library/Perl/darwin/mod_perl_hooks.pm
./System/Library/Perl/darwin/mod_perl_hooks.pm.PL
./System/Library/Perl/ExtUtils/Miniperl.pm
./System/Library/Perl/perl5db.pl
./usr/bin/perl
./usr/bin/perl5.6.0

Then I just copied them over. No luck compiling the 5.6.x releases, for some reason . . . .

Why doesn’t fink

  1. Store it’s libraries by version number as all other OS variants do?
  2. Check perl’s version and rebuild core packages as needed (perl 5.8 didn’t/couldn’t compile the old packages against it’s new core: what’s the benefit to pulling the code from CVS?)?

Continue reading “perl 5.6.0 rollback for fink”

fink, jaguar, and perl 5.8

perl 5.8.0 issue on Mac OS X w/ fink

Mac OS X users that have fink installed may experience the following error when executing certain perl operations (see ‘EXAMPLE’). dyld: perl Undefined symbols: _Perl_safefree _Perl_safemalloc _Perl_saferealloc _Perl_sv_2pv _perl_call_sv _perl_eval_sv _perl_get_sv

This was just the jumpstart I needed. I have not been able to get perl 5.6.x reinstalled properly, but after reading this page, I reinstalled perl 5.8.0, then reinstalled CPAN from scratch. It in turn reinstalled Storable. That cleared everything up. Fink now works again.

marklar lives?

If there was any doubt that OS X runs on other hardware, why would StartupItems need to check for the hardware it’s running on?


ARCH=$(uname -p)


SetBootCommand()
{
local BootCommand="$*"

if [ $ARCH = "powerpc" ]; then
if nvram "${BootArgsVar}"="${BootCommand}" then
shutdown -r now
else
echo "Warning: Failed to set boot-command"
echo "Warning: Continuing startup"
fi
fi
}

uname -p returns “powerpc” on my OS X machine: on a FreeBSD system, it returns “i386.”

Yes, I know Darwin runs on x86 hardware. It only seems to be in the SystemTuning bundle which seems to deal with OS X server specific applications (QuickTimeStreaming Server, for example).

looks like my samba on OS X stuff was useful

[/Users/paul]:: fink info samba
Reading package info…

Information about 1457 packages read in 181 seconds.

pkg samba version ###
pkg samba version 2.2.5-1

samba-2.2.5-1: SMB and CIFS client and server for UNIX
.
Usage Notes:
Samba settings are set in the configuration file ‘smb.conf’. A sample
file called ‘smb.conf.default’ is installed in yourfinkdirectory/etc/samba.
Also refer to the documentation installed in yourfinkdirectory/share/doc/
samba and yourfinkdirectory/share/samba/examples.
To create a startup item that starts samba after reboot just run as root
“daemonic enable samba”. To remove the samba startup item just run as root
“daemonic remove samba”.
For a set of quickstart instructions for setting up Samba under OSX
checkout /movabletype/archives/000249.html#000249
thanks to Paul Beard.
.
Web site: http://www.samba.org
.
Maintainer: Matt Stephenson

I wonder if I shouldn’t find a more permanent place for that stuff. I haven’t yet figured out why Apple’s installation doesn’t work. I suspect it has a lot to do with the fact there is an entry for SMBSERVER in /etc/hostconfig but no matching StartUpItems bundle. How did that slip through the cracks?

another Jaguar gotcha

It’s nice that Jaguar includes Samba support, but if you already had it installed (via fink, for example), Jaguar seems to stop any but the official Samba release from running.

As noted hereI added a line in /etc/hostconfig fo enable the samba daemons to start at boottime. For whatever reason, the fink managed versions don’t run and since Apple calls it SMBSERVER instead of SAMBA and it’s start value defaults to NO, samba just mysteriously stopped working.

SAMBA=-YES-
CUPS=-YES-
DNSSERVER=-NO-
IPV6=-YES-
SMBSERVER=-NO-

So I could change the SMBSERVER value to YES but I don’t see a StartupItem bundle for it. And why does the version I had installed and working no longer work?
Continue reading “another Jaguar gotcha”

CUPS in Jaguar

Apple – Public Source – CUPS

The Common UNIX Printing System ("CUPS") is a cross-platform Open Source printing solution for UNIX environments, and will be used as a portable printing layer for Darwin and Mac OS X. CUPS is based on the Internet Printing Protocol and provides both System V and BSD command-line printing services for PostScript and raster printers.

I’m a big fan of CUPS and I’m glad it made it into Jaguar. But for some reason, I haven’t found anything about how you configure it if you’ve never seen it before.

It has a nice web interface to set up it’s print services, but unless you enable it in the cupsd.conf file, you’ll never see it.
Continue reading “CUPS in Jaguar”