Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927356 - media-gfx/wings-2.3: version bump
Summary: media-gfx/wings-2.3: version bump
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-20 14:50 UTC by John L. Poole
Modified: 2024-03-29 04:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,86.56 KB, text/x-log)
2024-03-20 14:50 UTC, John L. Poole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2024-03-20 14:50:13 UTC
I wanted to try the current high watermark, 2.3, or wings.  There is contained in the Makefile for the wings project two (2) git clone statements to dependency projects:
 https://github.com/tonyrog/cl.git and https://github.com/dgud/libigl.git

Gentoo's sandbox which prevents lower level fetches causes the git clones to fail.  Reference:  https://devmanual.gentoo.org/general-concepts/sandbox/index.html

Otherwise, I was able to stage the project and successfully compile it on my own by adding dev-util/rebar.
  
Installing wings is not critical for me (as I can do so outside of portage), but I thought I would document what lies ahead for whoever takes up the maintenance of this package, if at all. 

Reproducible: Always

Steps to Reproduce:
1. emerge media-gfx/wings-2.3

Actual Results:  
make[1]: Entering directory '/var/tmp/portage/media-gfx/wings-2.3/work/wings-2.3'
git -c advice.detachedHead=false clone --depth 1 -b 3.3.7 https://github.com/eigenteam/eigen-git-mirror.git _deps/eigen
Cloning into '_deps/eigen'...
fatal: unable to access 'https://github.com/eigenteam/eigen-git-mirror.git/': Could not resolve host: github.com
make[1]: *** [Makefile:150: _deps/eigen] Error 128
make[1]: Leaving directory '/var/tmp/portage/media-gfx/wings-2.3/work/wings-2.3'
make[3]: Nothing to be done for 'common'.
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/var/tmp/portage/media-gfx/wings-2.3/work/wings-2.3'
git -c advice.detachedHead=false clone --depth 1 -b master https://github.com/dgud/libigl.git _deps/libigl
Cloning into '_deps/libigl'...
fatal: unable to access 'https://github.com/dgud/libigl.git/': Could not resolve host: github.com
make[1]: *** [Makefile:144: _deps/libigl] Error 128
make[1]: Leaving directory '/var/tmp/portage/media-gfx/wings-2.3/work/wings-2.3'
make: *** [Makefile:27: opt] Error 2
 [31;01m*[0m ERROR: media-gfx/wings-2.3::local failed (compile phase):
 [31;01m*[0m   emake failed

Expected Results:  
successful build.

Here are the relevent lines from the Makefile[1]:

jlpoole@ryzdesk /usr/local/src/wings $ cat -n Makefile |grep clone
128  GIT_FLAGS = -c advice.detachedHead=false clone --depth 1
jlpoole@ryzdesk /usr/local/src/wings $ cat -n Makefile |grep git
89          git archive --format=tar \
119  CL_REPO = https://github.com/tonyrog/cl.git
120  IGL_REPO = https://github.com/dgud/libigl.git
121  EIGEN_REPO = https://github.com/eigenteam/eigen-git-mirror.git
138          git $(GIT_FLAGS) -b $(CL_VER) $(CL_REPO) _deps/cl
144          git $(GIT_FLAGS) -b $(IGL_VER) $(IGL_REPO) _deps/libigl
150          git $(GIT_FLAGS) -b $(EIGEN_VER) $(EIGEN_REPO) _deps/eigen
jlpoole@ryzdesk /usr/local/src/wings $

Here's my custom ebuild diff:

ryzdesk /var/db/repos/local/media-gfx/wings # diff wings-2.2.6.1.ebuild wings-2.3.ebuild
14c14,21
<
---
> #
> # 3/16/24 jlpoole: rebar3 per Unix build  instructions
> # added sci-libs/libigl because that package is a dependency
> # on something wings brings in and the command it "git clone"
> # which fails for lack of authentication. So we'll bring th
> # package in the Gentoo way so there should not be a need
> # for installing a dependency.
> #
20a28,29
>         >=dev-util/rebar-3
>
23a33
>       sci-libs/libigl
ryzdesk /var/db/repos/local/media-gfx/wings #
Comment 1 John L. Poole 2024-03-20 14:50:58 UTC
Created attachment 888002 [details]
Build log
Comment 2 Mike Gilbert gentoo-dev 2024-03-21 13:25:31 UTC
ebuilds must not fetch sources themselves unless PROPERTIES="live" is set
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-22 08:46:03 UTC
(In reply to Mike Gilbert from comment #2)
> ebuilds must not fetch sources themselves unless PROPERTIES="live" is set

I don't think it's INVALID as a bug? It's a heads-up for a bump which ahsn't happened yet.
Comment 4 John L. Poole 2024-03-22 10:59:34 UTC
(In reply to Sam James from comment #3)
> (In reply to Mike Gilbert from comment #2)
> > ebuilds must not fetch sources themselves unless PROPERTIES="live" is set
> 
> I don't think it's INVALID as a bug? It's a heads-up for a bump which ahsn't
> happened yet.

Sam is correct.  Although there currently is not a maintainer, I just wanted to lay the groundwork in Bug to help whomever might assume the role.  Probably, the upstream owner should be contacted and persuaded not to pull in other repositories in his Makefile.  Thanks Sam.
Comment 5 benoit.dufour 2024-03-28 23:52:18 UTC
> Probably, the upstream owner should be contacted and persuaded not to pull in other repositories in his Makefile.  Thanks Sam.
Actually the makefile can just be patched by the ebuild in order to remove the repositories from the Makefile, and then specific commits or tagged commits of those repositories could be added to the Portage SRC_URI as tar.gz.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-29 04:01:52 UTC
(In reply to benoit.dufour from comment #5)
> > Probably, the upstream owner should be contacted and persuaded not to pull in other repositories in his Makefile.  Thanks Sam.
> Actually the makefile can just be patched by the ebuild in order to remove
> the repositories from the Makefile, and then specific commits or tagged
> commits of those repositories could be added to the Portage SRC_URI as
> tar.gz.

Well, yeah. There's a lot of different options in theory, but what John said is still right. They should be persuaded to not do that.