From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <54D398D7.9070305@deadpixi.com> References: <54D398D7.9070305@deadpixi.com> From: Ryan Gonzalez Date: Fri, 6 Feb 2015 11:17:39 -0600 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d043be04636d314050e6e9acf Subject: Re: [9fans] Standalone *nix port of sam Topicbox-Message-UUID: 42c8be40-ead9-11e9-9d60-3106f5b1d025 --f46d043be04636d314050e6e9acf Content-Type: text/plain; charset=UTF-8 Looks great! However, I would advise against the CC=cc... lines in the makefiles. They break badly when I execute the commonly-done `make CC=my_compiler`. In particular, the Makefile in sam/sam has this: CC=cc $(SYSFLAGS) Which obviously breaks when I set CC to a custom compiler. Can't SYSFLAGS be added to CFLAGS instead? On Thu, Feb 5, 2015 at 10:22 AM, Rob King wrote: > Hello everyone, > I don't know how much interest there'd be, but if anyone ever needs > to run sam standalone on *nix (that is, without plan9port), there's a > standalone version available. It's based on the original port to X11 > back in the 80s released by Lucent in 1989 or so. > > There aren't any dependencies other than Xlib/Xft, and it comes with > scalable font support, a much improved B shell command (handles multiple > instances of sam, and even better can be invoked on any machine involved > in a sam -r session, even the remote one), and a few other changes. > > So yeah, it's not sam on Plan 9, but I have to use Linux on my work > machines and can't install plan9port on them, so...there ya go. It > should work on other *nix systems too, but I don't have any to try it > out on. The code isn't pretty; I just hacked on it until I got it > working the way I wanted to, but it's been stable enough for me. > > The source is at http://www.deadpixi.com/an-updated-version-of-sam > > Please let me know if you have any questions. > > Rob > > > -- Ryan If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated." Personal reality distortion fields are immune to contradictory evidence. - srean Check out my website: http://kirbyfan64.github.io/ --f46d043be04636d314050e6e9acf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Looks great!

However, I would advise ag= ainst the CC=3Dcc... lines in the makefiles. They break badly when I execut= e the commonly-done `make CC=3Dmy_compiler`. In particular, the Makefile in= sam/sam has this:

CC=3Dcc $(SYSFLAGS)
<= br>
Which obviously breaks when I set CC to a custom compiler. Ca= n't SYSFLAGS be added to CFLAGS instead?

On Thu, Feb 5, 2015 at 10:22 AM, Rob= King <jking@deadpixi.com> wrote:
Hello everyone,
=C2=A0 =C2=A0 I don't know how much interest there'd be, but if any= one ever needs
to run sam standalone on *nix (that is, without plan9port), there's a standalone version available. It's based on the original port to X11 back in the 80s released by Lucent in 1989 or so.

=C2=A0 =C2=A0 There aren't any dependencies other than Xlib/Xft, and it= comes with
scalable font support, a much improved B shell command (handles multiple instances of sam, and even better can be invoked on any machine involved in a sam -r session, even the remote one), and a few other changes.

=C2=A0 =C2=A0 So yeah, it's not sam on Plan 9, but I have to use Linux = on my work
machines and can't install plan9port on them, so...there ya go. It
should work on other *nix systems too, but I don't have any to try it out on. The code isn't pretty; I just hacked on it until I got it
working the way I wanted to, but it's been stable enough for me.

=C2=A0 =C2=A0 The source is at http://www.deadpixi.com/an-updated-vers= ion-of-sam

=C2=A0 =C2=A0 Please let me know if you have any questions.

=C2=A0 =C2=A0 Rob





--
Ryan
If anybody = ever asks me why I prefer C++ to C, my answer will be simple: "It'= s becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nu= l-terminated."
Personal reality distortion fields are immun= e to contradictory evidence. - srean
Check out my website:=C2=A0http://kirbyfan64.githu= b.io/
--f46d043be04636d314050e6e9acf--