Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC
Bug 58838 - Changes to vim.eclass to make vim build on macos
Summary: Changes to vim.eclass to make vim build on macos
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC All
: High enhancement (vote)
Assignee: Vim Maintainers
Depends on:
Reported: 2004-07-29 15:56 UTC by Vincent Strubel
Modified: 2004-07-31 15:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Diff on vim.eclass to make it work (vim.eclass.diff,2.66 KB, patch)
2004-07-29 15:56 UTC, Vincent Strubel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Strubel 2004-07-29 15:56:08 UTC
I managed to emerge and run app-editors/vim-6.3 on my OSX Panther system. Given that libtermcap-compat seems to have issues on macos (, and that vim depends on either ncurses or libtermcap-compat, I guess the only way to build it is to have USE="ncurses" set. 
I don't know what the policy is on per-architecture dependencies Vs USE settings, but a solution could be for example to die() in src_unpack() in case of macos and !ncurses with an informational message (and obviously to make the dependency on libtermcap-compat conditional on both !ncurses and !macos).

Anyway, some syntax changes were needed in vim.eclass to get the ebuild to work on macos, ie :
 - remove hardcoded path "/bin/tar"
 - change all "sed -i <> $file" commands to "sed -e <> $file > $file.tmp" to stop Apple's sed whining...

After these changes, app-editors/vim-core-6.3-r1 and app-editors/vim-6.3 built smoothly, and now run without a glitch on my system.

Diff on vim.eclass follows shortly.

Emerge info :

Portage 2.0.51_pre13 (default-macos-10.3, gcc-3.3, unavailable, 7.4.0 Power Macintosh powerpc)
System uname: 7.4.0 Power Macintosh powerpc
cat: /etc/gentoo-release: No such file or directory
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.6.3,sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="macos ~macos"
CFLAGS="-Os -pipe -faltivec -mcpu=7450 -mtune=7450"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -pipe -faltivec -mcpu=7450 -mtune=7450"
FEATURES="ccache cvs noauto"
USE="macos X berkdb ldap mysql ncurses perl python ruby"
Comment 1 Vincent Strubel 2004-07-29 15:56:54 UTC
Created attachment 36438 [details, diff]
Diff on vim.eclass to make it work
Comment 2 Ciaran McCreesh 2004-07-29 19:42:04 UTC
I'm not going to apply any patch which involves removing sed -i. You people need to get yourselves a working sed-4 in the path before the default supplied one.

The tar fix is fine, I'll include that one once the sed stuff gets sorted out.

Incidentally, gvim supports a carbon GUI. Once osx support is in a less broken state I'll add this to the ebuilds and eclass if someone gives me a shell to play with :)
Comment 3 Ciaran McCreesh 2004-07-31 15:16:59 UTC
I've added in the tar fix. I'm not going to include the sed changes, you can use the gsed hack for that. Closing as WONTFIX.