You are not logged in.
Pages: 1
After seeing this I've made an Arch package working with the same principle.
Basically it's a dummy package that simply "conflicts with mono". If some package tries to install mono as a dependency, the conflict will grab your attention. It also creates a dummy "/usr/bin/mono" which warns you that mono is disabled by the mononono package.
Why? I don't like the idea behind Mono. Let's not discuss the issue, there are already enough flame wars on this. Use it if you like it.
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
lol?
Offline
Useful reading about the subject:
http://www.fsf.org/news/dont-depend-on-mono
http://www.fsf.org/news/2009-07-mscp-mono
http://planet.gnu.org/gnutelephony/?p=3
Last edited by dcc24 (2009-11-24 21:21:09)
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
You shouldn't touch "/usr/bin/mono" in the ".install" file. That means It's not owned by any package. Do It in build()
English is not my native language .
Offline
How? If I place it in build() it'll complain that it can't write in /usr/bin since build is done with a non-root user. How should I do it?
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
How? If I place it in build() it'll complain that it can't write in /usr/bin since build is done with a non-root user. How should I do it?
touch $pkgdir/usr/bin/mono
Offline
Doesn't make a difference. During makepkg:
touch: cannot touch `/usr/bin/mono': Permission denied
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
The very idea of creating a dummy package just to conflict with another package is bad enough and would have merited deletion on its own.
The fact that it completely disregarded all packaging standards just abbreviated my hesitation.
Here are some relevant links for future reference:
http://wiki.archlinux.org/index.php/Arc … _Standards
http://wiki.archlinux.org/index.php/PKGBUILD
Please do not upload such a package again.
*edit*
Doesn't make a difference. During makepkg:
touch: cannot touch `/usr/bin/mono': Permission denied
Read about packaging. In this case the build function would have been:
build()
{
touch mono
install -Dm644 $pkg/usr/bin/mono
}
Again though, don't do that.
Last edited by Xyne (2009-11-24 23:11:13)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Sure. Still, what's the correct way of "touch /usr/bin/mono" ?
I see your edit now, thanks.
Last edited by dcc24 (2009-11-24 23:12:00)
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
I'm tempted to upload a package called monoyesyes that will conflict with mononono.
On a more serious note, if you want to make sure mono doesn't get installed, you can put it in IgnorePkg in /etc/pacman.conf. With that in place, if you go to install an application that depends on mono, you'll receive the following error:
[foutrelis@failboat ~]$ sudo pacman -S gbrainy
resolving dependencies...
warning: ignoring package mono-2.4.2.3-1
warning: cannot resolve "mono>=2.4.2", a dependency of "mono-addins"
:: the following package(s) cannot be upgraded due to unresolvable dependencies:
gbrainy
Offline
Yeah, that does seem to be a more elegeant solution. Thanks!
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
This seems fruitless. Pacman already does a commendable job of informing users when a package relies or wants to install a dependency they do not want, and is even nice enough to ask for a confirmation by default.
Last edited by Wintervenom (2009-11-25 01:50:40)
Offline
pacman. Fruit.
The orange was 500 points, as I recall.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I stand corrected.
Last edited by Wintervenom (2009-11-30 01:22:50)
Offline
Pages: 1