Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78215 - [couchdb] FTBFS

Attached to Project: Community Packages
Opened by 南国微雪 (TinySnow) - Sunday, 16 April 2023, 13:11 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 24 September 2023, 10:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

### Description:

Our work is porting software to `RISC-V` architecture.

While porting `couchdb`, the following error occurred:

```bash
==> Entering fakeroot environment...
==> Starting package()...
rm: cannot remove '/build/couchdb/pkg/couchdb/usr/lib/couchdb/erts-13.1.1/doc': No such file or directory
rm: cannot remove '/build/couchdb/pkg/couchdb/usr/lib/couchdb/erts-13.1.1/include': No such file or directory
rm: cannot remove '/build/couchdb/pkg/couchdb/usr/lib/couchdb/erts-13.1.1/lib': No such file or directory
rm: cannot remove '/build/couchdb/pkg/couchdb/usr/lib/couchdb/erts-13.1.1/man': No such file or directory
rm: cannot remove '/build/couchdb/pkg/couchdb/usr/lib/couchdb/erts-13.1.1/src': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root5/build
```

We check it on `x86_64` architecture, it also occurred.

The reason we found is a hardcode of version number, which looks like this:(in `PKGBUILD` file, `package()` function)

```bash
# Remove some cruft
rm -r "${pkgdir}"/usr/lib/couchdb/erts-13.1.1/{doc,include,lib,man,src}
```

The newer version of `erts`, which is actually used in compile, is `13.2`, so the system can't find the files.

Our team member suggests reporting bug on arch(here).

Hope this can be solved.

Last link is our solution `Pull Request`, which maybe used as a reference.

### Additional info:

* package version(s) 3.2.2

### Steps to reproduce:

- download the upstream PKGBUILD
- use `extra-x86_64-build` or `extra-riscv64-build` to compile
- error occurrs

### Our solution

- [Pull Request](https://github.com/felixonmars/archriscv-packages/pull/2525)
This task depends upon

Closed by  Jelle van der Waa (jelly)
Sunday, 24 September 2023, 10:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in git.
Comment by loqs (loqs) - Saturday, 29 April 2023, 15:23 GMT
Have you considered replacing the version number with a glob instead of updating it to avoid the issue reoccurring in the future?
Comment by 南国微雪 (TinySnow) - Sunday, 30 April 2023, 02:57 GMT
Yeah, I have. However, I don't know what's the best way to do it and how to do it.
BTW, Upstream may be have a better way in the future. So we maybe can delay some times?

Loading...