Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
Currently every PKGBUILD implements its own cleanup mess for unreproducible files. This could be standardised in PURGE_TARGETS so it works out of the box.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related or that one is blocking others.
Learn more.
IIRC @anthraxx and I already talked about this in the past and one idea was to add some kind of function that could be called in ruby PKGBUILD files to reduce the amount of lines needed from the above 27 to 1.
I'd distribute a custom libmakepkg file /usr/share/makepkg/tidy/ruby.sh or with pacman/makepkg to automatically handle this if the clean-up can be done post package(). If the clean-up needs to happen during build(), then provide a function in /usr/share/makepkg/reproducible/ruby.sh.
The cleanup can easily happen also at the end of the package() function call.
Would ruby package maintainer then need to call a special function at the end of the package() function or will this be done automatically? If it gets done automatically how will the system detect that the package is a ruby package?
Just an FYI to the pacman packagers - I'm happy to provide such scripts to integrate into libmakepkg, but I don't think they should be hosted in the pacman repo. If needed, we can create another project to hold these scripts.
Just an FYI to the pacman packagers - I'm happy to provide such scripts to integrate into libmakepkg, but I don't think they should be hosted in the pacman repo. If needed, we can create another project to hold these scripts.
Right now on my system I already see 7 files in /usr/share/makepkg/tidy. Where are they coming from and could we add the ruby.sh to that place?
@allan I tried to test your file, but it seems the tidy_ruby() function is never called. I added some debug output to the file on the root level and I see it, but when I add some output directly to the tidy_ruby() function (before the if) then I don't see this.
It is hard to test further and I'm at a loss how to test this further.
I also printed the tidy_remove variable after the assignment of the tidy_ruby variable and i see that it was added.
Ok it seems to work now. My error was to thinking it work with pkgctl build but the file is never created there. When building directly with makepkg I see it being called and it seems to work.
I have a question: Where does ${_name} and ${pkgver} from? I can imagine the second one is omnipresent but the first seems like something that might not be there. Maybe we could just use * instead of ${_name}-${pkgver}.
Is there an easy way for me to test this inside of pkgctl build?