Comments (5)
Good catch, thanks!
from docker-arch-build-aur.
I went for a hopefully future-proof approach, let me know if you still experience any issues!
from docker-arch-build-aur.
The .
after tar
prevents using no compression at all.
docker-arch-build-aur/build-pkgbuild
Line 16 in 5671cb4
So when specifying
PKGEXT=.pkg.tar
moving the package fails again.
I also noticed a related problem that is caused by the asterisks for moving the package. For example the AUR package zoom downloads an archive and calls it "${pkgname}-${pkgver}_orig_x86_64.pkg.tar.xz"
. After building the package (which basically repackages the archive) one is left with two archives called zoom-5.2.458699.0906-1-x86_64.pkg.tar.xz
and zoom-5.2.458699.0906_orig_x86_64.pkg.tar.xz
. Since both match the pattern, they will both be moved to the target directory. This isn't too bad, but not perfect either.
A possible solution I can think of is using PKGDEST
from makepkg.conf. Since the makepkg user will probably have no write access to the /pkg
directory, the directory cannot be specified directly using the variable. But one could specify a temporary empty directory. After building the packages that directory should only contain the package file, which means all files in that directory can be moved to /pkg
, simplifying the glob pattern for moving the package further and avoiding problems with the file extension.
from docker-arch-build-aur.
Sounds good, would you be able to submit a PR? I don't want to over-complicate the scripts but your proposal sounds like it could be just one or two extra lines, so why not 😉
from docker-arch-build-aur.
Sure, i will give it a shot.
from docker-arch-build-aur.
Related Issues (9)
- Broken CI job HOT 4
- Error using `maximbaz/arch-build-aur:latest` build image on fedora HOT 3
- Support for building Arch Linux ARM packages HOT 2
- The CI scheduled actions seems to be disabled HOT 9
- Sudo command not found HOT 1
- Failed to build chromium-vaapi HOT 10
- Few tips & tricks regarding docker image HOT 3
- Update .SRCINFO as part of the package build process
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-arch-build-aur.