Results 1 to 8 of 8

Thread: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

  1. #1
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    Hi,

    I am trying to build my Vim package for SLE 11 SP4 and while my package builds fine for SLE 12 and later and all supported openSUSE releases I get the error:

    Code:
    tutor.hu)
    [  100s] INFO: relinking /usr/share/vim/vim80/tutor/tutor.zh_tw.utf-8 -> tutor.zh.utf-8 (was /usr/share/vim/vim80/tutor/tutor.zh.utf-8)
    [  100s] INFO: relinking /usr/share/vim/vim80/tutor/tutor -> tutor.utf-8 (was /usr/share/vim/vim80/tutor/tutor.utf-8)
    [  100s] + /usr/lib/rpm/brp-desktop
    [  101s] WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
    [  101s] WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist
    [  101s] WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
    [  101s] + /usr/lib/rpm/brp-rpath
    [  101s] + /usr/lib/rpm/brp-pie
    [  101s] + /usr/lib/rpm/brp-rootfs
    [  101s] binary /bin/vim is linked against libraries in /usr or /opt
    [  101s]        libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007fae6b879000)
    [  101s]        libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007fae6b65b000)
    [  101s]        libXt.so.6 => /usr/lib64/libXt.so.6 (0x00007fae6b3f5000)
    [  101s]        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fae6b0b8000)
    [  101s]        libperl.so => /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE/libperl.so (0x00007fae6a644000)
    [  101s]        libxcb-xlib.so.0 => /usr/lib64/libxcb-xlib.so.0 (0x00007fae69a9f000)
    [  101s]        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fae69882000)
    [  101s]        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fae6967e000)
    [  101s] 
    [  101s] Please adjust the paths in your package
    [  101s] 
    [  101s] error: Bad exit status from /var/tmp/rpm-tmp.53140 (%install)
    [  101s] 
    [  101s] 
    [  101s] RPM build errors:
    [  101s]     Bad exit status from /var/tmp/rpm-tmp.53140 (%install)
    [  101s] 
    [  101s] fusion809-pc failed "build vim.spec" at Sun Mar  5 22:38:02 UTC 2017.
    [  101s]
    when I built on SLE 11 SP4. Now I really have no idea how to fix this error, while simultaneously not making my spec file unsuitable for SLE 12 and later and supported releases of openSUSE.

    Thanks for your time,
    Brenton
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

  2. #2
    Join Date
    Sep 2012
    Posts
    4,135

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    I wonder how you end up with /bin/vim and not /usr/bin/vim. I miss link to your project.

  3. #3
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    Here is my project https://build.opensuse.org/package/s...on809/vim-suse. I got /bin/vim by merely installing with %makeinstall. I didn't move it at all. /usr/bin/vim exists but it is a symlink to /bin/vim.
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

  4. #4
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    I just downloaded and extracted the official Vim RPM package for openSUSE Leap 42.2 and it has a vim binary at exactly the same location /bin/vim, so this isn't so unusual... Likewise its /usr/bin/vim is a symlink to /bin/vim.
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

  5. #5
    Join Date
    Sep 2012
    Posts
    4,135

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    Quote Originally Posted by fusion809 View Post
    I got /bin/vim by merely installing with %makeinstall.
    No, you do not. spec contains explicit instructions for linking it after running %makeinstall. %makeinstall correctly creates /usr/bin/vim which is then explicitly overridden by further commands in spec file.

    I would just replace it with link /bin/vim -> /usr/bin/vim.

  6. #6
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    Ah, I was using Vim to edit this file and I used its search tools to see if later on I moved the vim binary anywhere. Turns out that my search expression was faulty. Thanks. Now with this spec file I am getting the error:

    Code:
    [   72s] Checking permissions and ownerships - using the permissions files
    [   72s]        /tmp/Check.perms.F42qJH
    [   72s] setting /var/tmp/vim-8.0.0425-build/ to root:root 0755. (wrong owner/group abuild:abuild)
    [   72s] setting /var/tmp/vim-8.0.0425-build/bin to root:root 0755. (wrong owner/group abuild:abuild)
    [   72s] setting /var/tmp/vim-8.0.0425-build/etc to root:root 0755. (wrong owner/group abuild:abuild)
    [   72s] setting /var/tmp/vim-8.0.0425-build/usr to root:root 0755. (wrong owner/group abuild:abuild)
    [   73s] + /usr/lib/rpm/brp-compress
    [   73s] + /usr/lib/rpm/brp-strip-debug
    [   74s] + /usr/lib/rpm/brp-check-la
    [   74s] + /usr/lib/rpm/brp-symlink
    [   74s] ERROR: link target doesn't exist (neither in build root nor in installed system):
    [   74s]   /bin/vim -> /usr/bin/vim
    [   74s] Add the package providing the target to neededforbuild and Requires
    [   74s] INFO: relinking /usr/share/vim/vim80/ftplugin/cdrdaoconf.vim -> hostconf.vim (was /usr/share/vim/vim80/ftplugin/hostconf.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/ftplugin/denyhosts.vim -> hostconf.vim (was /usr/share/vim/vim80/ftplugin/hostconf.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_ca.utf-8.vim -> menu_ca_es.utf-8.vim (was /usr/share/vim/vim80/lang/menu_ca_es.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_zh_cn.gbk.vim -> menu_zh_cn.18030.vim (was /usr/share/vim/vim80/lang/menu_zh_cn.18030.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_sr.utf-8.vim -> menu_sr_yu.utf-8.vim (was /usr/share/vim/vim80/lang/menu_sr_yu.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_ja.cp932.vim -> menu_ja_jp.cp932.vim (was /usr/share/vim/vim80/lang/menu_ja_jp.cp932.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_sv_se.utf-8.vim -> menu_sv.utf-8.vim (was /usr/share/vim/vim80/lang/menu_sv.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_ja.ujis.vim -> menu_ja_jp.ujis.vim (was /usr/share/vim/vim80/lang/menu_ja_jp.ujis.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_nl.utf-8.vim -> menu_nl_nl.utf-8.vim (was /usr/share/vim/vim80/lang/menu_nl_nl.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_pl.cp1250.vim -> menu_pl_pl.cp1250.vim (was /usr/share/vim/vim80/lang/menu_pl_pl.cp1250.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_fi.utf-8.vim -> menu_fi_fi.utf-8.vim (was /usr/share/vim/vim80/lang/menu_fi_fi.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_af_af.utf-8.vim -> menu_af.utf-8.vim (was /usr/share/vim/vim80/lang/menu_af.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_sk.cp1250.vim -> menu_sk_sk.cp1250.vim (was /usr/share/vim/vim80/lang/menu_sk_sk.cp1250.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_de_de.utf-8.vim -> menu_de.utf-8.vim (was /usr/share/vim/vim80/lang/menu_de.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_cs_cz.cp1250.vim -> menu_cs.cp1250.vim (was /usr/share/vim/vim80/lang/menu_cs.cp1250.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_pt_pt.latin1.vim -> menu_pt_pt.utf-8.vim (was /usr/share/vim/vim80/lang/menu_pt_pt.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_zh_tw.big5.vim -> menu_zh.cp950.vim (was /usr/share/vim/vim80/lang/menu_zh.cp950.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_ru.utf-8.vim -> menu_ru_ru.utf-8.vim (was /usr/share/vim/vim80/lang/menu_ru_ru.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_fr.utf-8.vim -> menu_fr_fr.utf-8.vim (was /usr/share/vim/vim80/lang/menu_fr_fr.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_it_it.utf-8.vim -> menu_it.utf-8.vim (was /usr/share/vim/vim80/lang/menu_it.utf-8.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_ja_jp.eucjp.vim -> menu_ja.eucjp.vim (was /usr/share/vim/vim80/lang/menu_ja.eucjp.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_zh.big5.vim -> menu_zh.cp950.vim (was /usr/share/vim/vim80/lang/menu_zh.cp950.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_english_united_kingdom.1252.vim -> menu_english_united_kingdom.ascii.vim (was /usr/share/vim/vim80/lang/menu_english_united_kingdom.ascii.vim)
    [   74s] INFO: relinking /usr/share/vim/vim80/lang/menu_es.utf-8.vim -> menu_es_es.utf-8.vim (was /usr/share/vim/vim80/lang/menu_es_es.utf-8.vim)
    [   75s] INFO: relinking /usr/share/vim/vim80/lang/menu_zh_tw.cp950.vim -> menu_zh.cp950.vim (was /usr/share/vim/vim80/lang/menu_zh.cp950.vim)
    [   75s] INFO: relinking /usr/share/vim/vim80/lang/menu_zh.cp936.vim -> menu_zh_cn.cp936.vim (was /usr/share/vim/vim80/lang/menu_zh_cn.cp936.vim)
    [   75s] INFO: relinking /usr/share/vim/vim80/lang/menu_eo_eo.utf-8.vim -> menu_eo_xx.utf-8.vim (was /usr/share/vim/vim80/lang/menu_eo_xx.utf-8.vim)
    [   75s] INFO: relinking /usr/share/vim/vim80/lang/menu_ja.euc-jp.vim -> menu_ja.eucjp.vim (was /usr/share/vim/vim80/lang/menu_ja.eucjp.vim)
    [   75s] INFO: relinking /usr/share/vim/vim80/tutor/tutor.nb.utf-8 -> tutor.no.utf-8 (was /usr/share/vim/vim80/tutor/tutor.no.utf-8)
    [   75s] INFO: relinking /usr/share/vim/vim80/tutor/tutor.nb -> tutor.no (was /usr/share/vim/vim80/tutor/tutor.no)
    [   75s] INFO: relinking /usr/share/vim/vim80/tutor/tutor.hu.cp1250 -> tutor.hu (was /usr/share/vim/vim80/tutor/tutor.hu)
    [   75s] INFO: relinking /usr/share/vim/vim80/tutor/tutor.zh_tw.utf-8 -> tutor.zh.utf-8 (was /usr/share/vim/vim80/tutor/tutor.zh.utf-8)
    [   75s] INFO: relinking /usr/share/vim/vim80/tutor/tutor -> tutor.utf-8 (was /usr/share/vim/vim80/tutor/tutor.utf-8)
    [   75s] error: Bad exit status from /var/tmp/rpm-tmp.68504 (%install)
    [   75s] 
    [   75s] 
    [   75s] RPM build errors:
    [   75s]     Bad exit status from /var/tmp/rpm-tmp.68504 (%install)
    [   75s] 
    [   75s] fusion809-pc failed "build vim.spec" at Mon Mar  6 07:35:03 UTC 2017.
    [   75s]
    the build root /usr/bin directory contains the files:

    Code:
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/egview-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/egvim-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/eview-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/evim-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/gex-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/gview-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/gvi-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/gvimdiff-gtk2 -> gvim-gtk2
    -rwxr-xr-x 1 399 399 2762704 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/gvim-gtk2
    -rwxr-xr-x 1 399 399     143 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/gvimtutor
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/rgview-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       9 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/rgvim-gtk2 -> gvim-gtk2
    lrwxrwxrwx 1 399 399       3 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/rview -> vim
    lrwxrwxrwx 1 399 399       3 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/rvim -> vim
    lrwxrwxrwx 1 399 399       3 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/vimdiff -> vim
    -rwxr-xr-x 1 399 399    2065 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/vimtutor
    -rwxr-xr-x 1 399 399    8678 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/vitmp
    -rwxr-xr-x 1 399 399   22448 Mar  6 17:43 /var/tmp/build-root/SLE_11_SP4-x86_64/var/tmp/vim-8.0.0425-build/usr/bin/xxd
    now sure what I'm doing that's stuffing up these symlinks and not causing /usr/bin/vim to exist... Any ideas?
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

  7. #7
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    Never mind, trivial error I was moving ${_bindir}/vim to ${_bindir}/gvim-gtk2 straight after I had moved vim to %{_bindir}/vim.
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

  8. #8
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default Re: Packaging for SLE 11 SP4: binary /bin/vim is linked against libraries in /usr

    One last set of errors I am getting for this build... it is from RPMLint:

    Code:
    [  116s] vim.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /usr/bin/vim
    [  116s] vim.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /usr/bin/xxd
    [  116s] vim.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /usr/bin/vitmp
    [  116s] gvim-gtk2.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /usr/bin/gvim-gtk2
    [  116s] The package contains a binary or object file but is tagged noarch.
    [  116s]
    now you might ask, "Why not just add addFilter(arch-independent-package-contains-binary-or-object) to rpmlintrc and reference that rpmlintrc in my spec file's source lines?" I'm not doing this because I never specified in my spec file (using the BuildArch: field) that the vim package or gvim-gtk2 package were to be noarch (i.e., arch independent). So why is the OBS treating these packages as architecture-independent? Look through my spec file you'll find only two packages I specified as noarch, gvim-data and vim-data. Any ideas, why I'm getting this error and how I might fix it?
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •