- glibc fixed, hacks not needed anymore
Changed files:
vim.spec -> 1.523
# TODO
# - evim manuals not installed if no gui is built, move to -gui packages?
# TODO
# - evim manuals not installed if no gui is built, move to -gui packages?
-# - fix glibc so that static work without hacks
-#
-# NOTE
-# - static package is not quite static, it must be linked with shared glibc
-# because of glibc nss brokeness wrt all static linking (see TODO)
#
# Conditional build:
%bcond_without static # don't build static version
#
# Conditional build:
%bcond_without static # don't build static version
Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
Name: vim
Version: %{ver}.%{patchlevel}
Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
Name: vim
Version: %{ver}.%{patchlevel}
Epoch: 4
License: Charityware
Group: Applications/Editors/Vim
Epoch: 4
License: Charityware
Group: Applications/Editors/Vim
build() {
set -x
local target=$1
build() {
set -x
local target=$1
shift
%{__make} distclean
shift
%{__make} distclean
- # Hack around glibc brokeness wrt static linking and NSS (Name Service Shit)
- if [ "$target" = "vim.static" ]; then
- echo "s| -l\([^ ]\+\)| %{_libdir}/lib\1.a|g" >>auto/link.sed
- rm -f vim
- %{__make} vim
- shlink=$(ldd ./vim | grep -v "linux-\(gate\|vdso\)\|libc.so\|ld-linux.*" || :)
- if [ -n "$shlink" ]; then
- echo "Looks like static link failed!"
- echo "These libs should be linked static:"
- echo $shlink
- return 1
- fi
- fi
mv -f vim bin/$target
}
%if %{with static}
mv -f vim bin/$target
}
%if %{with static}
-#LDFLAGS="%{rpmldflags} -static"
+LDFLAGS="%{rpmldflags} -static"
build vim.static \
--disable-gui \
--without-x \
build vim.static \
--disable-gui \
--without-x \
--disable-multibyte \
--disable-nls
--disable-multibyte \
--disable-nls
-#LDFLAGS="%{rpmldflags}"
%endif
build vim.ncurses \
%endif
build vim.ncurses \