Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mercurial broken when installed in base-multiarch #424

Closed
jcea opened this issue Oct 30, 2016 · 2 comments
Closed

Mercurial broken when installed in base-multiarch #424

jcea opened this issue Oct 30, 2016 · 2 comments

Comments

@jcea
Copy link

jcea commented Oct 30, 2016

Image: base-multiarch 16.3.1

# python -c "import platform; print(platform.architecture())" -> ('32bit', 'ELF')
# pkgin install mercurial
[...]
# hg
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 43, in <module>
    mercurial.util.setbinary(fp)
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/demandimport.py", line 147, in __getattribute__
    self._load()
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/demandimport.py", line 96, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/demandimport.py", line 53, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/util.py", line 120, in <module>
    statfiles = getattr(osutil, 'statfiles', platform.statfiles)
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/demandimport.py", line 147, in __getattribute__
    self._load()
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/demandimport.py", line 96, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/demandimport.py", line 53, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/opt/local/lib/python2.7/site-packages/amd64/mercurial/__init__.py", line 120, in load_module
    mod = imp.load_module(name, *modinfo)
ImportError: ld.so.1: python2.7: fatal: /opt/local/lib/python2.7/site-packages/amd64/mercurial/osutil.so: wrong ELF class: ELFCLASS64
@mamash
Copy link

mamash commented Oct 31, 2016

I'll have a look. Multiarch support for Python related packages is quite poor currently. This particular problem just doesn't manifest at build time (as in rrdtool), but at runtime.

@mamash
Copy link

mamash commented Nov 1, 2016

This is fixed now in 2016Q3/multiarch. Please re-install py27-mercurial (make sure to clean the pkgin cache with pkgin cl before re-installing).

@mamash mamash closed this as completed Nov 1, 2016
wiedi pushed a commit to wiedi/pkgsrc-legacy that referenced this issue Nov 17, 2016
## v4.0.0

