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

Adds new architectures: ppc32, armv8_32 and armv8.3 #4195

Merged
merged 13 commits into from Jan 10, 2019

Conversation

Projects
None yet
5 participants
@danimtb
Copy link
Member

commented Dec 24, 2018

Changelog: Feature: Added support for new architecture ppc32
Changelog: Feature: Added support for new architecture armv8.3
Changelog: Feature: Added support for new architecture armv8_32

Docs: conan-io/docs#1001

  • Refer to the issue that supports this Pull Request: closes #4184 closes #4134 closes #3961
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.

@danimtb danimtb added this to the 1.12 milestone Dec 24, 2018

@ghost ghost assigned danimtb Dec 24, 2018

@ghost ghost added the stage: review label Dec 24, 2018

@memsharded
Copy link
Contributor

left a comment

Maybe the most important part of this change is the docs, that reflects and define the architectures.

Show resolved Hide resolved conans/client/generators/b2.py
Show resolved Hide resolved conans/client/tools/oss.py Outdated

@danimtb danimtb assigned memsharded and unassigned danimtb Dec 27, 2018

@ghost ghost assigned danimtb Dec 27, 2018

@danimtb danimtb changed the title Feature/new archs Adds new architectures: ppc32, armv8_32 and armv8.3 Dec 27, 2018

@danimtb danimtb removed their assignment Dec 27, 2018

@danimtb

This comment has been minimized.

Copy link
Member Author

commented Dec 31, 2018

There is no place in docs where the settings are documented and this PR does not affect build helpers/generators so I don't if docs are needed @memsharded

@lasote

This comment has been minimized.

Copy link
Contributor

commented Jan 2, 2019

I would add an architecture reference at https://docs.conan.io/en/latest/reference/config_files/settings.yml.html
There you can explain the matches between different names and the AArch32 / AArch64 instructions set etc.

@lasote

lasote approved these changes Jan 2, 2019

Copy link
Contributor

left a comment

Everything looks good. But add the docs, an arch reference is more than needed.
Solve conflicts.

@danimtb

This comment has been minimized.

Copy link
Member Author

commented Jan 3, 2019

Added docs!

@danimtb danimtb removed their assignment Jan 3, 2019

@SSE4

This comment has been minimized.

Copy link
Contributor

commented Jan 5, 2019

please update apple.py with new architectures as well, it needs mapping of conan arch -> apple arch (as apple clang compiler wants -arch name with its own arch naming)

@danimtb

This comment has been minimized.

Copy link
Member Author

commented Jan 9, 2019

Yes, I am missing the changes in apple tools for arch conversion

@ghost ghost assigned danimtb Jan 9, 2019

@danimtb danimtb removed their assignment Jan 9, 2019

@memsharded
Copy link
Contributor

left a comment

Ok for me, but lets get @lasote final approval.

@memsharded memsharded assigned lasote and unassigned memsharded Jan 9, 2019

@ghost ghost assigned danimtb Jan 9, 2019

@danimtb danimtb removed their assignment Jan 9, 2019

@danimtb danimtb requested a review from SSE4 Jan 9, 2019

@memsharded

This comment has been minimized.

Copy link
Contributor

commented Jan 9, 2019

Related #4260

@danimtb

This comment has been minimized.

Copy link
Member Author

commented Jan 9, 2019

@lasote review and merge when possible. Thanks!

@lasote

lasote approved these changes Jan 10, 2019

@lasote lasote merged commit 23683d1 into conan-io:develop Jan 10, 2019

2 checks passed

continuous-integration/jenkins/pr-head This commit looks good
Details
license/cla Contributor License Agreement is signed.
Details

@ghost ghost removed the stage: review label Jan 10, 2019

NoWiseMan added a commit to NoWiseMan/conan that referenced this pull request Jan 11, 2019

