-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
@timblechmann
(Also CC'ing @SpaceIm because he owns a Mac) |
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worth an issue
There was a problem hiding this comment.
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
You'll need to retrigger CI, close the pr wait 10s and then re-open it 🔁 |
Something is wrong with this PR. The CI has been running for 4 days. No output so far. We need to check it carefully. |
This comment has been minimized.
This comment has been minimized.
be1f33a
to
6a8c9b5
Compare
This comment has been minimized.
This comment has been minimized.
6a8c9b5
to
d25fdb1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
… function (https://www-archive.mozilla.org/projects/nspr/reference/html/prinit.html#15758) Signed-off-by: SSE4 <tomskside@gmail.com>
Signed-off-by: SSE4 <tomskside@gmail.com>
This reverts commit 0a8b084.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
"--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", | ||
] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
"--enable-static-rtl={}".format(yes_no("MT" in self.settings.compiler.runtime)), | ||
"--enable-debug-rtl={}".format(yes_no("d" in self.settings.compiler.runtime)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"--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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from conans import ConanFile, tools, AutoToolsBuildEnvironment | |
from conan.tools.microsoft import msvc_runtime_flag | |
from conans import ConanFile, tools, AutoToolsBuildEnvironment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Specify library name and version: nspr/1.0
conan-center hook activated.