Slashdot Mirror


Porting Unix Command-Line Tools to Mac OS X

An anonymous reader writes "Over at Apple has posted a technote on porting Unix programs to Mac OS X. Nothing earth-shattering, but nice to see it all collected."

17 of 92 comments (clear)

  1. So by Znonymous+Coward · · Score: 3, Insightful

    Why don't they just do it their selves and add more value to their "distro"? They could easly take all the popular GNU tools and port them to Darwin. Then we wouldn't need to use fink.

    --

    Karma: The shiznight, mostly because I am the Drizzle.

    1. Re:So by pauljlucas · · Score: 3, Insightful
      Why don't they just do it their selves and add more value to their "distro"?
      Because their target market isn't geeks. There are far more users who couldn't care less about GNU tools and never want to see a command-line.
      --
      If you reply, do so only to what I explicitly wrote. If I didn't write it, don't assume or infer it.
    2. Re:So by Knife_Edge · · Score: 2, Insightful

      I suppose it is true that most Apple users could care less about the command line. I am not one of them - If OS X did not support the command line as well as it did, I would be using Linux as my desktop. As it is, I have been annoyed on several occassions that the BSD command line utilities Apple provides lacked some feature that the GNU utilities have (I recall just replacing Apple's 'ls' with the GNU equivalent outright). At the same time, I don't want to mess with Fink, it introduces complexity. For example, having two sets of binaries in different places doesn't mean you can run shell scripts without changing them if they were written expecting one set to be somewhere it isn't. I'd much rather that Apple just installed the GNU stuff by default. But again, maybe that doesn't cater to their target market.

      I see myself eventually going back to Linux anyway since it offers users much more control over their system than even Apple is willing to allow. The problem of the situation is that Apple does have to cater to a target market, whereas in Linux you can just assemble your system to do what you want.

    3. Re:So by drauh · · Score: 3, Insightful

      Because they'd be replicating effort by the Fink people, and that without adding value. When it is possible to add value, they have ported "standard" Unix software, the big example being XFree86 which they hacked to take advantage of the Quartz rendering engine.

      --
      This is a tautology.
    4. Re:So by Znonymous+Coward · · Score: 4, Insightful

      Then there's no point in paying Apple employees to work on porting the stuff.

      Yes there is, it's called value added software. It wouldn't cost very much to do it. Then maybe more geeks would buy macs.

      And don't tell me that geeks don't like macs. If they didn't, there wouldn't be a apple.slashdot.org

      nuff said

      --

      Karma: The shiznight, mostly because I am the Drizzle.

    5. Re:So by Lars+T. · · Score: 3, Insightful

      Only geeks buy servers?

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    6. Re:So by pauljlucas · · Score: 3, Insightful
      If Fink keeps building up steam ..., maybe that will convince Apple that it's worthwhile to support a few staffers to start porting UNIX cl tools to OS X.
      Why pay for the cow when you can get the milk for free? I'm sure those volunteering for Fink will continue to do so without being paid by Apple. A benefit is that Apple doesn't have to support anything done by Fink, including technical support calls.
      --
      If you reply, do so only to what I explicitly wrote. If I didn't write it, don't assume or infer it.
    7. Re:So by anothy · · Score: 5, Insightful
      first:
      I have been annoyed on several occassions that the BSD command line utilities Apple provides lacked some feature that the GNU utilities have (I recall just replacing Apple's 'ls' with the GNU equivalent outright).
      then, in the very next sentance:
      At the same time, I don't want to mess with Fink, it introduces complexity.
      and, just to close it up:
      I'd much rather that Apple just installed the GNU stuff by default.
      man! i've got mod points, and i almost moderated this funny, but i wanted to make sure people got it. you don't want extra complexity, but you prefer the GNU tools to the BSD tools? y'er kiddin', right? how on earth can anyone make sense of that? the GNU tools are, on average, dramatically more complicated than the BSD tools. i used to build Linux boxes that dumped the GNU tools in favor of the BSD tools. then i got annoyed with the GNU C library and tried swapping that out. halfway through the project of rebuilding everything so that it didn't have the stupid glibc dependancies, i got fed up and went back to a BSD system - because the tools were so much simpler. Apple made a great decision in using the BSD tools rather than the GNU tools (license questions aside).

      oh, and as a parting kick:
      ...in Linux you can just assemble your system to do what you want.
      right. yup. unless you want it to be a good desktop system.
      --

      i speak for myself and those who like what i say.
    8. Re:So by phillyclaude · · Score: 2, Insightful

      besides, its not like its that hard to install fink, considering the level of user that is going to miss the additional utilities. Sheesh, if Apple had included everything out of the box, people would be complaining that apple forced one set of tools on their users
      -Claude

      --
      A computer without a Microsoft operating system is like a dog without bricks tied to its head
    9. Re:So by WatertonMan · · Score: 4, Insightful
      Those who are able to recognize the difference between GNU versions of the BSD utilities are savvy enough to install the GNU utilities or Fink. If you don't like Fink check out Darwinports which is a different approach to the issue. It sounds more like what you want. A lot of us prefer having all the custom source code in /sw rather than replacing the standard BSD stuff from Apple so that we have access to both.

      DarwinPorts

  2. what's the point? by photon_chac · · Score: 0, Insightful

    In porting unix command-line or non-command-line tools to OS X?
    attract unix users to that sweet os? or make powerful also sweet applications out of these unix tools? do you really think they , mac users , will accustom them to m4 , groff , epn etc or anything built upon them?
    I think UNIX and OS?(number,X,whatever) are two fundamentally different ways of doing OSs and so it is with their user group.

    --
    KOS-MOS
    1. Re:what's the point? by Anonymous Coward · · Score: 3, Insightful

      You seem to be under the mistaken impression that a UNIX OS cannot have useful well written applications or it's not a unix. That kind of false restriction on development is one of the things that's kept unix boxes in the desktop backwaters for decades. OSX has both worlds, and does it quite simply because those worlds are not exclusive. Open up OSX and run a terminal window or console login. hell, run 5 of the things and you're in as geeky a land as any Linux system. On the other hand, run Safari, Office v.X, Dreamweaver, Photoshop and Pro Tools if you like - and there's your polished slick app land.

      There is nothing whatsoever preventing you from doing both if you need, or even mixing further. My OSX runs OSX only apps (in Aqua), fink apps including GNU commandline utils, KDE, Gnome and macos Classic apps, all at the one time. It's the most flexible mix I've ever used in 20 years of my computing experience.

  3. Re:Makes Mac OS easier to use! by feldsteins · · Score: 4, Insightful

    You seem to think this story represents some kind of "move" that it does not. I'm guessing you're not all that familiar with OS X. Fro example, there is no "hiding" of the command line. There's an application called "Terminal" that, when launched, gives you a standard tcsh command line. It no more "hidden" than their "add a printer" utility.

    I recommend you try OS X sometime. You might like it. At the very least you'll understand a little more than it's a bona fide Unix operating system and hasn't been "dumbed down" as you seem to imply.

    --
    You like your Macintosh better than me, don't you Dave? Dave? Can you hear me Dave?
  4. The Point. by jellomizer · · Score: 4, Insightful

    The reason I use OS X is basicly because I have access to the UNIX command-line tools and I can usually easily port them to OS X. OS X has a nice set of application that are comericalially available Like Photoshop (I know the gimp is close but Photoshop works better for me) so I can do my Unix stuff at the command line and have access to some good comerical software. It is like having the best of both worlds. That and sometimes having the ability to pipe information is really good.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  5. Err, it's a BSD system, not a GNU system. by Anonymous Coward · · Score: 4, Insightful

    It used BSD tools, not GNU tools.

    Deal with it.

  6. Re:Makes Mac OS easier to use! by Anonymous Coward · · Score: 2, Insightful

    It hides the command line about as much as a KDE system hides the command line

    Open the terminal app and there's a BSD command line/Open Konsole and there's a Linux command line

    Login to a console instead of Aqua and there's a command line/Login to a console instead of XFree86 and there's a command line

  7. Porting issues by The+Herbaliser · · Score: 2, Insightful

    Have you noticed that Apple tends to only include highly-polished software? There's a reason they built their own KHTML based browser, rather than just porting Konqueror. They have really high standards for the usability of their software, so any non-command-line tool would need to be entirely redesigned to fit their standards, which introduces a lot of work.

    Even for command-line programs, once Apple releases something themselves, they implicitly take responsibility for it. If they start doing half-assed ports, then their whole "it just worked" thing goes down the tubes because if their stuff doesn't work, people will hold it against them. They'd probably have to carefully QA every port they did in extensive detail, and that would be expensive. Then there's technical support, maintaining the ports, etc.

    There's lots of stuff I'd like to see built into darwin, but I can understand why it isn't really their priority. As has been pointed out, most people who need additional command-line tools can get them themselves and I think apple would rather put their energy into making the tools they do have easier to use by building helpful GUI front-ends for those of us who either don't know how to use unix well, or just find it a lot less enjoyable.