New features:
* New Django samples. (#636)
* Add support for RFC7636 PKCE. (#588)
* Release as a universal wheel. (#665)

Bug fixes:
* Fix django authorization redirect by correctly checking validity of credentials. (#651)
* Correct query loss when using parse_qsl to dict. (#622)
* Switch django models from pickle to jsonpickle. (#614)
* Support new MIDDLEWARE Django 1.10 aetting. (#623)
* Remove usage of os.environ.setdefault. (#621)
* Handle missing storage files correctly. (#576)
* Try to revoke token with POST when getting a 405. (#662)

Internal changes:
* Use transport module for GCE environment check. (#612)
* Remove __author__ lines and add contributors.md. (#627)
* Clean up imports. (#625)
* Use transport.request in tests. (#607)
* Drop unittest2 dependency (#610)
* Remove backslash line continuations. (#608)
* Use transport helpers in system tests. (#606)
* Clean up usage of HTTP mocks in tests. (#605)
* Remove all uses of MagicMock. (#598)
* Migrate test runner to pytest. (TritonDataCenter#569)
* Merge util.py and _helpers.py. (#579)
* Remove httplib2 imports from non-transport modules. (#577)

Breaking changes:
* Drop Python 3.3 support. (#603)
* Drop Python 2.6 support. (#590)
* Remove multistore_file. (#589)

## v3.0.0

* Populate `token_expiry` for GCE credentials. (#473)
* Move GCE metadata interface to a separate module. (TritonDataCenter#520)
* Populate `scopes` for GCE credentials. (TritonDataCenter#524)
* Fix Python 3.5 compatibility. (TritonDataCenter#531)
* Add `oauth2client.contrib.sqlalchemy`, a SQLAlchemy-based credential store. (TritonDataCenter#527)
* Improve error when an invalid client secret is provided. (TritonDataCenter#530)
* Add `oauth2client.contrib.multiprocess_storage`. This supersedes the functionality in `oauth2client.contrib.multistore_file`. (TritonDataCenter#504)
* Pull httplib2 usage into a separate transport module. (TritonDataCenter#559, TritonDataCenter#561)
* Refactor all django-related code into `oauth2client.contrib.django_util`. Add `DjangoORMStorage`, remove `FlowField`. (TritonDataCenter#546)
* Fix application default credentials resolution order. (#570)
* Add configurable timeout for GCE metadata server check. (#571)
* Add warnings when using deprecated `approval_prompt='force'`. (#572)
* Add deprecation warning to `oauth2client.contrib.multistore_file`. (#574)
* (Hygiene) PEP8 compliance and various style fixes (TritonDataCenter#537, TritonDataCenter#540, TritonDataCenter#552, TritonDataCenter#562)
* (Hygiene) Remove duplicated exception classes in `oauth2client.contrib.appengine`. (TritonDataCenter#533)

NOTE: The next major release of oauth2client (v4.0.0) will remove the `oauth2client.contrib.multistore_file` module.

## v2.2.0

* Added support to override `token_uri` and `revoke_uri` in `oauth2client.service_account.ServiceAccountCredentials`. (TritonDataCenter#510)
* `oauth2client.contrib.multistore_file` now handles `OSError` in addition to `IOError` because Windows may raise `OSError` where other platforms will raise `IOError`.
* `oauth2client.contrib.django_util` and `oauth2client.contrib.django_orm` have been updated to support Django 1.8 - 1.10. Versions of Django below 1.8 will not work with these modules.

## v2.1.0

* Add basic support for JWT access credentials. (TritonDataCenter#503)
* Fix `oauth2client.client.DeviceFlowInfo` to use UTC instead of the system timezone when calculating code expiration.

## v2.0.2

* Fix issue where `flask_util.UserOAuth2.required` would accept expired credentials (TritonDataCenter#452).
* Fix issue where `flask_util` would fill the session with `Flow` objects (TritonDataCenter#498).
* Fix issue with Python 3 binary strings in `Flow.step2_exchange` (TritonDataCenter#446).
* Improve test coverage to 100%.

## v2.0.1

* Making scopes optional on Google Compute Engine `AppAssertionCredentials`
  and adding a warning that GCE won't honor scopes (TritonDataCenter#419)
* Adding common `sign_blob()` to service account types and a
  `service_account_email` property. (TritonDataCenter#421)
* Improving error message in P12 factory
  `ServiceAccountCredentials.from_p12_keyfile` when pyOpenSSL is
  missing. (TritonDataCenter#424)
* Allowing default flags in `oauth2client.tools.run_flow()`
  rather than forcing users to create a dummy argparser (TritonDataCenter#426)
* Removing `oauth2client.util.dict_to_tuple_key()` from public
  interface (TritonDataCenter#429)
* Adding `oauth2client.contrib._appengine_ndb` helper module
  for `oauth2client.contrib.appengine` and moving most code that
  uses the `ndb` library into the helper (TritonDataCenter#434)
* Fix error in `django_util` sample code (TritonDataCenter#438)

## v2.0.0-post1

* Fix Google Compute Engine breakage (TritonDataCenter#411, breakage introduced in TritonDataCenter#387) that
  made it impossible to obtain access tokens
* Implement `ServiceAccountCredentials.from_p12_keyfile_buffer()`
  to allow passing a file-like object in addition to the factory
  constructor that uses a filename directly (TritonDataCenter#413)
* Implement `ServiceAccountCredentials.create_delegated()`
  to allow upgrading a credential to one that acts on behalf
  of a given subject (TritonDataCenter#420)
wiedi pushed a commit to wiedi/pkgsrc-legacy that referenced this issue Jan 28, 2018
inputmethod/mozc-server: build fix

Revisions pulled up:
- inputmethod/mozc-server/distinfo                              1.21
- inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc 1.1

-------------------------------------------------------------------
   Module Name:	pkgsrc
   Committed By:	tsutsui
   Date:		Sat Dec 30 14:51:42 UTC 2017

   Modified Files:
   	pkgsrc/inputmethod/mozc-server: distinfo
   Added Files:
   	pkgsrc/inputmethod/mozc-server/patches:
   	    patch-prediction_user__history__predictor.cc

   Log Message:
   mozc-server: fix a build error on NetBSD/amd64 7.1.1 + pkgsrc-2017Q4.

   Apply a patch from the upstream pull request TritonDataCenter#424:
   https://github.com/google/mozc/pull/424/files
   > Fix reference to std::swap TritonDataCenter#424


   To generate a diff of this commit:
   cvs rdiff -u -r1.20 -r1.21 pkgsrc/inputmethod/mozc-server/distinfo
   cvs rdiff -u -r0 -r1.1 \
       pkgsrc/inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants