Summary: | x11-misc/gmrun-0.9.2 fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sebastian Günther <gentoo> |
Component: | Current packages | Assignee: | Desktop Misc. Team <desktop-misc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | derchiller, marsoft, muczyjoe |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 270353 | ||
Attachments: |
build.log
emerge --info build.log Quick fix. fixed for ~arch for arch |
Description
Sebastian Günther
2009-06-11 14:50:03 UTC
Created attachment 194252 [details]
build.log
Most likely another glibc-2.10.1 regression... Created attachment 195188 [details]
emerge --info
Created attachment 195189 [details]
build.log
Created attachment 195194 [details, diff]
Quick fix.
Also, there is an error in default config file: URL_http = firefox -remote "openURL(%u, new-wendow)" instead of URL_http = firefox -remote "openURL(%u, new-window)" (I don't know, must I say about it here, or open a new bug, of forget...) its a pitty thats this app i realy out of date. cod some one fix this as soon as to make it useable in muticore, 64 bit systems. thx a lot (In reply to comment #6) > Also, there is an error in default config file: > URL_http = firefox -remote "openURL(%u, new-wendow)" > instead of > URL_http = firefox -remote "openURL(%u, new-window)" There's no such typo in the default config file... Must be your owns :-) Applied the glibc-2.10+ patch, thanks for reporting. Hi! I tried to compile gmrun on a amd64 arch, but I get these errors with the gcc and glibc patches applied: gtkcompletionline.cc: In function ‘void generate_execs()’: gtkcompletionline.cc:411: error: invalid conversion from ‘int (*)(const dirent**, const dirent**)’ to ‘int (*)(const void*, const void*)’ gtkcompletionline.cc:411: error: initializing argument 4 of ‘int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const void*, const void*))’ gtkcompletionline.cc: In function ‘int generate_dirlist(const char*)’: gtkcompletionline.cc:511: error: invalid conversion from ‘int (*)(const dirent**, const dirent**)’ to ‘int (*)(const void*, const void*)’ gtkcompletionline.cc:511: error: initializing argument 4 of ‘int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const void*, const void*))’ Here comes the interesting part: I found /gentoo/usr/portage/x11-libs/fltk/files/fltk2-glibc2.10-scandir.patch, however, if I write (int(*)(const void*,const void*)) before "my_alphasort" in line 411 and 511, it compiles fine. The strange thing, that writing (int(*)(const dirent **,const dirent **)) generates an error again (the latter line is used in the fltk2 patch)... (In reply to comment #10) > I tried to compile gmrun on a amd64 arch Hm... Do you have amd64 or ~amd64? Which version of glibc? > gtkcompletionline.cc: In function ‘void generate_execs()’: > gtkcompletionline.cc:411: error: invalid conversion from ‘int (*)(const > dirent**, const dirent**)’ to ‘int (*)(const void*, const void*)’ > gtkcompletionline.cc:411: error: initializing argument 4 of ‘int > scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const void*, > const void*))’ > gtkcompletionline.cc: In function ‘int generate_dirlist(const char*)’: > gtkcompletionline.cc:511: error: invalid conversion from ‘int (*)(const > dirent**, const dirent**)’ to ‘int (*)(const void*, const void*)’ > gtkcompletionline.cc:511: error: initializing argument 4 of ‘int > scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const void*, > const void*))’ It seems that you have pre-2.10 glibc, and don't need this patch at all... Maybe we should check version of glibc before applying patch? Or else, we can remove patch from 0.9.2 ebuild and add a gmrun-0.9.2-r1 ebuild with this patch, and mark it as ~arch: on 'stable' systems 0.9.2 (without patch) will install OK, and on ~arch - 0.9.2-r1 will be taken. (In reply to comment #11) > Hm... Do you have amd64 or ~amd64? Which version of glibc? I have stable amd64, only some ~amd64 packages.My glibc version is: 2.9_p20081201-r2 . > It seems that you have pre-2.10 glibc, and don't need this patch at all... > > Maybe we should check version of glibc before applying patch? I think so. BTW, fltk uses this method: (in fltk-2.0_pre6786.ebuild) KEYWORDS="amd64" DEPEND="<sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 (in fltk-2.0_pre6786-r1.ebuild) KEYWORDS="~amd64" DEPEND=">=sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 epatch "${FILESDIR}"/fltk2-glibc2.10-scandir.patch # bug 270487 Created attachment 200558 [details]
fixed
Created attachment 200560 [details]
for ~arch
(In reply to comment #15) > Created an attachment (id=200558) [edit] > fixed > <dev-libc/glibc-2.10 ??? You mean: <sys-libs/glibc-2.10 don't you? (In reply to comment #17) > <dev-libc/glibc-2.10 ??? > You mean: > <sys-libs/glibc-2.10 > don't you? Yes, of course. Sorry. Created attachment 200624 [details]
for arch
*** Bug 280902 has been marked as a duplicate of this bug. *** |