View previous topic :: View next topic |
Author |
Message |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 17, 2025 5:22 pm Post subject: [SOLVED] need help with videosubfinder (install phase) |
|
|
Hello,
This is the ebuild :
Code: | # Copyright 1999-2025 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop ffmpeg-compat
DESCRIPTION="Extract hardcoded subtitles (hardsub) from video"
HOMEPAGE="https://sourceforge.net/p/videosubfinder"
COMMIT="c3d19abbb4080bb378090d676746751b199b46b1"
SRC_URI="https://sourceforge.net/code-snapshots/git/v/vi/${PN}/src.git/${PN}-src-${COMMIT}.zip -> ${P}.zip"
S="$WORKDIR/${PN}-src-${COMMIT}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-cpp/tbb
media-libs/opencv
media-video/ffmpeg-compat:4
x11-libs/wxGTK
"
RDEPEND="${DEPEND}"
BDEPEND="
app-arch/unzip
media-gfx/imagemagick
"
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TYPE="Release"
-DUSE_CUDA="OFF"
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/share
)
ffmpeg_compat_setup 4
ffmpeg_compat_add_flags
mycmakeargs+=(
-DFFMPEG_INCLUDE_DIRS="${SYSROOT}$(ffmpeg_compat_get_prefix 4)"
)
cmake_src_configure
}
src_install() {
cmake_src_install
} |
install phase:
Code: | >>> Install media-video/videosubfinder-6.10 into /var/tmp/portage/media-video/videosubfinder-6.10/image
* Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-video/videosubfinder-6.10/work/videosubfinder-src-c3d19abbb4080bb378090d676746751b199b46b1"
* Build directory (BUILD_DIR): "/var/tmp/portage/media-video/videosubfinder-6.10/work/videosubfinder-src-c3d19abbb4080bb378090d676746751b199b46b1_build"
ninja -v -j5 -l0 install
[0/1] cd /var/tmp/portage/media-video/videosubfinder-6.10/work/videosubfinder-src-c3d19abbb4080bb378090d676746751b199b46b1_build && /usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "RelWithDebInfo"
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/VideoSubFinderWXW
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/tb_stop.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/tb_run.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/tb_pause.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/sb_t.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/sb_rc.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/sb_ra.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/sb_lc.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/sb_la.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/right_od.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/right_na.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/left_od.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/bitmaps/left_na.bmp
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/rus
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/rus/locale.cfg
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/eng
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/eng/locale.cfg
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/chn
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/chn/locale.cfg
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/settings/general.cfg
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/Docs/readme_chn.txt
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/Docs/readme_eng.txt
-- Installing: /var/tmp/portage/media-video/videosubfinder-6.10/image/usr/share/VideoSubFinder/Docs/readme_rus.txt
>>> Completed installing media-video/videosubfinder-6.10 into /var/tmp/portage/media-video/videosubfinder-6.10/image
* Final size of build directory: 12160 KiB (11.8 MiB)
* Final size of installed tree: 2320 KiB ( 2.2 MiB)
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
/usr/share/VideoSubFinder/VideoSubFinderWXW |
Question,
How to make a symlink of /usr/share/VideoSubFinder/VideoSubFinderWXW to /usr/bin/videosubfinder ?
Thanks
Last edited by sdauth on Sat May 24, 2025 8:58 am; edited 1 time in total |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6371 Location: Dallas area
|
Posted: Sat May 17, 2025 5:47 pm Post subject: |
|
|
I would think it would be some variant of dosym (eclass) _________________ UM780 xtx, 6.14 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31745 Location: here
|
Posted: Sat May 17, 2025 5:53 pm Post subject: |
|
|
As Anon-E-moose say use dosym with -r option. _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Last edited by fedeliallalinea on Sat May 17, 2025 6:40 pm; edited 1 time in total |
|
Back to top |
|
 |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 17, 2025 6:40 pm Post subject: |
