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

Error building a package due to unset variable #804

Open
covertg opened this issue Apr 19, 2023 · 0 comments
Open

Error building a package due to unset variable #804

covertg opened this issue Apr 19, 2023 · 0 comments

Comments

@covertg
Copy link

covertg commented Apr 19, 2023

I recently tried to use aura to install the package backintime from the AUR. Building that package failed due to what seems to be an issue with environment variables. A unit test (run upon package building) for that particular package expects the variable XDG_RUNTIME_DIR to be set.

I'm not entirely sure whatever environment that aura is running the unit test in, but it appears the variable is not set in that environment. Excerpt from package building:

python -m unittest  -b test/test_backintime.py
WARNING: Failed to connect to Udev serviceHelper daemon via D-Bus: org.freedesktop.DBus.Error.ServiceUnknown
WARNING: D-Bus message: The name net.launchpad.backintime.serviceHelper was not provided by any .service files
WARNING: Udev-based profiles cannot be changed or checked due to Udev serviceHelper connection failure
.Fs
======================================================================
FAIL: test_local_snapshot_is_successful (test.test_backintime.TestBackInTime)
end to end test - from BIT initialization through snapshot
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/backintime-8278299993025593526/backintime/src/backintime-1.3.3/common/test/test_backintime.py", line 147, in test_local_snapshot_is_successful
    self.assertRegex(filtered_log_output, re.compile(r'''INFO: Lock
AssertionError: Regex didn't match: 'INFO: Lock\nINFO: Take a new snapshot. Profile: 1 Main profile\nINFO: Call rsync to take the snapshot\nINFO: Save config file\nINFO: Save permissions\nINFO: Create info file\nINFO: Unlock\n' not found in "INFO: Lock\nINFO: Take a new snapshot. Profile: 1 Main profile\nINFO: Call rsync to take the snapshot\nINFO: Save config file\nINFO: Save permissions\nINFO: Create info file\nQStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-cove'\nINFO: Unlock\n"

XDG_RUNTIME_DIR is set in my normal shell session (from which I'm running aura). Installing the package manually using makepkg works a-okay.

I thought it'd be prescient to report the issue here first, since you're probably best positioned to diagnose whether this is an aura issue, an issue with backintime, or user error.

Thanks in advance!

@covertg covertg changed the title Error building a package Error building a package due to unset variable Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant