View previous topic :: View next topic |
Author |
Message |
Nima0908 n00b

Joined: 24 Feb 2025 Posts: 44
|
Posted: Sun Sep 14, 2025 9:38 pm Post subject: [Solved] Ebuild downloading old tar.gz |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23811
|
Posted: Sun Sep 14, 2025 10:30 pm Post subject: |
|
|
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 |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 9652 Location: beyond the rim
|
Posted: Wed Sep 17, 2025 9:10 am Post subject: |
|
|
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 |
|
 |
logrusx Advocate


Joined: 22 Feb 2018 Posts: 3239
|
Posted: Wed Sep 17, 2025 9:49 am Post subject: |
|
|
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 |
|
 |
Nima0908 n00b

Joined: 24 Feb 2025 Posts: 44
|
Posted: Sun Sep 21, 2025 1:48 pm Post subject: |
|
|
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 |
|
 |
|