|
|
Thanks !
Code: | src_install() {
cmake_src_install
dosym -r "/usr/share/VideoSubFinder/VideoSubFinderWXW" "usr/bin/${PN}" || die
} |
Code: | equery f videosubfinder
* Searching for videosubfinder ...
* Contents of media-video/videosubfinder-6.10:
/usr
/usr/bin
/usr/bin/videosubfinder -> ../share/VideoSubFinder/VideoSubFinderWXW
/usr/share
/usr/share/VideoSubFinder
/usr/share/VideoSubFinder/Docs
/usr/share/VideoSubFinder/Docs/readme_chn.txt
/usr/share/VideoSubFinder/Docs/readme_eng.txt
/usr/share/VideoSubFinder/Docs/readme_rus.txt
/usr/share/VideoSubFinder/VideoSubFinderWXW
/usr/share/VideoSubFinder/bitmaps
/usr/share/VideoSubFinder/bitmaps/left_na.bmp
/usr/share/VideoSubFinder/bitmaps/left_od.bmp
/usr/share/VideoSubFinder/bitmaps/right_na.bmp
/usr/share/VideoSubFinder/bitmaps/right_od.bmp
/usr/share/VideoSubFinder/bitmaps/sb_la.bmp
/usr/share/VideoSubFinder/bitmaps/sb_lc.bmp
/usr/share/VideoSubFinder/bitmaps/sb_ra.bmp
/usr/share/VideoSubFinder/bitmaps/sb_rc.bmp
/usr/share/VideoSubFinder/bitmaps/sb_t.bmp
/usr/share/VideoSubFinder/bitmaps/tb_pause.bmp
/usr/share/VideoSubFinder/bitmaps/tb_run.bmp
/usr/share/VideoSubFinder/bitmaps/tb_stop.bmp
/usr/share/VideoSubFinder/settings
/usr/share/VideoSubFinder/settings/chn
/usr/share/VideoSubFinder/settings/chn/locale.cfg
/usr/share/VideoSubFinder/settings/eng
/usr/share/VideoSubFinder/settings/eng/locale.cfg
/usr/share/VideoSubFinder/settings/general.cfg
/usr/share/VideoSubFinder/settings/rus
/usr/share/VideoSubFinder/settings/rus/locale.cfg |
Unfortunately, there is an other issue when I try to run it :
Code: | ~ videosubfinder
20:31:57: Error: can't open file '/usr/share/VideoSubFinder/report.log' (error 13: Permission denied)
/var/tmp/portage/x11-libs/wxGTK-3.2.8/work/wxWidgets-3.2.8/src/common/ffile.cpp(144): assert ""IsOpened()"" failed in Write(): can't write to closed fil |
There is no report.log file in '/usr/share/VideoSubFinder/" though so I suppose I need to somehow create it myself & install it in the install phase with the correct permission ?
EDIT: I found this : https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=videosubfinder but I'm not sure how to do it here.
If I create it manually after merging (just to test)
Code: | touch /usr/share/VideoSubFinder/report.log
chmod 777 /usr/share/VideoSubFinder/report.log |
then videosubfinder gui shows up but with another round of issues:
Code: | 20:37:07: Directory '/usr/share/VideoSubFinder/RGBImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/ISAImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/ILAImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/DebugImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TXTImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/ImagesJoined' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TXTResults' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TestImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TestImages' couldn't be created (error 13: Permission denied) |
edit: I just noticed that after having created report.log and executed the program, this is the content of report.log now :
Code: | VideoSubFinderWXW.cpp:194 Starting program...
VideoSubFinderWXW.cpp:195 CVideoSubFinderApp::Initialize...
VideoSubFinderWXW.cpp:197 CVideoSubFinderApp::Initial LoadSettings...
MainFrm.cpp:1252 CMainFrame::LoadSettings(): starting...
MainFrm.cpp:1254 CMainFrame::LoadSettings(): ReadSettings(g_GeneralSettingsFileName, g_general_settings)...
MainFrm.cpp:1272 CMainFrame::LoadSettings(): reading properties from g_general_settings...
MainFrm.cpp:1443 CMainFrame::LoadSettings(): reading properties from g_general_settings end.
MainFrm.cpp:1447 CMainFrame::LoadSettings(): LoadLocaleSettings(.. g_cfg.m_prefered_locale ..)...
MainFrm.cpp:1456 CMainFrame::LoadLocaleSettings(): starting for "/usr/share/VideoSubFinder/settings/eng/locale.cfg" ...
MainFrm.cpp:1465 CMainFrame::LoadLocaleSettings(): reading properties from "/usr/share/VideoSubFinder/settings/eng/locale.cfg" ...
MainFrm.cpp:1707 CMainFrame::LoadLocaleSettings(): finished.
VideoSubFinderWXW.cpp:210 CVideoSubFinderApp::LoadSettings again with affect of command line...
MainFrm.cpp:1252 CMainFrame::LoadSettings(): starting...
MainFrm.cpp:1254 CMainFrame::LoadSettings(): ReadSettings(g_GeneralSettingsFileName, g_general_settings)...
MainFrm.cpp:1259 CMainFrame::LoadSettings(): Updating g_general_settings according command line options...
MainFrm.cpp:1272 CMainFrame::LoadSettings(): reading properties from g_general_settings...
MainFrm.cpp:1443 CMainFrame::LoadSettings(): reading properties from g_general_settings end.
MainFrm.cpp:1447 CMainFrame::LoadSettings(): LoadLocaleSettings(.. g_cfg.m_prefered_locale ..)...
MainFrm.cpp:1456 CMainFrame::LoadLocaleSettings(): starting for "/usr/share/VideoSubFinder/settings/eng/locale.cfg" ...
MainFrm.cpp:1465 CMainFrame::LoadLocaleSettings(): reading properties from "/usr/share/VideoSubFinder/settings/eng/locale.cfg" ...
MainFrm.cpp:1707 CMainFrame::LoadLocaleSettings(): finished.
VideoSubFinderWXW.cpp:231 wxApp::Initialize...
VideoSubFinderWXW.cpp:247 new CMainFrame...
VideoSubFinderWXW.cpp:249 CMainFrame was created.
VideoSubFinderWXW.cpp:254 m_pMainWnd->Init...
MainFrm.cpp:514 CMainFrame::Init(): starting...
MainFrm.cpp:518 CMainFrame::Init(): InitCUDADevice...
MainFrm.cpp:386 CMainFrame::Init(): init m_LBLFont...
MainFrm.cpp:402 CMainFrame::Init(): init m_BTNFont...
MainFrm.cpp:534 CMainFrame::Init(): CreateMenuBar() ...
MainFrm.cpp:419 CMainFrame::CreateMenuBar(): starting ...
MainFrm.cpp:507 CMainFrame::CreateMenuBar(): end.
MainFrm.cpp:537 CMainFrame::Init(): this->SetMenuBar(pMenuBar)...
MainFrm.cpp:540 CMainFrame::Init(): new CImageBox(this)...
MainFrm.cpp:543 CMainFrame::Init(): m_pImageBox->Init()...
MainFrm.cpp:549 CMainFrame::Init(): new CVideoBox(this)...
MainFrm.cpp:552 CMainFrame::Init(): m_pVideoBox->Init()...
MainFrm.cpp:554 CMainFrame::Init(): m_pVideoBox->Bind...
MainFrm.cpp:571 CMainFrame::Init(): new CSSOWnd(this)...
MainFrm.cpp:574 CMainFrame::Init(): this->SetSize(..)...
MainFrm.cpp:596 CMainFrame::Init(): m_pPanel->Init()...
SSOWnd.cpp:68 CSSOWnd::Init(): starting...
SSOWnd.cpp:77 CSSOWnd::Init(): new CSearchPanel(this)...
SSOWnd.cpp:79 CSSOWnd::Init(): new CSettingsPanel(this)...
SSOWnd.cpp:81 CSSOWnd::Init(): new COCRPanel(this)...
SSOWnd.cpp:83 CSSOWnd::Init(): m_pSHPanel->Init()...
SearchPanel.cpp:47 CSearchPanel::Init(): starting...
SearchPanel.cpp:86 CSearchPanel::Init(): init m_pP1...
SearchPanel.cpp:92 CSearchPanel::Init(): init m_plblBT1...
SearchPanel.cpp:99 CSearchPanel::Init(): init m_plblBT2...
SearchPanel.cpp:105 CSearchPanel::Init(): init m_plblBTA1...
SearchPanel.cpp:112 CSearchPanel::Init(): init m_plblBTA2...
SearchPanel.cpp:119 CSearchPanel::Init(): init m_pClear...
SearchPanel.cpp:125 CSearchPanel::Init(): init m_pRun...
SearchPanel.cpp:183 CSearchPanel::Init(): finished.
SSOWnd.cpp:85 CSSOWnd::Init(): m_pSSPanel->Init()...
SettingsPanel.cpp:46 CSettingsPanel::Init(): starting...
SettingsPanel.cpp:127 CSettingsPanel::Init(): init m_pP2...
SettingsPanel.cpp:133 CSettingsPanel::Init(): init m_pGB1...
SettingsPanel.cpp:140 CSettingsPanel::Init(): init m_pGB2...
SettingsPanel.cpp:147 CSettingsPanel::Init(): init m_pGB3...
SettingsPanel.cpp:155 CSettingsPanel::Init(): init m_pTest...
SettingsPanel.cpp:167 CSettingsPanel::Init(): init m_pLeft...
SettingsPanel.cpp:174 CSettingsPanel::Init(): init m_pRight...
SettingsPanel.cpp:178 CSettingsPanel::Init(): init m_plblIF...
SettingsPanel.cpp:185 CSettingsPanel::Init(): init m_pOI...
SettingsPanel.cpp:191 CSettingsPanel::Init(): init m_pOI m_ssp_oi_group_global_image_processing_settings...
FFMPEGVideo.cpp:34 GetAvailableHWDeviceTypes: starting...
FFMPEGVideo.cpp:47 GetAvailableHWDeviceTypes: finished.
SettingsPanel.cpp:225 CSettingsPanel::Init(): init m_pOI m_ssp_oi_group_initial_image_processing...
SettingsPanel.cpp:246 CSettingsPanel::Init(): init m_pOI m_ssp_oi_group_tertiary_image_processing...
SettingsPanel.cpp:253 CSettingsPanel::Init(): init m_pOIM...
SettingsPanel.cpp:259 CSettingsPanel::Init(): init m_pOIM m_ssp_oim_group_ocr_settings...
SettingsPanel.cpp:297 CSettingsPanel::Init(): init m_pOIM m_ssp_oim_group_settings_for_multiframe_image_processing...
SettingsPanel.cpp:345 CSettingsPanel::Init(): init m_plblGSFN...
SettingsPanel.cpp:352 CSettingsPanel::Init(): init m_pGSFN...
SettingsPanel.cpp:361 CSettingsPanel::Init(): init m_plblPixelColor...
SettingsPanel.cpp:382 CSettingsPanel::Init(): init m_pPixelColorRGB...
SettingsPanel.cpp:390 CSettingsPanel::Init(): init m_pPixelColorLab...
SettingsPanel.cpp:398 CSettingsPanel::Init(): init m_pPixelColorExample...
SettingsPanel.cpp:411 CSettingsPanel::Init(): init top_sizer...
SettingsPanel.cpp:413 CSettingsPanel::Init(): init button_sizer...
SettingsPanel.cpp:482 CSettingsPanel::Init(): finished.
SSOWnd.cpp:87 CSSOWnd::Init(): m_pOCRPanel->Init()...
OCRPanel.cpp:207 COCRPanel::Init(): starting...
OCRPanel.cpp:307 COCRPanel::Init(): this->SetSize(rcP3)...
OCRPanel.cpp:310 COCRPanel::Init(): init m_pP3...
OCRPanel.cpp:316 COCRPanel::Init(): init m_pGB...
OCRPanel.cpp:323 COCRPanel::Init(): init m_pDG...
OCRPanel.cpp:349 COCRPanel::Init(): init m_pCCTI...
OCRPanel.cpp:355 COCRPanel::Init(): init m_pCSTXT...
OCRPanel.cpp:361 COCRPanel::Init(): init m_pCSCTI...
OCRPanel.cpp:367 COCRPanel::Init(): init m_pCES...
OCRPanel.cpp:373 COCRPanel::Init(): init m_pJOIN...
OCRPanel.cpp:387 COCRPanel::Init(): this->SetSizer(top_sizer)...
OCRPanel.cpp:429 COCRPanel::Init(): finished.
SSOWnd.cpp:92 CSSOWnd::Init(): AddPage's...
SSOWnd.cpp:102 CSSOWnd::Init(): finished.
MainFrm.cpp:602 CMainFrame::Init(): m_pImageBox->SetSize(..)...
MainFrm.cpp:604 CMainFrame::Init(): m_pImageBox->Show(true)...
MainFrm.cpp:607 CMainFrame::Init(): m_pVideoBox->SetSize(..)...
MainFrm.cpp:609 CMainFrame::Init(): m_pVideoBox->Show(true)...
MainFrm.cpp:639 CMainFrame::Init(): finished.
VideoSubFinderWXW.cpp:256 m_pMainWnd->Init was finished. |
|
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31745 Location: here
|
Posted: Sat May 17, 2025 6:59 pm Post subject: |
|
|
I think somethig like this:
Code: | touch "${ED}"/usr/share/VideoSubFinder/report.log || die
fperms 777 /usr/share/VideoSubFinder/report.log |
_________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 17, 2025 7:46 pm Post subject: |
|
|
Thanks, it works although there is a QA notice.
* QA Notice: world writable file(s):
* //usr/share/VideoSubFinder/report.log
* This may or may not be a security problem, most of the time it is one.
* Please double check that videosubfinder-6.10 really needs a world writeable bit and file bugs accordingly.
Unfortunately this error still shows up:
Code: | 20:37:07: Directory '/usr/share/VideoSubFinder/RGBImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/ISAImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/ILAImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/DebugImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TXTImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/ImagesJoined' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TXTResults' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TestImages' couldn't be created (error 13: Permission denied)
20:37:07: Directory '/usr/share/VideoSubFinder/TestImages' couldn't be created (error 13: Permission denied) |
I don't understand why it tries to write to /usr/share/VideoSubFinder/ instead of home dir.
I don't have arch installed otherwise I would have tried the PKGBUILD to see how it behaves... |
|
Back to top |
|
 |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 17, 2025 7:56 pm Post subject: |
