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

nspr: bump + modernize + no tools.os_info in build_requirements #7212

Merged
merged 10 commits into from
Mar 7, 2022

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Sep 8, 2021

Specify library name and version: nspr/1.0


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@madebr
Copy link
Contributor Author

madebr commented Sep 8, 2021

@timblechmann
When building nspr for Apple M1, the build script detects CPU_ARCH=ppc.
Since you committed #4770 (and own a Mac), can you take a look at the apple failure?

config.log is printed out in the build logs of https://c3i.jfrog.io/c3i/misc/summary.html?json=https://c3i.jfrog.io/c3i/misc/logs/pr/7212/2-configs/macos-m1-clang/nspr/4.27//summary.json
It shows CPU_ARCH='ppc'

(Also CC'ing @SpaceIm because he owns a Mac)

@timblechmann
Copy link
Contributor

hi @madebr: unfortunately i don't have access to an m1 (i had only ssh-ed into one for a project last year.

that said: older nspr versions don't build on apple silicon: it is only supported since 4.29. but i guess you could try to backport the patches listed in https://bugzilla.mozilla.org/show_bug.cgi?id=1658671

os.rename(extracted_dir, self._source_subfolder)
tools.rmdir(os.path.join("nspr-" + self.version))
tools.get(**self.conan_data["sources"][self.version],
destination="tmp", strip_root=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feature request? strip_root=2

Copy link
Member

@uilianries uilianries Sep 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worth an issue

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fill a feature request to conan client

prince-chrismc
prince-chrismc previously approved these changes Sep 16, 2021
@SSE4 SSE4 closed this Sep 25, 2021
@SSE4 SSE4 reopened this Sep 25, 2021
@SSE4 SSE4 closed this Sep 26, 2021
@SSE4 SSE4 reopened this Sep 26, 2021
@prince-chrismc
Copy link
Contributor

You'll need to retrigger CI, close the pr wait 10s and then re-open it 🔁

@madebr madebr closed this Oct 7, 2021
@madebr madebr reopened this Oct 7, 2021
@jgsogo
Copy link
Contributor

jgsogo commented Oct 11, 2021

Something is wrong with this PR. The CI has been running for 4 days. No output so far. We need to check it carefully.

@jgsogo jgsogo added the infrastructure Waiting on tools or services belonging to the infra label Oct 11, 2021
This was referenced Oct 28, 2021
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@SSE4 SSE4 force-pushed the nspr_tools_os_info branch from 6a8c9b5 to d25fdb1 Compare February 21, 2022 09:12
@conan-center-bot

This comment has been minimized.

uilianries
uilianries previously approved these changes Feb 24, 2022
@uilianries uilianries self-requested a review February 24, 2022 09:19
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

SSE4 added 4 commits March 4, 2022 22:55
Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 16 (a048ad62a06dd9c8bdfecb1e886b8068ca9ee9fd):

  • nspr/4.24@:
    All packages built successfully! (All logs)

  • nspr/4.32@:
    All packages built successfully! (All logs)

  • nspr/4.27@:
    All packages built successfully! (All logs)

  • nspr/4.29@:
    All packages built successfully! (All logs)

Comment on lines +90 to 99
"--with-mozilla={}".format(yes_no(self.options.with_mozilla)),
"--enable-64bit={}".format(yes_no(self.settings.arch in ("armv8", "x86_64", "mips64", "ppc64", "ppc64le"))),
"--enable-strip={}".format(yes_no(self.settings.build_type not in ("Debug", "RelWithDebInfo"))),
"--enable-debug={}".format(yes_no(self.settings.build_type == "Debug")),
"--datarootdir={}".format(tools.unix_path(os.path.join(self.package_folder, "res"))),
"--disable-cplus",
"--enable-64bit" if self.settings.arch in ("armv8", "x86_64") else "--disable-64bit",
"--disable-strip" if self.settings.build_type == "RelWithDebInfo" else "--enable-strip",
"--enable-debug" if self.settings.build_type == "Debug" else "--disable-debug",
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are dupicated opions here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a merge artifact

Comment on lines +103 to +104
"--enable-static-rtl={}".format(yes_no("MT" in self.settings.compiler.runtime)),
"--enable-debug-rtl={}".format(yes_no("d" in self.settings.compiler.runtime)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"--enable-static-rtl={}".format(yes_no("MT" in self.settings.compiler.runtime)),
"--enable-debug-rtl={}".format(yes_no("d" in self.settings.compiler.runtime)),
"--enable-static-rtl={}".format(yes_no("MT" in msvc_runtime_flag(self))),
"--enable-debug-rtl={}".format(yes_no("d" in msvc_runtime_flag(self))),

@@ -1,35 +1,39 @@
from conans import ConanFile, tools, AutoToolsBuildEnvironment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from conans import ConanFile, tools, AutoToolsBuildEnvironment
from conan.tools.microsoft import msvc_runtime_flag
from conans import ConanFile, tools, AutoToolsBuildEnvironment

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot conan-center-bot merged commit 3fcd880 into conan-io:master Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Waiting on tools or services belonging to the infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants