[chcleanup] Doesn't respect installed provides
Say a package makedepends on "emacs", and "emacs-nox" is installed. emacs-nox provides=(emacs). However, if you run libremakepkg, what is going to happen is that `chcleanup` will remove emacs-nox, then `makepkg -s` will install emacs, and all of it's X11 dependencies.
Updated by fauno about 9 years ago
provides doesn't mean the replacement is fully functional, i believe some pkgbuilds needing some library that's already pulled by a dependency skip mentioning it, leading to different binary results. in this case the X libraries would be missing or would have to be added to the PKGBUILD (it could help spot faulty packages though).
Updated by lukeshu about 9 years ago
fauno: good point.
I'll a add that my emacs/emacs-nox example is libretools itself. I use some elisp to do text-processing during the build process.
... Oh my god, that sounds like libretools is bloated. What it is is that I have a patch to split `devtools:/usr/sbin/makechrootpkg` into functions for `libretools:/usr/lib/libretools/makechrootpkg.sh`. Because of that, the indentation for makechrootpkg.sh is wack. I use emacs to auto-indent the file.