Re: rc.d are not installed by ports!

看板FB_questions作者時間11年前 (2014/06/11 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
--===============4947760625087351752== Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 11/06/2014 00:24, Lowell Gilbert a 矇crit : > mais@ouestil.com writes: > >> It's not the first time it happens to me, but on two FreeBSD 9.2 host >> (recently updated from 9.0 because of EOL portstree support on it), >> using pkng, after upgrade of openssh, mysql, nginx ... ports does not >> install their rc.d ! ~$ pkg info -l openssh-portable >> openssh-portable-6.6.p1_1,1: /etc/rc.d/openssh > > This indicates that the package system thinks it installed the startup > script. By default, this would be /usr/local/etc/rc.d/openssh (I just > tested the port and did, indeed, get the file installed). > > What makes you think it isn't there? > Sorry, wrong output... On the server considered, the file is missing in the list. > Okay, in the nginx port I don't see a startup script listed, and I > don't > see anything that jumps out at me as creating one. But when I build the > port, I do get a startup script, so there's some kind of trickery > taking > care of it. > >> I didn't make a PR because it's looks like more a global problem than >> a openssh or mysql port specific. > > That does seem reasonable, but it also seems particular to your system, > so that's where we'll really need to debug it. I finally almost found where something is wrong! We are using a homemade script for some helping ports install. Basically, our script do this: make clean all make generate-plist make check-already-installed [and more...] The problem is on "generate-plist". This step was required when we made the script in order to be able to do check-already-installed. Now, it looks like this is not necessary anymore (the plist is already built by "all" target). BUT, if you try this : $ make clean all $ cp /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp.bak $ make generate-plist $ diff -u /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp* --- /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp 2014-06-11 15:01:15.000000000 +0200 +++ /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp.bak 2014-06-11 15:00:04.000000000 +0200 @@ -40,3 +40,6 @@ man/man8/sshd.8.gz man/man8/ssh-keysign.8.gz man/man8/ssh-pkcs11-helper.8.gz +@cwd / +etc/rc.d/openssh +@cwd /usr And I think it's a bug, for 2 reasons: first, if the PLIST is already here, I don't see any reason to "rebuilt" it, and second, if it does, it should be the same :) I made a PR for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190930 Regards Envoypar SR-Webmail <http://www.simplerezo.com/> --===============4947760625087351752== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" --===============4947760625087351752==--
文章代碼(AID): #1Jc5fJgW (FB_questions)
文章代碼(AID): #1Jc5fJgW (FB_questions)