Bug 9466 - VIM_REMOVE_DOCS removes rgb.txt
Summary: VIM_REMOVE_DOCS removes rgb.txt
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2016.11
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 09:07 UTC by Mateusz Furdyna
Modified: 2016-12-05 21:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Furdyna 2016-12-05 09:07:33 UTC
package/vim/vim.mk

define VIM_REMOVE_DOCS
        find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete
endef

This removes file rgb.txt which is used by vim in syntax coloring.
Then, when vim tries to color it's output, you could see something in the sort of:

Error detected while processing /usr/share/vim/vim80/syntax/syncolor.vim: 
line 46: 
E254: Cannot allocate color SlateBlue 
Press ENTER or type command to continue
Comment 1 Thomas Petazzoni 2016-12-05 09:31:42 UTC
Thanks for the bug report. I propose to remove /usr/share/vim/vim80/doc/ instead, and keep all the rest.
Comment 2 Thomas Petazzoni 2016-12-05 20:36:59 UTC
Fix proposed at https://patchwork.ozlabs.org/patch/702870/.
Comment 3 Thomas Petazzoni 2016-12-05 21:56:13 UTC
Fixed in https://git.buildroot.org/buildroot/commit/?id=f7a07f42f70a73806fd2f6bf3662fc6907845fe9. Thanks for having reported the issue!