|
|
Instead of using dosym, I tried with the wrapper eclass & make_wrapper :
Code: | src_install() {
cmake_src_install
make_wrapper "${PN}" "/usr/share/VideoSubFinder/VideoSubFinderWXW -o '.'"
touch "${ED}"/usr/share/VideoSubFinder/report.log || die
fperms 777 /usr/share/VideoSubFinder/report.log
} |
cat /usr/bin/videosubfinder
Code: | #!/bin/sh
exec /usr/share/VideoSubFinder/VideoSubFinderWXW -o '.' "$@" |
Now the error is :
Code: | 21:53:35: can't open file '/usr/share/VideoSubFinder/previous_data.inf' (error 13: Permission denied)
21:53:35: can't open file '/usr/share/VideoSubFinder/settings/general.cfg' (error 13: Permission denied) |
edit: oops, passing "-o '.'" was not a good idea, my home folder is now filled with :
Code: | drwxr-xr-x 1 sdauth users 36 17 mai 21:41 TestImages
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 TXTResults
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 TXTImages
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 RGBImages
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 ImagesJoined
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 ISAImages
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 ILAImages
drwxr-xr-x 1 sdauth users 0 17 mai 21:41 DebugImages |
Last edited by sdauth on Sat May 24, 2025 9:03 am; edited 2 times in total |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6371 Location: Dallas area
|
Posted: Sat May 17, 2025 8:01 pm Post subject: |
|
|
What are the permissions on /usr/share/VideoSubFinder/ and owner/group
Edit to add: Just an FYI, I wouldn't use 777 perms for a log file, 666 at most. _________________ UM780 xtx, 6.14 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them.
Last edited by Anon-E-moose on Sat May 17, 2025 8:06 pm; edited 1 time in total |
|
Back to top |
|
 |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 17, 2025 8:04 pm Post subject: |
