[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#644588: gle-graphics: FTBFS: Message: /usr/lib/libgle-graphics-4.2.2.so: cannot open shared object file: No such file or directory



So to summarize, both you and I can build the package on kfreebsd machines (debian porter boxes and your box),
but the buildds fail to build since 4.2.2-4+b2,
whereas 4.2.2-4+b1 and 4.2.2-4 have built successfully. Note
that in a binNMU the source code has not been changed. From this I conclude
that the bug is not in the source, but only on the buildds, especially
since other kfreebsd machines build the package fine, without any source
changes. Since nobody from -bsd seems to be able to help

The problem seems be in src/gle/file_io.cpp:

#if defined(__UNIX__) && !defined(__MACOS__) && !defined(__FREEBSD__)
        /* try to read location from the /proc/self/exe file */
        char path[PATH_MAX];
        struct stat stat_buf;
        string path2 = "/proc/self/exe";


There is a "/proc/self/exe" support under GNU/kFreeBSD, but it is limited, namely inside combination of bind mounts and chroots.
I bet that configuration of buildd have been changed in mean time.
In fact the /proc/self/exe file systems is linuxism.

Please try this:

--- src/gle/file_io.cpp
+++ src/gle/file_io.cpp
@@ -1334,7 +1334,7 @@
                return true;
        }
 #endif
-#if defined(__UNIX__) && !defined(__MACOS__) && !defined(__FREEBSD__)
+#if defined(__linux__)
        /* try to read location from the /proc/self/exe file */
        char path[PATH_MAX];
        struct stat stat_buf;


Petr


Reply to: