Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799176 - x11-plugins/gkrellm-leds-0.8.2-r1 - /.../ld: cannot find @GK_LDFLAGS@: No such file or directory
Summary: x11-plugins/gkrellm-leds-0.8.2-r1 - /.../ld: cannot find @GK_LDFLAGS@: No suc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-06-29 07:21 UTC by Toralf Förster
Modified: 2022-04-07 02:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.71 KB, text/plain)
2021-06-29 07:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,385.22 KB, text/plain)
2021-06-29 07:21 UTC, Toralf Förster
Details
environment (environment,51.07 KB, text/plain)
2021-06-29 07:21 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,25.03 KB, application/x-bzip)
2021-06-29 07:21 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.80 KB, application/x-bzip)
2021-06-29 07:21 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,16.39 KB, application/x-bzip)
2021-06-29 07:21 UTC, Toralf Förster
Details
x11-plugins:gkrellm-leds-0.8.2-r1:20210628-230237.log (x11-plugins:gkrellm-leds-0.8.2-r1:20210628-230237.log,17.43 KB, text/plain)
2021-06-29 07:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-06-29 07:21:35 UTC
rdlibtool: link: ln -s /dev/null .libs/gkleds.a.disabled
rdlibtool: link: x86_64-pc-linux-gnu-gcc .libs/gkleds_la-gkleds.o -pipe -march=native -fno-diagnostics-color -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 @GK_LDFLAGS@ -lSM -lICE -L/usr/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lXtst -lX11 -shared -fPIC -Wl,-soname -Wl,gkleds.so -o .libs/gkleds.so
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find @GK_LDFLAGS@: No such file or directory
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_library(), line 1572: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 2084.
make[2]: *** [Makefile:227: gkleds.la] Error 2

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j3-20210621-104403

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.9.5
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  (none found)
  HEAD of ::gentoo
commit 5fd60142b26a56ff4ef7d352d2bcfea3c2173700
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jun 28 22:21:28 2021 +0000

    2021-06-28 22:21:27 UTC

emerge -qpvO x11-plugins/gkrellm-leds
[ebuild  N    ] x11-plugins/gkrellm-leds-0.8.2-r1
Comment 1 Toralf Förster gentoo-dev 2021-06-29 07:21:36 UTC
Created attachment 720006 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-29 07:21:38 UTC
Created attachment 720009 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-06-29 07:21:39 UTC
Created attachment 720012 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-06-29 07:21:40 UTC
Created attachment 720015 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-06-29 07:21:41 UTC
Created attachment 720018 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-06-29 07:21:43 UTC
Created attachment 720021 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-06-29 07:21:44 UTC
Created attachment 720024 [details]
x11-plugins:gkrellm-leds-0.8.2-r1:20210628-230237.log
Comment 8 Thomas Bracht Laumann Jespersen 2022-03-20 12:25:28 UTC
I'm looking at moving the ebuild from EAPI 6 -> 8, and hoping I could fix this in the meantime.

Looking at the Makefile.in, there are three variables defined:

---
GKM_CFLAGS = @GKM_CFLAGS@
GKM_EXTRA_SRCS = @GKM_EXTRA_SRCS@
GKM_LDFLAGS = @GKM_LDFLAGS@
---

and further down they are used like this:

---
gkleds_la_CFLAGS = -Wall -O2 -I../pixmaps @X_CFLAGS@ @GTK_CFLAGS@ @GKM_CFLAGS@

gkleds_la_LIBADD = @X_PRE_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ @GTK_LIBS@ @GKM_EXTRA_SRCS@

gkleds_la_LDFLAGS = -module -avoid-version @GK_LDFLAGS@
---

Do you think it's "just" a typo and @GK_FLAGS@ should've been @GKM_FLAGS@?

After the src_configure phase, grepping for GK_FLAGS gives just two hits:

$ grep -R GK_LDFLAGS
src/Makefile.am:gkleds_la_LDFLAGS = -module -avoid-version @GK_LDFLAGS@
src/Makefile.in:gkleds_la_LDFLAGS = -module -avoid-version @GK_LDFLAGS@
Comment 9 Thomas Bracht Laumann Jespersen 2022-03-20 12:33:49 UTC
> Do you think it's "just" a typo and @GK_FLAGS@ should've been @GKM_FLAGS@?

I mean of course @GK_LDFLAGS@ and @GKM_LDFLAGS@
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-23 04:06:56 UTC
I think it's got to be - @FOO@ _has_ to be subtituted in or it's just meaningless junk (like we see in this bug).
Comment 11 Larry the Git Cow gentoo-dev 2022-04-07 02:22:03 UTC
The bug has been closed via the following commit(s):

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

commit 1d557df31533026ecba7c8c4b4a4fd8ee2d136a1
Author:     Thomas Bracht Laumann Jespersen <t@laumann.xyz>
AuthorDate: 2022-03-23 14:52:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-07 02:20:46 +0000

    x11-plugins/gkrellm-leds: update EAPI 6 -> 8
    
    Besides the EAPI bump, there's a bug for the referenced bug. The issue
    seems to be simply a typo in src/Makefile.am resulting in a variable
    @GK_LDFLAGS@ not being replaced appropriately.
    
    Closes: https://bugs.gentoo.org/799176
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    Closes: https://github.com/gentoo/gentoo/pull/24729
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gkrellm-leds-0.8.2-r2-ldflags-typo.patch | 12 ++++++++
 .../gkrellm-leds/gkrellm-leds-0.8.2-r2.ebuild      | 36 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)