|
|
Code: | drwxr-xr-x 1 root root 92 17 mai 21:50 .
drwxr-xr-x 1 root root 4,6K 17 mai 21:20 ..
drwxr-xr-x 1 root root 84 17 mai 21:20 Docs
-rwxr-xr-x 1 root root 1,8M 17 mai 21:52 VideoSubFinderWXW
drwxr-xr-x 1 root root 246 17 mai 21:20 bitmaps
-rwxrwxrwx 1 root root 6,7K 17 mai 21:53 report.log
drwxr-xr-x 1 root root 40 17 mai 21:20 settings |
Shouldn't the program creates the needed folder (configs etc..) in ~/.config directory instead ? It is strange, I've never seen this.
arch pkgbuild uses this sh start script (similar to make_wrapper):
https://aur.archlinux.org/cgit/aur.git/plain/start-videosubfinder.sh?h=videosubfinder
where "-o '.'" is used, so apparently it is "normal" but it's rather odd to create these folders when only starting the program, without any video file.
Last edited by sdauth on Sat May 17, 2025 8:15 pm; edited 3 times in total |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6371 Location: Dallas area
|
Posted: Sat May 17, 2025 8:10 pm Post subject: |
|
|
sdauth wrote: | Code: | drwxr-xr-x 1 root root 92 17 mai 21:50 .
drwxr-xr-x 1 root root 4,6K 17 mai 21:20 ..
drwxr-xr-x 1 root root 84 17 mai 21:20 Docs
-rwxr-xr-x 1 root root 1,8M 17 mai 21:52 VideoSubFinderWXW
drwxr-xr-x 1 root root 246 17 mai 21:20 bitmaps
-rwxrwxrwx 1 root root 6,7K 17 mai 21:53 report.log
drwxr-xr-x 1 root root 40 17 mai 21:20 settings |
Shouldn't the program creates the needed folder (configs etc..) in ~/.config directory instead ? It is strange, I've never seen this. |
It might, if it had been designed with linux in mind, but it looks like it's more a windows program.
Either you need to figure out how to set the data/log directory somewhere else, OR
create a group, and set group ownership on the dirs/files and be in that group.
Note: I have not looked at the source code, but I did glance at the Cmake file _________________ UM780 xtx, 6.14 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them. |
|
Back to top |
|
 |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 17, 2025 8:14 pm Post subject: |
