rc.d are not installed by ports!

mais at ouestil.com mais at ouestil.com
Wed Jun 11 13:13:47 UTC 2014


Le 11/06/2014 00:24, Lowell Gilbert a écrit :

> mais at 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
+ at cwd /
+etc/rc.d/openssh
+ at 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/>



More information about the freebsd-questions mailing list