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

find-debuginfo.sh: cpio looking into wrong path #322

Closed
srakitnican opened this issue Sep 8, 2017 · 6 comments
Closed

find-debuginfo.sh: cpio looking into wrong path #322

srakitnican opened this issue Sep 8, 2017 · 6 comments
Labels

Comments

@srakitnican
Copy link

Don't know what is wrong, these messages appear when package is being created at debuginfo part.

cpio: timeshift-17.2/src/AboutWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppConsole.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppExcludeEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppGtk.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppLock.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ArchiveFile.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AsyncTask.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupDeviceBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupFinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Bash.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BootOptionsBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BootOptionsWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/CronTab.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/CryptTabEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/CustomMessageDialog.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteFileTask.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteFinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Device.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DonationWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/EstimateBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeAppsBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeListSummaryWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeMessageWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/FileItem.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/FinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/FsTabEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/GtkHelper.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/IncludeBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/LinuxDistro.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Main.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/MainWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/MountEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/OSDNotify.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ProcStats.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreDeviceBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreExcludeBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreFinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreSummaryBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RsyncLogWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RsyncTask.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ScheduleBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SettingsWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SetupWizardWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Snapshot.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SnapshotBackendBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SnapshotListBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SnapshotRepo.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Subvolume.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.FileSystem.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Json.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Logging.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Misc.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Process.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.System.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TerminalWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TimeoutCounter.c: Cannot stat: No such file or directory

But that seems to be wrong as these are not located at root directories "src/" but instead located in multiple sub-directories od src/ . I am not sure how that happens. debugsources.list file contains correct path to files. I've noticed, though, that paths are not separated by newline, but by NULL character instead, so sort at the beginning of the command does not do anything.

I am able to reproduce it from command line by passing debugsources.list to the following command:

$ LC_ALL=C sort -z -u "/var/lib/mock/fedora-25-x86_64/root/builddir/build/BUILD/timeshift-17.2/debugsources.list" | grep -E -v -z '(<internal>|<built-in>)$' | (cd "/var/lib/mock/fedora-25-x86_64/root/builddir/build/BUILD/"; cpio -pd0mL "/tmp/test")
cpio: timeshift-17.2/src/AboutWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppConsole.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppExcludeEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppGtk.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AppLock.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ArchiveFile.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/AsyncTask.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupDeviceBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupFinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BackupWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Bash.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BootOptionsBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/BootOptionsWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/CronTab.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/CryptTabEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/CustomMessageDialog.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteFileTask.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteFinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DeleteWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Device.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/DonationWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/EstimateBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeAppsBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeListSummaryWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ExcludeMessageWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/FileItem.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/FinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/FsTabEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/GtkHelper.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/IncludeBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/LinuxDistro.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Main.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/MainWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/MountEntry.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/OSDNotify.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ProcStats.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreDeviceBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreExcludeBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreFinishBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreSummaryBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RestoreWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RsyncLogWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/RsyncTask.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/ScheduleBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SettingsWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SetupWizardWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Snapshot.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SnapshotBackendBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SnapshotListBox.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/SnapshotRepo.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/Subvolume.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.FileSystem.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Json.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Logging.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Misc.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.Process.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TeeJee.System.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TerminalWindow.c: Cannot stat: No such file or directory
cpio: timeshift-17.2/src/TimeoutCounter.c: Cannot stat: No such file or directory
15356 blocks
@srakitnican
Copy link
Author

Hmm, sort is doing the right thing after all, it is sorting by the NULL character instead. debugsources.list does indeed contain those files but with a combination of good ones, I wonder why is that.

@srakitnican
Copy link
Author

Copr build are here: https://copr.fedorainfracloud.org/coprs/srakitnican/default/build/600055/

It seems to add all files and that is what it's important, still curious to where does this coming from, though...

@ignatenkobrain
Copy link
Contributor

I think this is a bit common with vala.

Hint: vala generates .c files out of .vala, so usually it is in builddir and buildsystem might insert wrong paths. Or something like this.

Not sure if this is the cause though.

@srakitnican
Copy link
Author

srakitnican commented Sep 9, 2017

The build system is a crude makefile, vala is called like so:

valac Core/*.vala Utility/*.vala  Utility/Gtk/*.vala  Gtk/*.vala -o ${app_name}

The .c files are being generated along with .vala file counterpart. Do you think it is a vala bug?

@ffesti ffesti added this to Needs triage in Ticket Review (Outdated) Mar 3, 2020
@ffesti ffesti added the bug label Mar 30, 2020
@ffesti ffesti moved this from Needs triage to Yes in Ticket Review (Outdated) Mar 30, 2020
@pmatilai
Copy link
Member

Ok, still easily reproducable by commenting out this:
https://src.fedoraproject.org/rpms/timeshift/blob/master/f/timeshift.spec#_71

Whether there's anything rpm can actually do about this I dunno.

@pmatilai
Copy link
Member

Debuginfo processing was split to a separate project in rpm 4.17 so even the little chance of doing something about this is gone now. This does look like a Vala thing, but if you think it should be pursued, please re-report at https://sourceware.org/debugedit/

Ticket Review (Outdated) automation moved this from Yes to Closed Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants