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

sci-mathematics/octave: bump to version 9.1.0 #36762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

efferre79
Copy link
Contributor

@efferre79 efferre79 commented May 21, 2024

I have added support to Qt6. The IUSE=gui might be removed but I left it to avoid further modifications (e.g. change of mask file for hppa)

Please check all the boxes that apply:

  • I can submit this contribution in agreement with the Copyright Policy.
  • I have certified the above via adding a Signed-off-by line to every commit in the pull request.
  • This contribution has not been created with the assistance of Natural Language Processing artificial intelligence tools, in accordance with the AI policy.
  • I have run pkgcheck scan --commits --net to check for issues with my commits.

Please note that all boxes must be checked for the pull request to be merged.

- Added support to Qt6
- Added support to sci-libs/klu
- Added support to sci-libs/spqr

Bug: https://bugs.gentoo.org/918123
Signed-off-by: Fabio Rossi <[email protected]>
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @efferre79
Areas affected: ebuilds
Packages affected: sci-mathematics/octave

sci-mathematics/octave: @gentoo/sci-mathematics

Linked bugs

Bugs linked: 918123


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels May 21, 2024
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-05-21 18:10 UTC
Newest commit scanned: d59fc0a
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/bc963aa639/output.html

@AndrewAmmerlaan AndrewAmmerlaan self-assigned this Jun 19, 2024
Copy link
Member

@AndrewAmmerlaan AndrewAmmerlaan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, sorry for the delay. This looks mostly good to me, but it needs some changes to adhere to the Qt packaging policy.

And I see that in the meantime there is already a 9.2 release, so lets skip 9.1 and go immediately for 9.2.

# will probably make sense to merge USE=opengl and USE=X into USE=qt[56],
# dropping USE=fltk entirely.
REQUIRED_USE="
?? ( qt5 qt6 )
Copy link
Member

Choose a reason for hiding this comment

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

Per Qt packaging policy we should not introduce the qt5 flag and REQUIRED_USE here.

Instead we should add only the qt6 flag, if enabled gui is built with qt6, otherwise it is built with qt5.

# will probably make sense to merge USE=opengl and USE=X into USE=qt[56],
# dropping USE=fltk entirely.
REQUIRED_USE="
?? ( qt5 qt6 )
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
?? ( qt5 qt6 )

>=media-gfx/fig2dev-3.2.9-r1
)
gui? (
qt5? (
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
qt5? (
!qt6? (

SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"

IUSE="curl doc fftw fltk +glpk gnuplot gui hdf5 imagemagick java json klu opengl portaudio postscript +qhull +qrupdate +qt5 qt6 readline sndfile +sparse spqr ssl sundials X zlib"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
IUSE="curl doc fftw fltk +glpk gnuplot gui hdf5 imagemagick java json klu opengl portaudio postscript +qhull +qrupdate +qt5 qt6 readline sndfile +sparse spqr ssl sundials X zlib"
IUSE="curl doc fftw fltk +glpk gnuplot gui hdf5 imagemagick java json klu opengl portaudio postscript +qhull +qrupdate qt6 readline sndfile +sparse spqr ssl sundials X zlib"

Comment on lines +27 to +28
# would want to use them in octave. In any case, upstream doesn't really
# support imagemagick, only graphicsmagick (bug 864785).
Copy link
Member

Choose a reason for hiding this comment

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

Is this still the case? I find the graphicsmagick/imagemagick situation here a bit confusing.

Comment on lines +139 to +140
qt5? ( gui )
qt6? ( gui )
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
qt5? ( gui )
qt6? ( gui )

Comment on lines +168 to +185
if use qt5 ; then
export MOC="$(qt5_get_bindir)/moc" \
UIC="$(qt5_get_bindir)/uic" \
RCC="$(qt5_get_bindir)/rcc" \
LRELEASE="$(qt5_get_bindir)/lrelease" \
QCOLLECTIONGENERATOR="$(qt5_get_bindir)/qcollectiongenerator" \
QHELPGENERATOR="$(qt5_get_bindir)/qhelpgenerator"
gui_with="--with-qt=5"
elif use qt6 ; then
export MOC="$(qt6_get_bindir)/../libexec/moc" \
UIC="$(qt6_get_bindir)/../libexec/uic" \
RCC="$(qt6_get_bindir)/../libexec/rcc" \
LRELEASE="$(qt6_get_bindir)/lrelease" \
QHELPGENERATOR="$(qt6_get_bindir)/../libexec/qhelpgenerator"
gui_with="--with-qt=6"
else
gui_with="--without-qt"
fi
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if use qt5 ; then
export MOC="$(qt5_get_bindir)/moc" \
UIC="$(qt5_get_bindir)/uic" \
RCC="$(qt5_get_bindir)/rcc" \
LRELEASE="$(qt5_get_bindir)/lrelease" \
QCOLLECTIONGENERATOR="$(qt5_get_bindir)/qcollectiongenerator" \
QHELPGENERATOR="$(qt5_get_bindir)/qhelpgenerator"
gui_with="--with-qt=5"
elif use qt6 ; then
export MOC="$(qt6_get_bindir)/../libexec/moc" \
UIC="$(qt6_get_bindir)/../libexec/uic" \
RCC="$(qt6_get_bindir)/../libexec/rcc" \
LRELEASE="$(qt6_get_bindir)/lrelease" \
QHELPGENERATOR="$(qt6_get_bindir)/../libexec/qhelpgenerator"
gui_with="--with-qt=6"
else
gui_with="--without-qt"
fi
if use gui; then
if use qt6; then
export MOC="$(qt6_get_bindir)/../libexec/moc" \
UIC="$(qt6_get_bindir)/../libexec/uic" \
RCC="$(qt6_get_bindir)/../libexec/rcc" \
LRELEASE="$(qt6_get_bindir)/lrelease" \
QHELPGENERATOR="$(qt6_get_bindir)/../libexec/qhelpgenerator"
gui_with="--with-qt=6"
else
export MOC="$(qt5_get_bindir)/moc" \
UIC="$(qt5_get_bindir)/uic" \
RCC="$(qt5_get_bindir)/rcc" \
LRELEASE="$(qt5_get_bindir)/lrelease" \
QCOLLECTIONGENERATOR="$(qt5_get_bindir)/qcollectiongenerator" \
QHELPGENERATOR="$(qt5_get_bindir)/qhelpgenerator"
gui_with="--with-qt=5"
fi
else
gui_with="--without-qt"
fi

--without-libiconv-prefix
--without-libreadline-prefix

${gui_with}
Copy link
Member

Choose a reason for hiding this comment

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

Instead of using a variable, lets put the qt conditionals below the definition of myeconfargs and then we can do myeconfargs+=( --with(out)-qt... ) in the qt conditional block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
4 participants