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#7638 - makepkg should source /etc/profile

Attached to Project: Pacman
Opened by Alex Heck (nesl247) - Friday, 20 July 2007, 07:06 GMT
Last edited by Dan McGee (toofishes) - Friday, 24 August 2007, 00:59 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version 3.0.5
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
When running makepkg, and a dep is installed such as qt, if the PKGBUILD doesn't source the file itself, the var such as QTDIR won't be set, thus packages may fail to build.

I haven't seen or received any answer that states that a pkgbuild is required to source the profile.d file, and would then remove the need to.

Steps to Reproduce:
This task depends upon

Closed by  Dan McGee (toofishes)
Friday, 24 August 2007, 00:59 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Won't implement for now, a bit too complex and official PKGBUILDs already source the file themselves if necessary.
Comment by Dan McGee (toofishes) - Tuesday, 24 July 2007, 12:41 GMT
Aren't these variables exported in your current environment anyway, or at least should be?
Comment by Alex Heck (nesl247) - Tuesday, 24 July 2007, 19:16 GMT
Only if you've logged in or sourced /etc/profile since the /etc/profile.d/* was created. I don't think those get exported when you install the package. Because I've had to source /etc/profile when those have been installed in the recent past.
Comment by Dan McGee (toofishes) - Tuesday, 24 July 2007, 23:13 GMT
I'm going to give a thumbs down to this suggestion in that case. Here is why:
1. It is known that you need to log out and log in to get profile changes to take effect, and very few packages are installed in /opt/* anyway.
2. You can start shells as login shells, and thus they do this sourcing for you. It isn't makepkg's job to do so.
3. Sourcing /etc/profile* from makepkg breaks KISS- makepkg should use the environment it is given, and this doesn't do that. If someone purposely set something in the environment that sourcing /etc/profile* would unset, this would get broken by sourcing it within makepkg and could not be easily overridden.
Comment by Roman Kyrylych (Romashka) - Wednesday, 25 July 2007, 07:17 GMT
good points, Dan.
Comment by Aaron Griffin (phrakture) - Friday, 27 July 2007, 19:51 GMT
In addition, it is common practice already in official PKGBUILDs to simply source the profile.d file - see the gnome PKGBUILDs.

I'd vote for closing

Loading...