Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 678864

Summary: app-editors/gvim-8.1.0648 USE=motif - configure: checking for location of Motif GUI libs... <not found>
Product: Gentoo Linux Reporter: OKUMURA N. Shin-ya <oku.ns>
Component: Current packagesAssignee: Oskari Pirhonen <xxc3ncoredxx>
Status: RESOLVED FIXED    
Severity: normal CC: ajak, proxy-maint, sam, vim
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/25628
https://github.com/gentoo/gentoo/pull/30816
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
config.log
Patch for 9999

Description OKUMURA N. Shin-ya 2019-02-26 21:08:49 UTC
when USE='-gtk3 -gnome -gtk motif' emerge =app-editors/gvim-8.1.0648,
the configure of app-editors/gvim-8.1.0648 doesn't find Motif.
I have x11-libs/motif-2.3.8-r1 with USE="abi_x86_64 amd64 elibc_glibc examples jpeg kernel_linux motif22-compatibility png static-libs unicode userland_GNU xft".

Reproducible: Always

Steps to Reproduce:
1.USE='-gtk3 -gnome -gtk motif' emerge =app-editors/gvim-8.1.0648

Actual Results:  
# USE='-gtk3 -gnome -gtk motif' emerge app-editors/gvim
Calculating dependencies... done!
(snip)
>>> Emerging (1 of 1) app-editors/gvim-8.1.0648::gentoo
(snip)
 * Building gvim with the MOTIF GUI


./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/gvim-8.1.0648 --htmldir=/usr/share/doc/gvim-8.1.0648/html --libdir=/usr/lib64 --with-modified-by=Gentoo-8.1.0648 --with-vim-name=gvim --with-x --with-features=huge --disable-gpm --enable-multibyte --enable-acl --enable-cscope --disable-luainterp --without-luajit --disable-netbeans --enable-nls --enable-perlinterp --enable-pythoninterp --enable-python3interp --disable-mzschemeinterp --disable-rubyinterp --disable-selinux --disable-xsmp --enable-tclinterp --enable-gui=motif
(snip)
checking size of wchar_t is 2 bytes... no
checking --enable-gui argument... Motif GUI support
checking for location of Motif GUI includes... in default path
checking --with-motif-lib argument... no
checking for location of Motif GUI libs... <not found>
checking for /proc link to executable... /proc/self/exe

# LANG=C /usr/bin/gvim
E25: GUI cannot be used: Not enabled at compile time

Expected Results:  
gvim runs with Motif.
Comment 1 OKUMURA N. Shin-ya 2019-02-26 21:09:22 UTC
Created attachment 566616 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-02-27 07:20:17 UTC
Please attach the entire build log to this bug report.
Read the build log and attach the config.log that it mentions to this bug report as well.
Comment 3 OKUMURA N. Shin-ya 2019-03-01 15:39:13 UTC
Created attachment 567248 [details]
build.log
Comment 4 OKUMURA N. Shin-ya 2019-03-01 15:53:49 UTC
Created attachment 567250 [details]
config.log
Comment 5 Larry the Git Cow gentoo-dev 2021-03-26 08:50:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35443759beadd2c24113c9457e62a016d81ccb5a

commit 35443759beadd2c24113c9457e62a016d81ccb5a
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-03-26 08:34:56 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-03-26 08:43:53 +0000

    app-editors/gvim: drop old version
    
    Dropping all old versions, which do not support slotted lua, as current
    ones does.
    
    Closes: https://bugs.gentoo.org/682292
    Closes: https://bugs.gentoo.org/628570
    Closes: https://bugs.gentoo.org/629694
    Closes: https://bugs.gentoo.org/630042
    Closes: https://bugs.gentoo.org/678864
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 app-editors/gvim/Manifest             |   4 -
 app-editors/gvim/gvim-8.2.0360.ebuild | 367 ----------------------------------
 app-editors/gvim/gvim-8.2.0508.ebuild | 367 ----------------------------------
 app-editors/gvim/gvim-8.2.0638.ebuild | 367 ----------------------------------
 app-editors/gvim/gvim-8.2.0814.ebuild | 367 ----------------------------------
 5 files changed, 1472 deletions(-)
Comment 6 x11sh 2021-06-21 19:38:43 UTC
I don't think this is resolved. I still get the very same error and output reported by the OP.
Comment 7 x11sh 2021-09-25 01:02:14 UTC
Okay, I think I got this. The ./configure script says

    checking for location of Motif GUI libs... <not found>

So I configured it with 

    ./configure --enable-gui=motif --with-motif-lib=/usr/lib64/libXm.so

and it compiled successfully with the Motif GUI.
Comment 8 x11sh 2021-09-25 01:03:15 UTC
Created attachment 741168 [details, diff]
Patch for 9999

Caveat: I'm not an Ebuild master at all!
Comment 9 x11sh 2022-03-12 11:56:11 UTC
myconf+=( --enable-gui=motif --with-motif-lib=-lXm )

also works, and should be future-proof, in contrast to the solution I previously proposed.
Comment 10 Oskari Pirhonen 2023-04-21 06:53:54 UTC
This looks potentially relevant: https://github.com/vim/vim/commit/01967f5b1042b375b38098eceaf31671902c8dbb
Comment 11 Larry the Git Cow gentoo-dev 2023-05-01 01:35:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3f2b4b321dccd03d25fe85d8d26f8a8698ee77a

commit c3f2b4b321dccd03d25fe85d8d26f8a8698ee77a
Author:     Oskari Pirhonen <xxc3ncoredxx@gmail.com>
AuthorDate: 2023-05-01 00:37:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-01 01:32:33 +0000

    app-editors/gvim: add 9.0.1503
    
    Bug: https://bugs.gentoo.org/905373
    Closes: https://bugs.gentoo.org/678864
    Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/gvim/Manifest             |   1 +
 app-editors/gvim/gvim-9.0.1503.ebuild | 367 ++++++++++++++++++++++++++++++++++
 2 files changed, 368 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b64fc47970052bff5c8039f92a70b658f5ac91e6

commit b64fc47970052bff5c8039f92a70b658f5ac91e6
Author:     Oskari Pirhonen <xxc3ncoredxx@gmail.com>
AuthorDate: 2023-05-01 00:39:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-01 01:32:33 +0000

    app-editors/vim: add 9.0.1503
    
    Bug: https://bugs.gentoo.org/905373
    Bug: https://bugs.gentoo.org/678864
    Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/vim/Manifest            |   1 +
 app-editors/vim/vim-9.0.1503.ebuild | 371 ++++++++++++++++++++++++++++++++++++
 2 files changed, 372 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa24ae670f87674b8c1a2399ebb68e1d391764b7

commit aa24ae670f87674b8c1a2399ebb68e1d391764b7
Author:     Oskari Pirhonen <xxc3ncoredxx@gmail.com>
AuthorDate: 2023-05-01 00:40:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-01 01:32:33 +0000

    app-editors/vim-core: add 9.0.1503
    
    Bug: https://bugs.gentoo.org/905373
    Bug: https://bugs.gentoo.org/678864
    Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/vim-core/Manifest                 |   1 +
 app-editors/vim-core/vim-core-9.0.1503.ebuild | 231 ++++++++++++++++++++++++++
 2 files changed, 232 insertions(+)