Adds new architectures: ppc32, armv8_32 and armv8.3 (conan-io#4195)
* new archs in settings.yaml

* Added new archs to migration

* Update migration to original settings.yml

* Updated b2 generator with new archs

* pure review of b2 generator

* Added new archs to get_gnu_triplet()

* revert changes on b2 generator

* review

* Back to aaarch64 and link for ilp32 clarification

* Conversion to apple arch

* added armv8.3 to get_gnu_triplet()

NoWiseMan added a commit to NoWiseMan/conan that referenced this pull request Jan 11, 2019

Adds new architectures: ppc32, armv8_32 and armv8.3 (conan-io#4195)
* new archs in settings.yaml

* Added new archs to migration

* Update migration to original settings.yml

* Updated b2 generator with new archs

* pure review of b2 generator

* Added new archs to get_gnu_triplet()

* revert changes on b2 generator

* review

* Back to aaarch64 and link for ilp32 clarification

* Conversion to apple arch

* added armv8.3 to get_gnu_triplet()

lasote added a commit that referenced this pull request Feb 26, 2019

add new arch [armv5el, armv5hf] (#4260)
* add new arch [armv5el, armv5hf]

- armv5el -> armv5 soft-float
- armv5hf -> armv5 hard-float

There are still many devices based on these architectures especially embedded devices like Danelec devices, Synology etc...

*  support for armv5el, armv5hf

- made changes to b2 generator
- add tests

* Feature/deterministic short paths (#4238)

* Add sha256 helper function

* Implement hashed_redirect

Generate deterministic short paths. This makes it possible to re-use the
compilation cache database after the re-installation of conan packages.

Resolves #3971

* Write the full path to the Conan cache in the shortened directory.

Resolves #3971

* Adds new architectures: ppc32, armv8_32 and armv8.3 (#4195)

* new archs in settings.yaml

* Added new archs to migration

* Update migration to original settings.yml

* Updated b2 generator with new archs

* pure review of b2 generator

* Added new archs to get_gnu_triplet()

* revert changes on b2 generator

* review

* Back to aaarch64 and link for ilp32 clarification

* Conversion to apple arch

* added armv8.3 to get_gnu_triplet()

* feature/enabling environment variables unset action (#4224)

* Enabling the possibility of unsetting variables by means of appending such variable with value equal to None. Tests covering tools.env.environment_append have been included

* Fixing PEP8 line width requirement

* Fixing PEP8 line width requirement

* Fixing path separator used in the unit test considering its os-dependant value

* Fixing how the env_vars dictionary is being modified. Instead of removing values on-the-fly, It is previourly checked which should be removed by iterating on the keys.

* Fixing how the env_vars dictionary is being modified again. Iterating on keys didn't work enough and now it is decoupled the iteration by using the keys that should be removed and were previously stored

* Fix. Setting all the variables to None (unsetting all of them) effectively removes them from environment.

- Applying changes needed.
- Adding regression test.
- Adding additional test covering the case where no variables are asked to be removed (empty dict).
- Improve tests naming.

* Removed versions (#4267)

* Fixed bug with cached default profile (#4256)

* Fixed bug

* Docstring

* removed caching in client_cache of settings and profile

* Feature: link editable packages (#4181)

* first try

* fix includes

* minor changes

* more import fixes

* fix more imports

* short path as decorator

* move SimplePaths to conans/paths/simple_paths.py

* move back constants to conans.paths

* moving folders to conans.paths

* remove diffs caused just by ordering of imports

* remove diffs caused just by ordering of imports

* no diffs

* no diff

* move is_case_insensitive_os to conans.paths

* add rm_conandir to windows imports

* move package_layouts to paths

* fix imports

* move LINKED_FOLDER_SENTINEL to conans.paths.__init__.py

* move 'get_package_layout' to 'SimplePaths'

* get rid of PackageBaseLayout, go for duck typing

* add parser for the file that will contain paths to includes, res, bins, libs,...

* rename PackageUserLayout > PackageEditableLayout

* interface for installed_as_editable info

* test with a header only editable package

* working example for header only lib

* add test for a library with settings and options (still header only)

* fix py2 test (declare string in source as unicode)

* change import to avoid conans.tools one, so we need to mock a different function

* make it compatible for win/linux

* create the editable file sentinel using --editable argument in install command

* add needed functions to simple_paths

* add helper functions to simple paths

* add package_metadata to new layouts

* add missing named var (something went wrong merging from develop)

* remove lines, not anymore there

* add package metadata to users one

* handle error: package folders needs a ConanFileReference

* reorder imports

* add missing import

* reorder imports

* if an editable package is dirty, log an error

* moved parser to conan_file

* move parsing for conan_package_layout closer to the ConanFile, we will be able to change it in the future

* placeholders should be preprended with settings|options

* fix typos, remove unused code

* fix bug/typo

* order imports

* remove unreachable code

* remove unreachable code

* remove comments

* move unittests to its folder

* install as editable (requires the package to be already in the cache)

* declare tests

* refactor the editable hack: rely on member attribute

* move imports

* rename file to match class name

* notify user about editable condition

* gather logic together

* make it editable from the very beginning, we don't care if it is editable or not

* any error will require us to delete the editable flag

* add tests

* add tests related to editable package removal

* rename tests

* add test for other commands

* add tests for conan commands

* Update conans/test/command/editable_reference/create_editable_package_test.py

Co-Authored-By: jgsogo <jgsogo@gmail.com>

* add changes from review

* move tests to final location

* remove unused var

* change variable name (it was a py conanfile)

* don0t care about the output, but check something

* remove comments

* add tests installing an editable package (and installing its dependencies)

* remove unused import

* move cpp_info overrides to an standalone model

* minor changes related to reviews

* mode create/remove editables to client_cache class

* renamed test folder

* remove code related to 'install --editable'

* link/unlink editable packages

* consider these tests

* handle remove command on editable

* adapt message

* removal is on its own test

* check after unlink

* add tests using linked packages

* add tests for several commands

* fix test related to utf8 and ordering

* apply ordering

* remove prints

* putting path between quotes seems to solve windows issue

* review (add more checks in tests)

* function changed its name

* no import in __init__.py

* remove installed as editable

* order is not guaranteed on info command output

* no need for os.path.join

* move EDITABLE before locking package layout

* no different behaviour for update

* new model for editable_cpp_info

* check that cache file has more priority than the repo one

* review

* remove test, it is accepted behaviour now

* review

* revert change, this line is needed to pass tests in Windows

* weird substitution is not needed, but path normalization is

* inform about link removal

* use conditional 'strict' arg when reusing cache for several TestClients

* pass string to conan_api, build ConanFileReference inside it

* add tests case for editable package without files, it will use package_info data

* remove unused import

* remove uneeded command

* get the path to the conanfile.py from the argument to 'link' command inside the 'conan_api'

* remove 'EditableCppInfo.create', rename loader ones to 'load(file...)' and 'loads(teext...)'

* rename func argument

* move CONAN_PACKAGE_LAYOUT_FILE to conans/paths

* reorder variables inside file

* renamed variables

* pep8

* not using revisions in editable nodes, fix ordering issue

* rename variables

* fixing version ranges with spaces (#4273)

* fixing version ranges with spaces

* fix broken test

* simplified testing

* more error cases

* [WIP] Rename common variables to conventional ones (#4272)

* rename internal member 'PackageReference.conan' to 'PackageReference.ref'

* rename internal member 'PackageReference.conan' to 'PackageReference.ref'

* working on ConanFileRefs

* working on ConanFileRefs

* working on PackageReference

* working on ClientCache

* back to ConanFileReference

* rename member 'Node::conan_ref'

* rename member 'PythonRequires::conan_ref'

* renaming vars in comments, docs,...

* lost references

* remove duplicated uneeded conversion to str

* some loose fringes

* minor fix, review by @lasote #4272

* rename PackageReference::package_id' to 'PackageReference::id'

* loose fringes

*  support for armv5el, armv5hf

- made changes to b2 generator
- add tests

* add handling for arm5hf to get_gnu_triplet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.