FS#11179 - [makepkg] Running with -s exit makepkg without build package
Attached to Project:
Pacman
Opened by Gerhard Brauer (GerBra) - Monday, 11 August 2008, 08:52 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 20 August 2008, 00:58 GMT
Opened by Gerhard Brauer (GerBra) - Monday, 11 August 2008, 08:52 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 20 August 2008, 00:58 GMT
|
Details
Summary and Info:
Building a package with automatically installed depends stops makepkg after installing the depends, without building the package itself. Steps to Reproduce: Example package fortune-mod from abs: [gerhard@tux1 fortune-mod]$ LANG=C makepkg -sr ==> Making package: fortune-mod 1.99.1-3 i686 (Mon Aug 11 10:50:13 CEST 2008) ==> Checking Runtime Dependencies... ==> Installing missing dependencies... resolving dependencies... looking for inter-conflicts... Targets (1): recode-3.6-2 Total Download Size: 0.00 MB Total Installed Size: 2.93 MB Proceed with installation? [Y/n] checking package integrity... (1/1) checking for file conflicts [#####################] 100% (1/1) installing recode [#####################] 100% [gerhard@tux1 fortune-mod]$ The build itself is not done, installed depends keep installed. Looking with strace last message is: exit_group(1) |
This task depends upon
Closed by Dan McGee (toofishes)
Wednesday, 20 August 2008, 00:58 GMT
Reason for closing: Fixed
Additional comments about closing: Commit a23fc08758cbbc7aa861eee2f537d4e1048bb03 9
Wednesday, 20 August 2008, 00:58 GMT
Reason for closing: Fixed
Additional comments about closing: Commit a23fc08758cbbc7aa861eee2f537d4e1048bb03 9
Here with your Debug-version:
[gerhard@tux1 fortune-mod]$ LANG=C ../makepkg.debug -sr
==> Making package: fortune-mod 1.99.1-3 i686 (Mon Aug 11 13:27:24 CEST 2008)
==> Checking Runtime Dependencies...
Allan #13
Allan #01
Allan #03
Allan #04
Allan #05
==> Installing missing dependencies...
Allan #06
Allan #07
resolving dependencies...
looking for inter-conflicts...
Targets (1): recode-3.6-2
Total Download Size: 0.00 MB
Total Installed Size: 2.93 MB
Proceed with installation? [Y/n]
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) installing recode [#####################] 100%
Allan #09
Allan #11
[gerhard@tux1 fortune-mod]$
# we might need the new system environment
source /etc/profile &>/dev/null
Can you comment that line out in your version of makepkg to see if that fixes the issue? It should not be needed for that package.
If not, can you comment out this section:
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fi
and if that fixes it, re-enable that section and do a "chmod -x" on individual files in /etc/profile.d until you trace what is happening.
Otherwise, just comment out sections of /etc/profile until you find the culprit.
Remember to re-enable everything before you reboot...
Thanks.
But well, maybe it is something less obvious which has the same effect?
If you can't figure it out yourself, you could always attach your /etc/profile here, and maybe also a tarball of the /etc/profile.d directory.
chmod -x /etc/profile.d/bash_completion.sh
fixes the problem.
You were right, disabling the
# Load profiles from /etc/profile.d
in /etc/profile fixes it also.
And the "bad guy" in /etc/profile.d is bash_completion.sh
I've tested with a clean user, no modifications on personal .bash or .profiles. Also i have no modifications
on files in /etc, neither profile or in profile.d. Also complete /etc/bash_completion.d is without own modifications.
Therefor must be something in these package files which leads to the makepkg failure.
This only occurs with pacman 3.2.0, for myself i have had this completation always enabled.
Do you mean this is a failure in new pacman/makepkg or should we reassign this to bash-completion?
I love these quick fixing a problem with you devs... ;-)