Skip to content

Commit

Permalink
OBS does not keep the executable flags :-/ (#943)
Browse files Browse the repository at this point in the history
## Problem

Package build failed:

```
[   10s] + /home/abuild/rpmbuild/SOURCES/install_translations.sh /home/abuild/rpmbuild/SOURCES/po.tar.bz2
[   10s] /var/tmp/rpm-tmp.LhuJ21: line 44: /home/abuild/rpmbuild/SOURCES/install_translations.sh: Permission denied
[   10s] error: Bad exit status from /var/tmp/rpm-tmp.LhuJ21 (%install)
```

## Solution

- Start the script via shell explicitly

## Testing

- Tested manually using `osc` locally
  • Loading branch information
lslezak authored Dec 19, 2023
2 parents 3f28201 + 0045675 commit 4612978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/package/gem2rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
install --directory %{buildroot}/usr/share/agama/conf.d
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/conf.d/*.yaml %{buildroot}/usr/share/agama/conf.d/
# run a script for installing the translations
"%{SOURCE2}" "%{SOURCE1}"
sh "%{SOURCE2}" "%{SOURCE1}"
:main:
:preamble: |-
# Override build.rpm, see also https://github.com/openSUSE/obs-build/blob/master/configs/
Expand Down

0 comments on commit 4612978

Please sign in to comment.