os.sync() isn't available, problem with HAVE_SYNC?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
os.sync() was added in Python 3.3, but for some reason it's not enabled in the current Ubuntu package.
I haven't tracked down the details yet, but my hunch is HAVE_SYNC isn't getting defined for whatever reason.
See Modules/
#ifdef HAVE_SYNC
PyDoc_STRVAR(
"sync()\n\n\
Force write of everything to disk.");
static PyObject *
posix_sync(PyObject *self, PyObject *noargs)
{
Py_
sync();
Py_
Py_RETURN_NONE;
}
#endif
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: python3.3 3.3.0-11ubuntu1
ProcVersionSign
Uname: Linux 3.8.0-7-generic x86_64
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
Date: Thu Feb 21 05:10:25 2013
InstallationDate: Installed on 2012-08-06 (198 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python3.3
UpgradeStatus: Upgraded to raring on 2013-02-01 (19 days ago)
Related branches
- Martin Pitt: Approve
-
Diff: 30 lines (+6/-6)2 files modifieddebian/changelog (+6/-0)
debian/rules (+0/-6)
Changed in python3.3 (Ubuntu): | |
status: | New → Fix Committed |
Hmm, there is this suspicious looking bit in debian/rules line 359:
: # apply workaround for missing os.fsync SYNC/HAVE_ FSYNC/g' $(1)/pyconfig.h \
sed 's/HAVE_
> $(1)/pyconfig.h.new
touch -r $(1)/pyconfig.h $(1)/pyconfig.h.new
mv -f $(1)/pyconfig.h.new $(1)/pyconfig.h