Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#16903 - Mark package as installed from source.

Attached to Project: Pacman
Opened by Mate Horvath (blo) - Thursday, 29 October 2009, 11:45 GMT
Last edited by Xavier (shining) - Monday, 09 November 2009, 19:44 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 3.3.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

I would like to see a feature to mark packages as installed from source. A simple config option in pacman.conf where the user can specify package names (like mplayer, opera etc.).
Yes I can use ABS to build packages but sometimes it is easier to install from source and I think this feature is trivial to implement.



This task depends upon

Closed by  Xavier (shining)
Monday, 09 November 2009, 19:44 GMT
Reason for closing:  Won't implement
Additional comments about closing:  this should not and will not be implemented , see comments
Comment by Dan McGee (toofishes) - Thursday, 29 October 2009, 12:10 GMT
A "simple config option" that does what? Sits there and does nothing? Use IgnorePkg. pacman is a *package manager*, not a package builder, so I hope that isn't what you had in mind here...
Comment by Xavier (shining) - Thursday, 29 October 2009, 12:27 GMT
You should have a look at an entry inside the local database (/var/lib/pacman/local).
The package name is a TINY part of all the information you would have to provide.
"impossible" to implement would be much more accurate than "trivial".

Anyway I hope it is not what you had in mind either.
Comment by Mate Horvath (blo) - Thursday, 29 October 2009, 14:12 GMT
I hope I hope...

I meant this:

If I build mplayer from git with a script and install it from source then I just add mplayer (or the desired package name that I installed from source and I want pacman to recognize it as installed) to pacman.conf's dedicated section (well you name it) and it will recognize mplayer as installed. So if I would like to install an app that require mplayer then pacman won't download the package named mplayer as it is already installed from source.

Summary:
Installedfromsource=packages


Comment by Xavier (shining) - Thursday, 29 October 2009, 14:39 GMT
This is not only wrong, it's also very ugly !

If you don't care about the wrong part, you are free to automate the creation of a dummy pkg. Actually someone might have already done something like this, I believe I have already seen it somewhere. [1]

So it will do what you want, without implementing ugly feature in pacman :)

Edit :
[1] http://bbs.archlinux.org/viewtopic.php?pid=628890#p628890
Comment by Mate Horvath (blo) - Thursday, 29 October 2009, 14:50 GMT
Well yes, using dummy package isn't ugly. As well doing pacman -Sd package and installing the dependencies manually. Thanks for the link.
Comment by Xavier (shining) - Thursday, 29 October 2009, 15:10 GMT
I never said it was good, but for sure it's much better than adding more code and complexity to pacman to support something that is plain wrong.
We will never recommend and support that anyway.

I am still not sure why you insist not using makepkg/pacman. Writing a git pkgbuild is easy :
http://aur.archlinux.org/packages.php?ID=28623

That said, there are some special cases where I personally find using pkgbuild/makepkg inconvenient, but that's my problem, and I don't want or need to fake pacman about it.
Comment by Mate Horvath (blo) - Thursday, 29 October 2009, 15:28 GMT
Well yes It is my own problem if I don't use the tools you described. As I mentioned I use ABS but there are times when it is far easier to install from source and I won't mess with ABS if it comes down to that. But again it is my own problem.

Loading...