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

Bug#699781: kFreeBSD/18



Package: iceweasel
Version: 18.0.1-1
Severity: important

Hi!

Got a patch that almost made iceweasel 18 build on kfreebsd:

For the pthread_setname thing we, of course, need a more elegant
solution. Hopefully someone with eglibc/kfreebsd knowledge can help?
seems we are missing pthread_setname_np() which exists on linux (at
least I couldn't find the header defining it).

--- iceweasel-18.0.1.orig/js/src/vm/Stack.cpp
+++ iceweasel-18.0.1/js/src/vm/Stack.cpp
@@ -829,7 +829,7 @@ StackSpace::sizeOf()
     size_t numPages = (numBytes + pageSize - 1) / pageSize;
 
     // On Linux, mincore's third argument has type unsigned char*.
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
     typedef unsigned char MincoreArgType;
 #else
     typedef char MincoreArgType;
--- iceweasel-18.0.1.orig/ipc/chromium/src/base/platform_thread_posix.cc
+++ iceweasel-18.0.1/ipc/chromium/src/base/platform_thread_posix.cc
@@ -13,7 +13,9 @@
 #include <lwp.h>
 #elif defined(OS_LINUX)
 #include <sys/syscall.h>
+#ifdef __linux__
 #include <sys/prctl.h>
+#endif
 #elif defined(OS_FREEBSD)
 #include <sys/param.h>
 #include <sys/thr.h>
@@ -111,7 +113,7 @@ void PlatformThread::SetName(const char*
 #elif defined(OS_NETBSD)
   pthread_setname_np(pthread_self(), "%s", (void *)name);
 #else
-  prctl(PR_SET_NAME, reinterpret_cast<uintptr_t>(name), 0, 0, 0); 
+//  prctl(PR_SET_NAME, reinterpret_cast<uintptr_t>(name), 0, 0, 0); 
 #endif
 }
 #endif // !OS_MACOSX

Still failing at the end in dh_shlibdeps though:

   debian/rules override_dh_shlibdeps
make[1]: Entering directory `/mnt/disk1/scratch/iceweasel-18.0.1'
dh_shlibdeps -a -l/mnt/disk1/scratch/iceweasel-18.0.1/debian/tmp/usr/lib/xulrunner-18.0 -Xlibdbusservice
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxpcom.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxpcom.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxpcom.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxpcom.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxpcom.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxpcom.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: error: couldn't find library libmozjs.so. needed by debian/xulrunner-18.0/usr/lib/xulrunner-18.0/libxul.so (ELF format: 'elf64-x86-64-freebsd'; RPATH: '')
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libmozalloc.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxul.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxul.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxul.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxul.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxul.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libxul.so'
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/xulrunner-18.0.substvars debian/xulrunner-18.0/usr/lib/xulrunner-18.0/libxul.so debian/xulrunner-18.0/usr/lib/xulrunner-18.0/libxpcom.so debian/xulrunner-18.0/usr/lib/xulrunner-18.0/libmozalloc.so debian/xulrunner-18.0/usr/lib/xulrunner-18.0/mozilla-xremote-client debian/xulrunner-18.0/usr/lib/xulrunner-18.0/updater debian/xulrunner-18.0/usr/lib/xulrunner-18.0/xulrunner debian/xulrunner-18.0/usr/lib/xulrunner-18.0/xulrunner-stub debian/xulrunner-18.0/usr/lib/xulrunner-18.0/plugin-container debian/xulrunner-18.0/usr/lib/xulrunner-18.0/components/libmozgnome.so returned exit code 2
make[1]: *** [override_dh_shlibdeps] Error 2
make[1]: Leaving directory `/mnt/disk1/scratch/iceweasel-18.0.1'
make: *** [binary] Error 2



-- Addons package information
ii  iceweasel      14.0.1-2     kfreebsd-amd Web browser based on Firefox

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.0-0-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iceweasel depends on:
ii  debianutils         4.3.2
ii  fontconfig          2.9.0-7.1
ii  libc0.1             2.13-37
ii  libgdk-pixbuf2.0-0  2.26.1-1
ii  libglib2.0-0        2.33.12+really2.32.4-3
ii  libgtk2.0-0         2.24.10-2
ii  libnspr4            2:4.9.4-2
ii  libnspr4-0d         2:4.9.4-2
ii  libsqlite3-0        3.7.15.2-1
ii  libstdc++6          4.7.2-5
ii  procps              1:3.3.3-2
ii  xulrunner-14.0      14.0.1-2

iceweasel recommends no packages.

Versions of packages iceweasel suggests:
ii  fonts-stix [otf-stix]  1.1.0-1
ii  libgssapi-krb5-2       1.10.1+dfsg-3
pn  mozplugger             <none>

Versions of packages xulrunner-14.0 depends on:
ii  libatk1.0-0               2.4.0-2
ii  libbz2-1.0                1.0.6-4
ii  libc0.1                   2.13-37
ii  libcairo2                 1.12.2-2
ii  libdbus-1-3               1.6.8-1
ii  libevent-2.0-5            2.0.19-stable-3
ii  libfontconfig1            2.9.0-7.1
ii  libfreetype6              2.4.9-1.1
ii  libgcc1                   1:4.7.2-5
ii  libgdk-pixbuf2.0-0        2.26.1-1
ii  libglib2.0-0              2.33.12+really2.32.4-3
ii  libgtk2.0-0               2.24.10-2
ii  libhunspell-1.3-0         1.3.2-4
ii  libjpeg8                  8d-1
ii  libmozjs14d               14.0.1-2
ii  libnotify4                0.7.5-1
ii  libnspr4                  2:4.9.4-2
ii  libnspr4-0d               2:4.9.4-2
ii  libnss3                   2:3.14.1.with.ckbi.1.93-1
ii  libnss3-1d                2:3.14.1.with.ckbi.1.93-1
ii  libpango1.0-0             1.30.0-1
ii  libpixman-1-0             0.26.0-3
ii  libsqlite3-0              3.7.15.2-1
ii  libstartup-notification0  0.12-1
ii  libstdc++6                4.7.2-5
ii  libvpx1                   1.1.0-1
ii  libx11-6                  2:1.5.0-1
ii  libxext6                  2:1.3.1-2
ii  libxrender1               1:0.9.7-1
ii  libxt6                    1:1.1.3-1
ii  zlib1g                    1:1.2.7.dfsg-13

Versions of packages xulrunner-14.0 suggests:
ii  libcanberra0      0.28-6
ii  libdbus-glib-1-2  0.100-1
ii  libgnomeui-0      2.24.5-2

-- no debconf information


Reply to: