Bug 161689 - net/nss-pam-ldapd doesn't honor PREFIX -- DANGEROUS for remote upgrades!
Summary: net/nss-pam-ldapd doesn't honor PREFIX -- DANGEROUS for remote upgrades!
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 18:30 UTC by Andrew Kolchoogin
Modified: 2011-11-07 22:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Kolchoogin 2011-10-15 18:30:11 UTC
	Error in rc.d/nslcd prevents machine from booting

Fix: Apply the following patch:



and rebuld the port in question.--iXxAvSd2gpESmosfOnVstm3WIRZtpnNRWHFPKc5y2h1qpQ3O
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -r 301a98633249 net/nss-pam-ldapd/files/nslcd.in
--- a/net/nss-pam-ldapd/files/nslcd.in	Fri Oct 14 18:30:36 2011 +0400
+++ b/net/nss-pam-ldapd/files/nslcd.in	Sat Oct 15 20:33:52 2011 +0400
@@ -21,7 +21,7 @@
 start_postcmd="nslcd_poststart"
 
 nslcd_poststart () {
-       until $(/usr/local/sbin/nslcd -c); do
+       until $(%%PREFIX%%/sbin/${name} -c); do
                echo " Waiting for nslcd to start"
                sleep 1
        done
How-To-Repeat: 	DO NOT DO THAT ON REAL HARDWARE: just upgrade net/nss-pam-ldapd to latest version available from ports with LOCALBASE set to something different from /usr/local and reboot -- machine boot will never end, and you will be unable even to ssh to it.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-10-15 18:30:20 UTC
Maintainer of net/nss-pam-ldapd,

Please note that PR ports/161689 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/161689

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2011-10-15 18:30:24 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Ryan Steinmetz freebsd_committer freebsd_triage 2011-10-23 02:40:54 UTC
Responsible Changed
From-To: freebsd-ports-bugs->zi

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2011-11-07 22:34:05 UTC
zi          2011-11-07 22:33:54 UTC

  FreeBSD ports repository

  Modified files:
    net/nss-pam-ldapd    Makefile pkg-descr 
    net/nss-pam-ldapd/files nslcd.in 
  Log:
  - Honor custom PREFIX [1]
  - Remove 6.x support
  - Pacify portlint(1)
  
  PR:             ports/161689
  Submitted by:   Andrew Kolchoogin <gadm@web.trunk-com.ru> [1]
  Approved by:    maintainer timeout (2+ weeks)
  
  Revision  Changes    Path
  1.12      +3 -7      ports/net/nss-pam-ldapd/Makefile
  1.6       +2 -2      ports/net/nss-pam-ldapd/files/nslcd.in
  1.3       +8 -6      ports/net/nss-pam-ldapd/pkg-descr
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Ryan Steinmetz freebsd_committer freebsd_triage 2011-11-07 22:34:09 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!