patch 8.2.0667: cannot install Haiku version from source

Problem:    Cannot install Haiku version from source.
Solution:   Update Makefile and rdef file. (Emir Sari, closes #6013)
This commit is contained in:
Bram Moolenaar
2020-04-30 19:54:38 +02:00
parent 88e6cc2539
commit 2c5c1638a9
6 changed files with 32 additions and 21 deletions

View File

@ -610,7 +610,7 @@ SRC_AMI = \
SRC_HAIKU = \ SRC_HAIKU = \
README_haiku.txt \ README_haiku.txt \
src/os_haiku.h \ src/os_haiku.h \
src/os_haiku.rdef \ src/os_haiku.rdef.in \
src/gui_haiku.cc \ src/gui_haiku.cc \
src/gui_haiku.h \ src/gui_haiku.h \
src/proto/gui_haiku.pro \ src/proto/gui_haiku.pro \

View File

@ -10,4 +10,4 @@ software repository HaikuPorts. To get Vim:
- Open a Terminal and type "pkgman install vim", then follow instructions. - Open a Terminal and type "pkgman install vim", then follow instructions.
If you prefer to install Vim from source, follow the instructions on If you prefer to install Vim from source, follow the instructions on
"runtime/doc/os_haiku.txt", "Compiling Haiku" section. "runtime/doc/os_haiku.txt", "Compiling Vim" section.

View File

@ -1,4 +1,4 @@
*os_haiku.txt* For Vim version 8.2. Last change: 2020 Mar 19 *os_haiku.txt* For Vim version 8.2. Last change: 2020 Apr 30
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -46,12 +46,11 @@ features you can enable/disable.
Haiku uses "ncurses6" as its terminal library, therefore you need to have Haiku uses "ncurses6" as its terminal library, therefore you need to have
"ncurses6_devel" package installed from HaikuDepot in order to configure "ncurses6_devel" package installed from HaikuDepot in order to configure
the Haiku build. Just append "--with-tlib=ncurses6" to ./configure command the Haiku build. Just append "--with-tlib=ncurses6" to ./configure command
below for the initial build.
Now you should use "make" to compile Vim, then "make install" to install it. Now you should use "make" to compile Vim, then "make install" to install it.
For seamless integration into Haiku, the GUI-less vim binary should be For seamless integration into Haiku, the GUI-less vim binary should be
additionally installed over the GUI version. Typical build commands are: > additionally installed over the GUI version. Typical build commands are:
./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \ ./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \
--datarootdir=`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY` \ --datarootdir=`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY` \
@ -71,25 +70,28 @@ additionally installed over the GUI version. Typical build commands are: >
Normally Vim starts with the GUI if you start it as gvim or vim -g. The vim Normally Vim starts with the GUI if you start it as gvim or vim -g. The vim
version with GUI tries to determine if it was started from the Tracker instead version with GUI tries to determine if it was started from the Tracker instead
of the Terminal, and if so, uses the GUI anyway. However, the current detection of the Terminal, and if so, uses the GUI anyway. However, the current detection
scheme is fooled if you use the command "vim - </dev/null". scheme is fooled if you use the command "vim - </dev/null".
Stuff that does not work yet: Stuff that does not work yet:
- Mouse up events are not generated when outside the window. This may be a bug in - Mouse up events are not generated when outside the window. You can notice
Haiku. You can notice this when selecting text and moving the cursor outside this when selecting text and moving the cursor outside the window, then
the window, then letting go of the mouse button. Another way is when you letting go of the mouse button. Another way is when you drag the scrollbar
drag the scrollbar and do the same thing. Because Vim still thinks you are and do the same thing. Because Vim still thinks you are still playing with
still playing with the scrollbar it won't change it itself. I provided a the scrollbar it won't change it itself. There is a workaround which kicks
workaround which kicks in when the window is activated or deactivated (so it in when the window is activated or deactivated (so it works best with focus-
works best with focus- follows-mouse turned on). follows-mouse turned on).
- The cursor does not flash. - The cursor does not flash.
- Built-in terminal is not available in GUI, and does not work reliably on
console version as well; e.g. it is not possible to exit using the 'exit'
command. If you need to use it, enable at your own risk.
4. The $VIM directory *haiku-vimdir* 4. The $VIM directory *haiku-vimdir*
$VIM is the symbolic name for the place where Vim's support files are stored. $VIM is the symbolic name for the place where Vim's support files are stored.
The default value for $VIM is set at compile time and can be determined with > The default value for $VIM is set at compile time and can be determined with:
:version :version
@ -117,7 +119,7 @@ The normal value is /boot/home/config/settings.
You can drop files and directories on either the Vim icon (starts a new Vim You can drop files and directories on either the Vim icon (starts a new Vim
session, unless you use the File Types application to set Vim to be "Single session, unless you use the File Types application to set Vim to be "Single
Launch") or on the Vim window (starts editing the files). Dropping a folder Launch") or on the Vim window (starts editing the files). Dropping a folder
sets Vim's current working directory. |:cd| |:pwd| If you drop files or sets Vim's current working directory |:cd| |:pwd|. If you drop files or
folders with either SHIFT key pressed, Vim changes directory to the folder folders with either SHIFT key pressed, Vim changes directory to the folder
that contains the first item dropped. When starting Vim, there is no need to that contains the first item dropped. When starting Vim, there is no need to
press shift: Vim behaves as if you do. press shift: Vim behaves as if you do.
@ -164,7 +166,7 @@ isn't a dotted-y, then for this font the encoding does not work.
If the font you specify is unavailable, you get the system fixed font. If the font you specify is unavailable, you get the system fixed font.
GUI Font Selection Dialog is available at giving the > GUI Font Selection Dialog is available at giving the:
:set guifont=* :set guifont=*

View File

@ -2885,7 +2885,7 @@ uninstall_runtime:
clean celan: testclean clean celan: testclean
-rm -f *.o core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o -rm -f *.o core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
-rm -rf objects -rm -rf objects
-rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h auto/os_haiku.rdef
-rm -f conftest* *~ auto/link.sed -rm -f conftest* *~ auto/link.sed
-rm -f testdir/opt_test.vim -rm -f testdir/opt_test.vim
-rm -f $(UNITTEST_TARGETS) -rm -f $(UNITTEST_TARGETS)
@ -3042,6 +3042,14 @@ auto/if_perl.c: if_perl.xs
auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
auto/os_haiku.rdef: os_haiku.rdef.in
@echo creating $@
@echo '/* This file is automatically created by Makefile */' >> $@
@echo '/* DO NOT EDIT! Change Makefile only. */' >> $@
@cat $(srcdir)/os_haiku.rdef.in >> auto/os_haiku.rdef
sed -i "s|@MAJOR@|$(VIMMAJOR)|" auto/os_haiku.rdef
sed -i "s|@MINOR@|$(VIMMINOR)|" auto/os_haiku.rdef
auto/pathdef.c: Makefile auto/config.mk auto/pathdef.c: Makefile auto/config.mk
-@echo creating $@ -@echo creating $@
-@echo '/* pathdef.c */' > $@ -@echo '/* pathdef.c */' > $@
@ -3384,7 +3392,7 @@ objects/os_beos.o: os_beos.c
objects/os_qnx.o: os_qnx.c objects/os_qnx.o: os_qnx.c
$(CCC) -o $@ os_qnx.c $(CCC) -o $@ os_qnx.c
objects/os_haiku.rsrc: os_haiku.rdef objects/os_haiku.rsrc: auto/os_haiku.rdef
cat $< | $(CCC) -E - | grep -v '^#' | rc -o "$@" - cat $< | $(CCC) -E - | grep -v '^#' | rc -o "$@" -
objects/os_macosx.o: os_macosx.m objects/os_macosx.o: os_macosx.m

View File

@ -1,12 +1,11 @@
/* /*
* os_haiku.rdef * os_haiku.rdef.in: Assets and resources file for Haiku
*/ */
resource app_signature "application/x-vnd.Haiku-Vim-8"; resource app_signature "application/x-vnd.Haiku-Vim-8";
resource app_version { resource app_version {
major = @MAJOR@, major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@, minor = @MINOR@,
variety = B_APPV_FINAL, variety = B_APPV_FINAL,

View File

@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
667,
/**/ /**/
666, 666,
/**/ /**/