[arch-general] I know of $repo, is there a $arch too?
This is the second time I'm being stupid when modifying my mirrorlist and I by accident put in a i686 repo on a 64-bit machine. I can report that running 32-bit sudo on a 64-bit machine is fraught with problems :-) So, just to work around my stupidity I was wondering if it is possible to put something like $arch in the mirrorlist, so I can stop writing out i686/x86_64? That would at least take care of this problem for the system repos. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
Magnus Therning wrote:
This is the second time I'm being stupid when modifying my mirrorlist and I by accident put in a i686 repo on a 64-bit machine. I can report that running 32-bit sudo on a 64-bit machine is fraught with problems :-)
So, just to work around my stupidity I was wondering if it is possible to put something like $arch in the mirrorlist, so I can stop writing out i686/x86_64? That would at least take care of this problem for the system repos.
Not yet. here will be in pacman-3.4: http://projects.archlinux.org/pacman.git/commit/?id=65c1f06b
On Mon, Dec 14, 2009 at 11:36 AM, Allan McRae <allan@archlinux.org> wrote:
Magnus Therning wrote:
This is the second time I'm being stupid when modifying my mirrorlist and I by accident put in a i686 repo on a 64-bit machine. I can report that running 32-bit sudo on a 64-bit machine is fraught with problems :-)
So, just to work around my stupidity I was wondering if it is possible to put something like $arch in the mirrorlist, so I can stop writing out i686/x86_64? That would at least take care of this problem for the system repos.
Not yet. here will be in pacman-3.4: http://projects.archlinux.org/pacman.git/commit/?id=65c1f06b
And the commit just next to it will check if the architecture of the package you install is correct, if you set the new Architecture option in pacman.conf . http://projects.archlinux.org/pacman.git/commit/?id=5b27e78ba015a48baf2d3c86...
On Mon, Dec 14, 2009 at 12:51 PM, Xavier <shiningxc@gmail.com> wrote:
On Mon, Dec 14, 2009 at 11:36 AM, Allan McRae <allan@archlinux.org> wrote:
Magnus Therning wrote:
This is the second time I'm being stupid when modifying my mirrorlist and I by accident put in a i686 repo on a 64-bit machine. I can report that running 32-bit sudo on a 64-bit machine is fraught with problems :-)
So, just to work around my stupidity I was wondering if it is possible to put something like $arch in the mirrorlist, so I can stop writing out i686/x86_64? That would at least take care of this problem for the system repos.
Not yet. here will be in pacman-3.4: http://projects.archlinux.org/pacman.git/commit/?id=65c1f06b
And the commit just next to it will check if the architecture of the package you install is correct, if you set the new Architecture option in pacman.conf . http://projects.archlinux.org/pacman.git/commit/?id=5b27e78ba015a48baf2d3c86...
Ah, great, so that means I just might have pacman save me from my stupidity in the future :-) /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
On 12/14/2009 04:16 AM, Magnus Therning wrote:
This is the second time I'm being stupid when modifying my mirrorlist and I by accident put in a i686 repo on a 64-bit machine. I can report that running 32-bit sudo on a 64-bit machine is fraught with problems :-)
So, just to work around my stupidity I was wondering if it is possible to put something like $arch in the mirrorlist, so I can stop writing out i686/x86_64? That would at least take care of this problem for the system repos.
/M
Mangus, I feel your pain. I did the same thing not too long ago and it about drove me crazy before I figured out what happened. I don't know if it is plausible, but it would sure help protect us from ourselves if in the preinstall dependency checks for conflicts, etc., pacman would scan the list of packages to be installed and compare the architecture to the system. Then if conflicting package architectures were found, pacman could just dump the list saying something like: The following list of packages were prepared for (i586/x86_64) architecture and you are prepared to install them on this system with (machine architecture). Do you really want to do this? (yes/no): ___ I don't know if you can quickly get the package architecture by some other method than substring extraction on the file name, but that in itself is simple enough. Food for thought :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin wrote:
On 12/14/2009 04:16 AM, Magnus Therning wrote:
This is the second time I'm being stupid when modifying my mirrorlist and I by accident put in a i686 repo on a 64-bit machine. I can report that running 32-bit sudo on a 64-bit machine is fraught with problems :-)
So, just to work around my stupidity I was wondering if it is possible to put something like $arch in the mirrorlist, so I can stop writing out i686/x86_64? That would at least take care of this problem for the system repos.
/M
Mangus,
I feel your pain. I did the same thing not too long ago and it about drove me crazy before I figured out what happened. I don't know if it is plausible, but it would sure help protect us from ourselves if in the preinstall dependency checks for conflicts, etc., pacman would scan the list of packages to be installed and compare the architecture to the system. Then if conflicting package architectures were found, pacman could just dump the list saying something like:
The following list of packages were prepared for (i586/x86_64) architecture and you are prepared to install them on this system with (machine architecture). Do you really want to do this? (yes/no): ___
I don't know if you can quickly get the package architecture by some other method than substring extraction on the file name, but that in itself is simple enough. Food for thought :p
Read the other replies to the thread....
On 12/15/2009 01:55 AM, Allan McRae wrote:
Read the other replies to the thread....
Allan, I did .... right after I hit send :-( -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
participants (4)
-
Allan McRae
-
David C. Rankin
-
Magnus Therning
-
Xavier