|
|
Yes, that's a good idea. I'll have a look later and see if I can take inspiration from other ebuild too. |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6371 Location: Dallas area
|
Posted: Sat May 17, 2025 8:24 pm Post subject: |
|
|
It looks like paths get set in Interfaces/VideoSubFinderWXW/VideoSubFinderWXW.cpp (search for report.log)
So you can probably set them to something like /tmp (by creating a patch) but it would be a little harder to make them go to ~/.config
unless you make it specific to your user, instead of <any user>/.config
Edit to add: wouldn't be terribly hard to make it go to .config
Interfaces/VideoSubFinderWXW/VideoSubFinderWXW.cpp line 188 (g_work_dir = g_app_dir;)
I would probably put an ifdef linux after this and inside the ifdef
getenv on XDG_CONFIG_HOME and if that is empty just set to "/home/user/.config" and
copy that to g_work_dir
then end the ifdef and let the rest do what it does anyway.
I think this should work. _________________ UM780 xtx, 6.14 zen kernel, gcc 15, openrc, wayland
Got to love snowflakes, how does the world survive without them. |
|
Back to top |
|
 |
sdauth l33t


Joined: 19 Sep 2018 Posts: 717 Location: Ásgarðr
|
Posted: Sat May 24, 2025 8:58 am Post subject: |
|
|
This is beyond what I'm able to do but I appreciate your help Anon-E-moose, thanks.
Maybe someone more experienced than I am will be able to make a patch, if this is possible.
But I noticed the program throws segfault at times (related to wxgtk from what I see) so I'm not sure it's worth to invest time in it.
Meanwhile, I remembered that wine is now available in no-multilib so I installed it and used the Win version to avoid headaches. It works fine. |
|
Back to top |
|
 |
|