ocamlnet library compiled without SHM support

Bug #257524 reported by Seb Mondet
Affects Status Importance Assigned to Milestone
ocamlnet (Ubuntu)
Fix Released
Stéphane Glondu

Bug Description

Binary package hint: libocamlnet-ocaml

With ubuntu's version of ocamlnet, (Netsys.have_posix_shm ()) always gives 'false' which is not the expected behaviour on linux.

If I download the source (apt-get source), compile it and link with it, the function returns true.

In the sources, the script:
is responsible for the '#define HAVE_POSIX_SHM'

$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

$ apt-cache policy libocamlnet-ocaml
  Version table:
 *** 0
        500 http://sg.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Stéphane Glondu (glondu) wrote :

It seems that the package has been built in an environment lacking /dev/shm, and therefore the test program failed, hence the value of Netsys.have_posix_shm.

AFAICT, this is an issue in Ubuntu building infrastructure, not in the package itself. I could make the package building fail if /dev/shm is not mounted... but it would then always fail in Ubuntu build farms... is that what we want?

Changed in ocamlnet (Ubuntu):
assignee: nobody → Stéphane Glondu (glondu)
Revision history for this message
Stéphane Glondu (glondu) wrote :

Actually, packages built with cowbuilder are also affected. I will force SHM on Linux.

Revision history for this message
Stéphane Glondu (glondu) wrote :

Fix committed in pkg-ocaml-maint git

Changed in ocamlnet (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ocamlnet - 3.5.1-2

ocamlnet (3.5.1-2) unstable; urgency=low

  * Update packaging for apache 2.4 (Closes: #666825)
    - import upstream patch to fix compilation
  * Fix incorrect use of F_SETFL with FD_CLOEXEC (Closes: #696279)
  * Force all netsys features on Linux (LP: #257524)
  * Bump debhelper compat level to 9
  * Update Vcs-* fields

 -- Stéphane Glondu <email address hidden> Wed, 05 Jun 2013 08:03:53 +0200

Changed in ocamlnet (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers