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

Fix labwc-9999 build failing due to missing libsfdo #112

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

BGazotti
Copy link
Contributor

@BGazotti BGazotti commented Sep 28, 2024

Labwc added support for window icons in labwc/labwc@a745f91, using libsfdo.

That feature is enabled by default and will result in a configure error if that library isn't found.

Commits add a very crude but working ebuild for gui-libs/libsfdo and the 'icons' USE flag to labwc to enable optionally building that feature.

Alternatively, we could just add the libsfdo tarball to the ebuild as an exception for the network sandbox and allow labwc's meson scripts to build and bundle it.

@BGazotti BGazotti changed the title Fix build for labwc-9999 Fix labwc-9999 build failing due to missing libsfdo Sep 28, 2024
@tfemby
Copy link
Contributor

tfemby commented Oct 25, 2024

Second on this because of todays commit labwc/labwc@3a4e0cf which version bumped it up to the version you made for the ebuild you made.

@Sherman5A
Copy link

Also labwc's version has been bumped to 0.8.1 labwc/labwc@6bd36e8 So the versioned ebuilds can also be updated.

@@ -0,0 +1,24 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2-or-later
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be changed to the ISC license as per the licensing policy. Take a look at the main labwc ebuild how it's been done :)

@tfemby
Copy link
Contributor

tfemby commented Jan 4, 2025

Looking through this properly now that I have more time as well, the libsfdo ebuild needs an accompanying metadata.xml.

Testing this locally, I ran pkgcheck scan on this the following came up:

  MissingRemoteId: missing <remote-id type="freedesktop-gitlab">vyivel/libsfdo</remote-id> (inferred from URI 'https://gitlab.freedesktop.org/vyivel/libsfdo')
  BetterCompressionUri: version 0.1.3: line 8: better compression URI using extension '.tar.bz2' for 'https://gitlab.freedesktop.org/vyivel/libsfdo/-/archive/v${PV}/libsfdo-v${PV}.tar.gz'
  EmptyGlobalAssignment: version 0.1.3: line 17: empty global assignment: DEPEND=""

To placate pkgcheck, you could change the .tar.gz to .tar.bz2. The DEPEND and BDEPEND lines aren't necessary so they can simply get removed.

I may also soon send @epsilon-0 an e-mail asking what's happening since this has been a PR for a few months now. I hope they're doing ok.

KEYWORDS="~amd64"

DEPEND=""
RDEPEND="${DEPEND}"
Copy link
Contributor

Choose a reason for hiding this comment

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

DEPEND and RDEPEND aren't doing anything so you can get rid of these lines.


DESCRIPTION="A collection of libraries which implement some freedesktop.org specifications"
HOMEPAGE="https://gitlab.freedesktop.org/vyivel/libsfdo"
SRC_URI="https://gitlab.freedesktop.org/vyivel/libsfdo/-/archive/v${PV}/libsfdo-v${PV}.tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

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

pkgcheck is saying that .tar.bz2 is more efficient so it's probably worth grabbing that format.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bz2 is indeed more space-efficient, but decompresses slower. Shouldn't make a difference for such a small file though

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, it's probably the least important out of the 3 things.

use .bz2 distfile for lower disk and network overhead
update license and copyright information
Copy link
Contributor

@tfemby tfemby left a comment

Choose a reason for hiding this comment

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

Everything looks good to me. Thanks for the changes!

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.

3 participants