Opened 19 months ago

Last modified 19 months ago

#6627 new defect

Correct binaries/system/test during rpm build

Reported by: pcpa Owned by:
Priority: Nice to Have Milestone:
Component: Build & Packages Keywords:
Cc: pcpa Patch:

Description

Attached patch is required to avoid a build error.

Basically use same approach of other tests that are avoided when there are missing components.

Attachments (1)

0ad-check.patch (580 bytes ) - added by pcpa 19 months ago.
0ad-check.patch

Download all attachments as: .zip

Change History (5)

by pcpa, 19 months ago

Attachment: 0ad-check.patch added

0ad-check.patch

comment:1 by Vladislav Belov, 19 months ago

Refs: #6630

comment:2 by Vladislav Belov, 19 months ago

Milestone: Alpha 27

comment:3 by Stan, 19 months ago

Milestone: Alpha 27

Excerpt from an e-mail sent to a maintainer

Hey there,


That's because some of the tests actually expect the public mod to be there. They are more of integration tests.
You can safely ignore them or run them with 0ad-data.

See the discussion here https://irclogs.wildfiregames.com/%230ad-dev/2022-09-20-QuakeNet-%230ad-dev.log as to why an if is a bad idea.


Starting 18:13 

A bit more today: https://irclogs.wildfiregames.com/%230ad-dev/2022-10-02-QuakeNet-%230ad-dev.log

Last edited 19 months ago by Stan (previous) (diff)

comment:4 by pcpa, 19 months ago

I tested a different approach, that could require 0ad-data to be built first on an update or just be used as a build dependency. Unfortunately, creating symbolic links from an installation to the build tree fails early:

Function call failed: return value was -110300 (Insufficient access rights to open file)
Location: file_system.cpp:157 (CreateDirectories)

It would be an option if it could use the data directory readonly, and use a separate tree for any write operation.

[pcpa@fedora 0ad-0.0.26-alpha]$ ls -l binaries/data/
total 20
lrwxrwxrwx. 1 pcpa pcpa 21 out  3 14:48 config -> /usr/share/0ad/config
lrwxrwxrwx. 1 pcpa pcpa 19 out  3 14:48 l10n -> /usr/share/0ad/l10n
lrwxrwxrwx. 1 pcpa pcpa 19 out  3 14:48 mods -> /usr/share/0ad/mods
lrwxrwxrwx. 1 pcpa pcpa 20 out  3 14:48 tests -> /usr/share/0ad/tests
lrwxrwxrwx. 1 pcpa pcpa 20 out  3 14:48 tools -> /usr/share/0ad/tools

Or make a documented approach. I tested a simple approach removing the binaries/data tree and creating symbolic links from the installed data at /usr/share/0ad.

Note: See TracTickets for help on using tickets.