Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Ebuild downloading old tar.gz
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Nima0908
n00b
n00b


Joined: 24 Feb 2025
Posts: 44

PostPosted: Sun Sep 14, 2025 9:38 pm    Post subject: [Solved] Ebuild downloading old tar.gz Reply with quote

Hello,
i recently updated SuperSlicer with some fixes to work on gentoo, and the source compiles fine, but when i use my custom ebuild to download and build it from my repo, it fails in a place where it would without the fixes i applied. I already copied the link out of the ebuild and downloaded the tarball manually, but there its fine and has the updated cmake. Does somebody know how to fix it. Here is the cmake (its not finished yet, some deps may be missing):

Code:

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

WX_GTK_VER="3.2-gtk3"
MY_PN="SuperSlicer"
SLICER_PROFILES_COMMIT="ca25c7ec55dcc6073da61e39692c321cdb6497dc"

inherit cmake wxwidgets xdg flag-o-matic

DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
HOMEPAGE="https://github.com/supermerill/SuperSlicer/"
SRC_URI="
   https://github.com/Nima0908/SuperSlicer/archive/refs/tags/${P}.tar.gz -> ${P}.tar.gz
   https://github.com/slic3r/slic3r-profiles/archive/${SLICER_PROFILES_COMMIT}.tar.gz -> ${P}-profiles.tar.gz
"
S="${WORKDIR}/${MY_PN}-${PV}"

LICENSE="AGPL-3 Boost-1.0 GPL-2 LGPL-3 MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="test"
RESTRICT="test"

# No dep on sci-libs/libigl, in-tree version cannot build
# static library currently. Using bundled one.
RDEPEND="
   dev-cpp/eigen
   dev-libs/boost
   dev-libs/cereal
   dev-libs/expat
   dev-libs/glib
   media-gfx/openvdb
   net-misc/curl
   media-libs/libpng
   media-libs/qhull
   sci-libs/nlopt
   sci-libs/opencascade
   sci-mathematics/cgal
   sys-apps/dbus
   sys-libs/zlib
   virtual/glu
   virtual/opengl
   x11-libs/gtk+
   x11-libs/wxGTK
"

src_unpack() {
   default

   mv slic3r-profiles-*/* "${S}"/resources/profiles/ || die
}

src_configure() {
   CMAKE_BUILD_TYPE="Release"

   append-flags -fno-strict-aliasing

   setup-wxwidgets

   local mycmakeargs=(

      -DSLIC3R_FHS=ON
      -DSLIC3R_GTK=3
      -DSLIC3R_GUI=ON
      -DSLIC3R_PCH=OFF
      -DSLIC3R_STATIC=OFF
      -DSLIC3R_WX_STABLE=ON
      -Wno-dev
   )

   cmake_src_configure
}

src_install() {
   cmake_src_install

   rm "${ED}/usr/lib/udev/rules.d/90-3dconnexion.rules" || die
}



(this is updated from the old ebuild for superslicer, i didnt change the comments yet, ignore them)

Thanks for your help. If you need more informations, ill be happy to supply them.


Last edited by Nima0908 on Sun Sep 21, 2025 1:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23811

PostPosted: Sun Sep 14, 2025 10:30 pm    Post subject: Reply with quote

If you unpack the tar file downloaded by the ebuild, are your fixes present? Since you named the tar file from $P, if your ebuild has the same name as the ::gentoo package, then your ebuild may be reusing the tar file downloaded by the ::gentoo ebuild, which would be from the original (bad) upstream.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9652
Location: beyond the rim

PostPosted: Wed Sep 17, 2025 9:10 am    Post subject: Reply with quote

a) Verify that portage is really using your ebuild (e.g. add an elog statement in src_unpack)
b) I would recommend to use a different filename for the tarball than the original ebuild as that will very likely lead to problems and confusion otherwise.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3239

PostPosted: Wed Sep 17, 2025 9:49 am    Post subject: Reply with quote

If portage finds a file with the same name in the dstfiles cache, it uses it. You need to delete it and regenerate the manifest.

Also you can apply your fixes in the tempdir and use ebuild command to compile the sources. Once you're finished with the fixes, you can apply them in the dist file. Have in mind that certain amount of work has already been done in the tempdir and your changes might not be picked up.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Nima0908
n00b
n00b


Joined: 24 Feb 2025
Posts: 44

PostPosted: Sun Sep 21, 2025 1:48 pm    Post subject: Reply with quote

Sorry for the late answer, i had lots to do last weak. Cleaning the distfile cach fixed it (i completely forgot i have to do that).
Thank you very much for your help :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum