Hello all,
Over the last several months, I've been working in Mageia on enabling the use of DNF for managing software in the distribution[0]. One of the consequences of this is that we're now able to have packages built using Mock. Indeed, it was intended as part of the development to enable building with Mock, and in the past, I talked to Miroslav Suchý about also getting Mageia supported as a target in Copr. Of course, he mentioned a prerequisite for this is having Mock support.
Today, I'm pleased to provide a patch to do just that. The attached patch adds the initial build target configs for Mageia Cauldron on 32-bit and 64-bit x86.
I say initial because we do intend to have metalinks going very soon, and I would like to change the configuration files to use metalinks instead of a direct URL. However, I do not know how we need to set up metalinks for DNF to use them. In addition, we would also like to support the automatic redirection to a mirror when using http URLs (as download.fp.o does) for our legacy package manager, urpmi (which will remain the primary for Mageia 6 for various reasons). If there's anyone who could help us out on this, it would be greatly appreciated.
In any case, the configs are available as the attached patch, pointing to a specific mirror (mirrors.kernel.org) for now.
[0]: https://wiki.mageia.org/en/Feature:Add_DNF_as_Alternate_Repository_Manager
Dne 14.3.2016 v 02:47 Neal Gompa napsal(a):
Today, I'm pleased to provide a patch to do just that. The attached patch adds the initial build target configs for Mageia Cauldron on 32-bit and 64-bit x86.
I see several problems:
1) mock -r etc/mock/mageia-cauldron-x86_64.cfg --shell ... Start: shell sh: warning: setlocale: LC_CTYPE: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_COLLATE: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_MESSAGES: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_NUMERIC: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_TIME: cannot change locale (cs_CZ.UTF-8): No such file or directory <mock-chroot>sh-4.3#
2) the gpg keys points to web rather to file system. Hmm, I just added mageia keys to distribution-gpg-keys and I will later remove all gpg keys from mock and instead I will use keys from distribution-gpg-keys package, which will be new dependency.
But yes it works, I treat it as initial work. So lets give it chance for wider testing.
Committed as: * fe2c96c (HEAD -> devel, origin/devel) Initial build target configs for Mageia Cauldron
Thank you for the contribution.
On Mon, Mar 14, 2016 at 10:37 AM, Miroslav Suchý msuchy@redhat.com wrote:
Dne 14.3.2016 v 02:47 Neal Gompa napsal(a):
Today, I'm pleased to provide a patch to do just that. The attached patch adds the initial build target configs for Mageia Cauldron on 32-bit and 64-bit x86.
I see several problems:
- mock -r etc/mock/mageia-cauldron-x86_64.cfg --shell
... Start: shell sh: warning: setlocale: LC_CTYPE: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_COLLATE: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_MESSAGES: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_NUMERIC: cannot change locale (cs_CZ.UTF-8): No such file or directory sh: warning: setlocale: LC_TIME: cannot change locale (cs_CZ.UTF-8): No such file or directory <mock-chroot>sh-4.3#
I didn't think mock pulled in the host's locale stuff...
After speaking to folks in #mageia-dev about it, it appears that it is because we don't install any locales by default. Locales are controlled through the "locales" package and languages are provided through its various subpackages. I think the setup is similar to how Fedora now has it in F24 and rawhide. By default, the "C" locale is what is provided as the bare minimum one.
If you have any suggestions, I'd greatly appreciate it. If you also have any feedback you'd like to let the Mageia folks know, please drop a line in #mageia-dev (IRC) or dev@ml.mageia.org (dev mailing list). That way, people with deeper knowledge than I can address it.
- the gpg keys points to web rather to file system. Hmm, I just added mageia keys to distribution-gpg-keys and I will
later remove all gpg keys from mock and instead I will use keys from distribution-gpg-keys package, which will be new dependency.
But yes it works, I treat it as initial work. So lets give it chance for wider testing.
Committed as:
- fe2c96c (HEAD -> devel, origin/devel) Initial build target configs for Mageia Cauldron
Thank you for the contribution.
Thank you for merging that in!
On Mon, Mar 14, 2016 at 01:43:44PM -0400, Neal Gompa wrote:
controlled through the "locales" package and languages are provided through its various subpackages. I think the setup is similar to how Fedora now has it in F24 and rawhide. By default, the "C" locale is what is provided as the bare minimum one.
"C" or "C.utf8"?
On Mon, Mar 14, 2016 at 1:50 PM, Matthew Miller mattdm@fedoraproject.org wrote:
On Mon, Mar 14, 2016 at 01:43:44PM -0400, Neal Gompa wrote:
controlled through the "locales" package and languages are provided through its various subpackages. I think the setup is similar to how Fedora now has it in F24 and rawhide. By default, the "C" locale is what is provided as the bare minimum one.
"C" or "C.utf8"?
It is "C". There's a nice discussion going on in #mageia-dev about this, since I forwarded on Miroslav's feedback. Apparently, it causes quite a bit of problems with certain packages already with builds done with iurt (our current equivalent to mock), and people have been forcing locale definitions to make things build.
buildsys@lists.fedoraproject.org