Skip to content

Conversation

grafikrobot
Copy link
Contributor

Specify library name and version: libui/0.4.1

Migration from Bincrafters to CCI.

WARNING: I'm submitting this even though it fails locally as a basis to point out problems with the downstream dependency chain.


  • 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.

@conan-center-bot

This comment has been minimized.

@grafikrobot
Copy link
Contributor Author

As I feared this failed to build. When I try this locally the the key problem is that it fails to find a appropriate gtk/3.24.24 build available in CCI on the default configuration for Arch Linux with gcc-10. When I try this locally and comparing the settings set I see the following differences between local and remote:

[grafik@Coqui all]$ diff settings-local.txt settings-remote.txt -U 2
--- settings-local.txt  2021-04-16 19:03:01.804000000 -0500
+++ settings-remote.txt 2021-04-16 19:07:16.258033329 -0500
@@ -55,6 +55,4 @@
 jbig:fPIC=True
 jbig:shared=False
-libdeflate:fPIC=True
-libdeflate:shared=False
 libelf:fPIC=True
 libelf:shared=False
@@ -81,17 +79,9 @@
 libtiff:jbig=True
 libtiff:jpeg=libjpeg
-libtiff:libdeflate=True
 libtiff:lzma=True
 libtiff:shared=False
-libtiff:webp=True
 libtiff:zlib=True
-libtiff:zstd=True
 libuuid:fPIC=True
 libuuid:shared=False
-libwebp:fPIC=True
-libwebp:near_lossless=True
-libwebp:shared=False
-libwebp:swap_16bit_csp=False
-libwebp:with_simd=True
 libxml2:c14n=True
 libxml2:catalog=True
@@ -165,6 +155,4 @@
 xz_utils:shared=False
 zlib:fPIC=True
-zlib:minizip=deprecated
+zlib:minizip=False
 zlib:shared=False
-zstd:fPIC=True
-zstd:shared=False

Obviously build differences are to be expected from time to time. But in this case what would be the natural client work around to use --build results it the build of one of the dependencies attempting to sudo install a system package. Probably stemming from one of the "*/system" dependencies in this build chain. Something which is clearly not acceptable.

grafikrobot and others added 3 commits April 17, 2021 13:06
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
@conan-center-bot

This comment has been minimized.

@madebr
Copy link
Contributor

madebr commented Apr 17, 2021

Obviously build differences are to be expected from time to time. But in this case what would be the natural client work around to use --build results it the build of one of the dependencies attempting to sudo install a system package. Probably stemming from one of the "*/system" dependencies in this build chain. Something which is clearly not acceptable.

Looking at https://conan.io/center/gtk?version=3.24.24&tab=configuration&os=Linux, I think the gtk package is outdated.
conan.io/center lists zlib:minizip=False where this one looks for zlib:minizip=deprecated.

@@ -0,0 +1,4 @@
sources:
"0.4.1":
Copy link
Contributor

Choose a reason for hiding this comment

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

This version does not match the tag... we typically avoid pre-releases too... but it's barely active 💭

Copy link
Contributor

Choose a reason for hiding this comment

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

According to the tags, there was not a stable release so far. So we might want to interpret alpha4.1 as 0.4.1 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

How about 4.1-alpha?
See https://semver.org/#spec-item-9

Copy link
Contributor Author

@grafikrobot grafikrobot May 8, 2021

Choose a reason for hiding this comment

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

That quote says..

A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version.

Key word is "MAY". I.e. it's not required. And since there was never a 4.1 release, or any other stable version, it seems superfluous to tag it with "-alpha". Although changing it from "0.4.1" to "4.1" could be argued.

But to be honest.. I've essentially given up on CCI. And I would be perfectly fine if this never got merged. So if someone else wants to keep pushing this recipe along, go for it.

Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

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

Might it be a good idea to put this in a subfolder? I see they completely changed the build system so large parts won't be re-used if there's ever a new release or we make a virtual one

grafikrobot and others added 2 commits April 20, 2021 10:57
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@grafikrobot
Copy link
Contributor Author

Locally, with the rebuilt gtk which it downloads, I still get this:

Not updating system_requirements. CONAN_SYSREQUIRES_MODE=verify
Running: sudo pacman -S --noconfirm xtrans

This is for Manjaro, aka ArchLinux.

@conan-center-bot
Copy link
Contributor

All green in build 7 (75880b2572ab9b1e75884a9d52bee68af69a97f8):

  • libui/0.4.1@:
    All packages built successfully! (All logs)

@Croydon
Copy link
Contributor

Croydon commented Apr 20, 2021

This is expected as it requires xorg/system. System packages in its nature do really on system packages, that is also why they should be avoided whenever possible, but that is not reasonably possible in the case of xorg

@SSE4 SSE4 requested a review from uilianries April 21, 2021 06:07
Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

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

LGTM... this one cause use a reviewer with more knowledge =)

@conan-center-bot conan-center-bot merged commit d5786a0 into conan-io:master May 12, 2021
@CroydonBot CroydonBot deleted the libui branch May 12, 2021 09:24
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

Successfully merging this pull request may close these issues.

7 participants