ktgw0316 / LightZone

LightZone is a photo editor for Mac, Windows, and Linux.
BSD 3-Clause "New" or "Revised" License
324 stars 50 forks source link

Offline build is needed for package builders #303

Closed yurivict closed 1 year ago

yurivict commented 1 year ago

Is your feature request related to a problem? Please describe. We need to be able to build LightZone offline in a VM that isn't connected to the Internet. This is because package builders don't allow downloads during build.

Describe the solution you'd like The build should accept pre-downloaded dependency files.

Describe alternatives you've considered n/a

What I've tried Pre-download files like annotations-24.0.1.pom and annotations-24.0.1.jar into lightcrafts/lib/ before build but the build still tries to download them:

download-ivy:
      [get] Getting: file:/portdistfiles/lightzone/ivy-2.5.0.jar
      [get] To: /wrkdirs/usr/ports/graphics/lightzone/work/LightZone-5.0.0beta1/lightcrafts/lib/ivy.jar
[ivy:resolve] :: Apache Ivy 2.5.0 - 20191020104435 :: https://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /wrkdirs/usr/ports/graphics/lightzone/work/LightZone-5.0.0beta1/lightcrafts/ivysettings.xml
[ivy:resolve] :: resolving dependencies :: lightcrafts#lightcrafts;working@localhost
[ivy:resolve]   confs: [default]
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] :: resolution report :: resolve 335ms :: artifacts dl 0ms
    ---------------------------------------------------------------------
    |                  |            modules            ||   artifacts   |
    |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
    ---------------------------------------------------------------------
    |      default     |   8   |   0   |   0   |   0   ||   0   |   0   |
    ---------------------------------------------------------------------
[ivy:resolve] 
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/jetbrains/annotations/24.0.1/annotations-24.0.1.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/jetbrains/annotations/24.0.1/annotations-24.0.1.jar
[ivy:resolve]       module not found: org.jetbrains#annotations;24.0.1
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/org/jetbrains/annotations/24.0.1/annotations-24.0.1.pom
[ivy:resolve]     -- artifact org.jetbrains#annotations;24.0.1!annotations.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/org/jetbrains/annotations/24.0.1/annotations-24.0.1.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/org/jetbrains/annotations/24.0.1/annotations-24.0.1.pom
[ivy:resolve]     -- artifact org.jetbrains#annotations;24.0.1!annotations.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/org/jetbrains/annotations/24.0.1/annotations-24.0.1.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/ejml/ejml-simple/0.40/ejml-simple-0.40.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/ejml/ejml-simple/0.40/ejml-simple-0.40.jar
[ivy:resolve]       module not found: org.ejml#ejml-simple;0.40
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/org/ejml/ejml-simple/0.40/ejml-simple-0.40.pom
[ivy:resolve]     -- artifact org.ejml#ejml-simple;0.40!ejml-simple.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/org/ejml/ejml-simple/0.40/ejml-simple-0.40.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/org/ejml/ejml-simple/0.40/ejml-simple-0.40.pom
[ivy:resolve]     -- artifact org.ejml#ejml-simple;0.40!ejml-simple.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/org/ejml/ejml-simple/0.40/ejml-simple-0.40.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/formdev/flatlaf/3.1.1/flatlaf-3.1.1.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/formdev/flatlaf/3.1.1/flatlaf-3.1.1.jar
[ivy:resolve]       module not found: com.formdev#flatlaf;3.1.1
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/com/formdev/flatlaf/3.1.1/flatlaf-3.1.1.pom
[ivy:resolve]     -- artifact com.formdev#flatlaf;3.1.1!flatlaf.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/com/formdev/flatlaf/3.1.1/flatlaf-3.1.1.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/com/formdev/flatlaf/3.1.1/flatlaf-3.1.1.pom
[ivy:resolve]     -- artifact com.formdev#flatlaf;3.1.1!flatlaf.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/com/formdev/flatlaf/3.1.1/flatlaf-3.1.1.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/formdev/flatlaf-intellij-themes/3.1.1/flatlaf-intellij-themes-3.1.1.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/formdev/flatlaf-intellij-themes/3.1.1/flatlaf-intellij-themes-3.1.1.jar
[ivy:resolve]       module not found: com.formdev#flatlaf-intellij-themes;3.1.1
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/com/formdev/flatlaf-intellij-themes/3.1.1/flatlaf-intellij-themes-3.1.1.pom
[ivy:resolve]     -- artifact com.formdev#flatlaf-intellij-themes;3.1.1!flatlaf-intellij-themes.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/com/formdev/flatlaf-intellij-themes/3.1.1/flatlaf-intellij-themes-3.1.1.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/com/formdev/flatlaf-intellij-themes/3.1.1/flatlaf-intellij-themes-3.1.1.pom
[ivy:resolve]     -- artifact com.formdev#flatlaf-intellij-themes;3.1.1!flatlaf-intellij-themes.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/com/formdev/flatlaf-intellij-themes/3.1.1/flatlaf-intellij-themes-3.1.1.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-font_awesome/4.7.0.0/jiconfont-font_awesome-4.7.0.0.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-font_awesome/4.7.0.0/jiconfont-font_awesome-4.7.0.0.jar
[ivy:resolve]       module not found: com.github.jiconfont#jiconfont-font_awesome;4.7.0.0
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/com/github/jiconfont/jiconfont-font_awesome/4.7.0.0/jiconfont-font_awesome-4.7.0.0.pom
[ivy:resolve]     -- artifact com.github.jiconfont#jiconfont-font_awesome;4.7.0.0!jiconfont-font_awesome.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/com/github/jiconfont/jiconfont-font_awesome/4.7.0.0/jiconfont-font_awesome-4.7.0.0.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-font_awesome/4.7.0.0/jiconfont-font_awesome-4.7.0.0.pom
[ivy:resolve]     -- artifact com.github.jiconfont#jiconfont-font_awesome;4.7.0.0!jiconfont-font_awesome.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-font_awesome/4.7.0.0/jiconfont-font_awesome-4.7.0.0.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-google_material_design_icons/2.2.0.2/jiconfont-google_material_design_icons-2.2.0.2.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-google_material_design_icons/2.2.0.2/jiconfont-google_material_design_icons-2.2.0.2.jar
[ivy:resolve]       module not found: com.github.jiconfont#jiconfont-google_material_design_icons;2.2.0.2
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/com/github/jiconfont/jiconfont-google_material_design_icons/2.2.0.2/jiconfont-google_material_design_icons-2.2.0.2.pom
[ivy:resolve]     -- artifact com.github.jiconfont#jiconfont-google_material_design_icons;2.2.0.2!jiconfont-google_material_design_icons.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/com/github/jiconfont/jiconfont-google_material_design_icons/2.2.0.2/jiconfont-google_material_design_icons-2.2.0.2.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-google_material_design_icons/2.2.0.2/jiconfont-google_material_design_icons-2.2.0.2.pom
[ivy:resolve]     -- artifact com.github.jiconfont#jiconfont-google_material_design_icons;2.2.0.2!jiconfont-google_material_design_icons.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-google_material_design_icons/2.2.0.2/jiconfont-google_material_design_icons-2.2.0.2.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-swing/1.0.1/jiconfont-swing-1.0.1.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-swing/1.0.1/jiconfont-swing-1.0.1.jar
[ivy:resolve]       module not found: com.github.jiconfont#jiconfont-swing;1.0.1
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/com/github/jiconfont/jiconfont-swing/1.0.1/jiconfont-swing-1.0.1.pom
[ivy:resolve]     -- artifact com.github.jiconfont#jiconfont-swing;1.0.1!jiconfont-swing.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/com/github/jiconfont/jiconfont-swing/1.0.1/jiconfont-swing-1.0.1.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-swing/1.0.1/jiconfont-swing-1.0.1.pom
[ivy:resolve]     -- artifact com.github.jiconfont#jiconfont-swing;1.0.1!jiconfont-swing.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/com/github/jiconfont/jiconfont-swing/1.0.1/jiconfont-swing-1.0.1.jar
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.26/lombok-1.18.26.pom
[ivy:resolve]   Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.26/lombok-1.18.26.jar
[ivy:resolve]       module not found: org.projectlombok#lombok;1.18.26
[ivy:resolve]   ==== osgeo: tried
[ivy:resolve]     file:///portdistfiles/lightzone/org/projectlombok/lombok/1.18.26/lombok-1.18.26.pom
[ivy:resolve]     -- artifact org.projectlombok#lombok;1.18.26!lombok.jar:
[ivy:resolve]     file:///portdistfiles/lightzone/org/projectlombok/lombok/1.18.26/lombok-1.18.26.jar
[ivy:resolve]   ==== ibiblio: tried
[ivy:resolve]     https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.26/lombok-1.18.26.pom
[ivy:resolve]     -- artifact org.projectlombok#lombok;1.18.26!lombok.jar:
[ivy:resolve]     https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.26/lombok-1.18.26.jar
[ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]       ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]       :: org.jetbrains#annotations;24.0.1: not found
[ivy:resolve]       :: org.ejml#ejml-simple;0.40: not found
[ivy:resolve]       :: com.formdev#flatlaf;3.1.1: not found
[ivy:resolve]       :: com.formdev#flatlaf-intellij-themes;3.1.1: not found
[ivy:resolve]       :: com.github.jiconfont#jiconfont-font_awesome;4.7.0.0: not found
[ivy:resolve]       :: com.github.jiconfont#jiconfont-google_material_design_icons;2.2.0.2: not found
[ivy:resolve]       :: com.github.jiconfont#jiconfont-swing;1.0.1: not found
[ivy:resolve]       :: org.projectlombok#lombok;1.18.26: not found
[ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/wrkdirs/usr/ports/graphics/lightzone/work/LightZone-5.0.0beta1/linux/build.xml:37: The following error occurred while executing this line:
/wrkdirs/usr/ports/graphics/lightzone/work/LightZone-5.0.0beta1/lightcrafts/build.xml:63: impossible to resolve dependencies:
    resolve failed - see output for details

Total time: 1 second
*** Error code 1

Additional context In FreeBSD, Redhat, Ununtu and many other distros package builders are disconnected for security reasons.

hfiguiere commented 1 year ago

This will also be a problem in case someone decide to make a flatpak.

ktgw0316 commented 1 year ago

Is this issue already fixed by adding -Dno-ivy=true -Dno-submodule=true for ant option?

hfiguiere commented 1 year ago

It seems to work. Albeit it was complaining about the lack of javahelp2.

hfiguiere commented 1 year ago

It seems to work. Albeit it was complaining about the lack of javahelp2.

The submission as a flatpak to show it does work with offline builds https://github.com/flathub/flathub/pull/4525

ktgw0316 commented 1 year ago

Closed due to lack of response from OP.