|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hello, Ports such as mysql-server, apache22 and many others I've noticed have a disconnect between pkg-plist entries and what actually gets installed. Some especially annoying components missed are etc/rc.d scripts or in the case of gettext, a library file. In the short term I was going to create a PR for some of these ports. My major assumption, with variables enumerated, a +CONTENTS file should be a subset of a pkg-plist file. With this, my basic approach was to diff the +CONTENTS file from the build system and the +CONTENTS file from the install via pkg_add system (ignoring comments, sample output below). Should these files be the same? When would they not be (again, stripping comments)? This output could be used to check the pkg-plist file, accepting that variables in the pkg-plist will need to be enumerated. Is this a decent method? In the long term, would this be something that makes sense for the ports cluster to check on? Are there situations where a port may install something that a pkg-plist file should never record? Cheers, Jon [apache22 sample diff output] grep -v "^@comment" [bulidbox]/var/db/pkg/apache-2.2.4/+CONTENTS > / tmp/+CONTENTS_make_package_apache22 grep -v "^@comment" [installbox]/var/db/pkg/apache-2.2.4/+CONTENTS > / tmp/+CONTENTS_make_install_apache22 diff -u /tmp/+CONTENTS_make_install_apache22 /tmp/ +CONTENTS_make_package_apache22 | wc -l 755 diff -u /tmp/+CONTENTS_make_install_apache22 /tmp/ +CONTENTS_make_package_apache22 | grep '^-' | wc -l 737 diff -u /tmp/+CONTENTS_make_install_apache22 /tmp/ +CONTENTS_make_package_apache22 | grep '^+' | wc -l 14 diff -u /tmp/+CONTENTS_make_install_apache22 /tmp/ +CONTENTS_make_package_apache22 | head - --- /tmp/+CONTENTS_make_install_apache22 Sun Jan 28 21:52:47 2007 +++ /tmp/+CONTENTS_make_package_apache22 Sun Jan 28 21:53:39 2007 @@ -567,739 +567,16 @@ @unexec rmdir %D/etc/apache22 2> /dev/null || echo "===> If you plan to do not reinstall apache22, you can safely remove %D/etc/apache22." @exec /sbin/ldconfig -m /usr/local/lib @unexec /sbin/ldconfig -R - -share/doc/apache22/LICENSE - -share/doc/apache22/NOTICE - -share/doc/apache22/bind.html - -share/doc/apache22/bind.html.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFFvTEUZpJsLIS+QSIRAs8XAJ9aleKmRSkPATrLwSzW77F0AE6NsACdEMgb VOoNLhcNV/4KgPKXj05GV9M= =LFvx -----END PGP SIGNATURE----- _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[hidden email]" |
|
On Sun, Jan 28, 2007 at 05:25:56PM -0600, Jon Passki wrote:
> Hello, > > Ports such as mysql-server, apache22 and many others I've noticed > have a disconnect between pkg-plist entries and what actually gets > installed. Some especially annoying components missed are etc/rc.d > scripts or in the case of gettext, a library file. In the short term > I was going to create a PR for some of these ports. My major > assumption, with variables enumerated, a +CONTENTS file should be a > subset of a pkg-plist file. With this, my basic approach was to diff > the +CONTENTS file from the build system and the +CONTENTS file from > the install via pkg_add system (ignoring comments, sample output > below). Should these files be the same? When would they not be > (again, stripping comments)? This output could be used to check the > pkg-plist file, accepting that variables in the pkg-plist will need > to be enumerated. Is this a decent method? > > In the long term, would this be something that makes sense for the > ports cluster to check on? Are there situations where a port may > install something that a pkg-plist file should never record? seeing differences, this is presumably for some other local reason. In particular gettext, mysql-server and apache22 do not install extra files or have missing files when built in a default freebsd environment. > diff -u /tmp/+CONTENTS_make_install_apache22 /tmp/ > +CONTENTS_make_package_apache22 | head > --- /tmp/+CONTENTS_make_install_apache22 Sun Jan 28 21:52:47 2007 > +++ /tmp/+CONTENTS_make_package_apache22 Sun Jan 28 21:53:39 2007 > @@ -567,739 +567,16 @@ > @unexec rmdir %D/etc/apache22 2> /dev/null || echo "===> If you plan > to do not reinstall apache22, you can safely remove %D/etc/apache22." > @exec /sbin/ldconfig -m /usr/local/lib > @unexec /sbin/ldconfig -R > -share/doc/apache22/LICENSE > -share/doc/apache22/NOTICE > -share/doc/apache22/bind.html > -share/doc/apache22/bind.html.de these files on my system. Kris |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On Jan 28, 2007, at 18:06 , Kris Kennaway wrote: > On Sun, Jan 28, 2007 at 05:25:56PM -0600, Jon Passki wrote: >> Hello, >> >> Ports such as mysql-server, apache22 and many others I've noticed >> have a disconnect between pkg-plist entries and what actually gets >> installed. Some especially annoying components missed are etc/rc.d >> [snip] > This is already checked and enforced using different means. If you're > seeing differences, this is presumably for some other local reason. Which it totally could be. I have a build jail w/ a read-only NFS- mounted /usr/ports that built the ports for the other jails with `make package-recursive PACKAGES="/some/path"`. It has a make.conf file (below) to make a RO /usr/ports work. Other jails (with blank / etc/make.conf) install the package via FTP with `pkg_add -r <some_pkg>`. > In particular gettext, mysql-server and apache22 do not install extra > files or have missing files when built in a default freebsd > environment. This isn't default (^_^), but it isn't really out there, either. > I am unable to replicate this: the apache22 port does not install > these files on my system. I was able to replicate devel/pth on my system (pay attention to libdata/ldconfig/pth at the bottom). I can go back and do a complete install again for the others. # cat /etc/make.conf # port stuff WRKDIRPREFIX="/tmp" DISTDIR="/var/backups/distfiles" PACKAGES="/var/backups/pub/FreeBSD/ports/i386/packages-6.2-release" # added by use.perl 2007-01-23 17:20:15 PERL_VER=5.8.8 PERL_VERSION=5.8.8 # cd /usr/ports/devel/pth # make deinstall # make clean # rm -rf /tmp/All /tmp/devel /tmp/Latest /tmp/usr # make package PACKAGES="/tmp" # tar -xjf /tmp/All/pth-2.0.7.tbz -C /tmp +CONTENTS # diff -u /tmp/+CONTENTS /var/db/pkg/pth-2.0.7/+CONTENTS - --- /tmp/+CONTENTS Mon Jan 29 00:46:32 2007 +++ /var/db/pkg/pth-2.0.7/+CONTENTS Mon Jan 29 00:46:32 2007 @@ -40,14 +40,5 @@ @dirrm lib/pth @exec /sbin/ldconfig -m /usr/local/lib/pth @unexec /sbin/ldconfig -R - -@cwd . - -@ignore - -+COMMENT - -@comment MD5:fe3390e01609cef4464e3da82ca715eb - -@ignore - -+DESC - -@comment MD5:5857a78166a3bfc28f7d918d443db7d0 - -@ignore - -+MTREE_DIRS - -@comment MD5:62ec091098aedd20983344152fd56afb - -@mtree +MTREE_DIRS +libdata/ldconfig/pth +@comment MD5:4f8e8d8ed05f7e16d74fc8d39b779d38 # ll /usr/local/libdata/ldconfig/pth - -rw-r--r-- 1 root wheel 19 Jan 29 00:46 /usr/local/libdata/ ldconfig/pth Jon -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFFvUYnZpJsLIS+QSIRAlSAAJ9EVRE1NaXTq1kjxoLRq/aARAovngCglx8g RDcz2CMcLXFKMYcQeaUX3Zg= =mtZ1 -----END PGP SIGNATURE----- _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[hidden email]" |
|
On Sun, Jan 28, 2007 at 06:55:59PM -0600, Jon Passki wrote:
> > I am unable to replicate this: the apache22 port does not install > > these files on my system. > > I was able to replicate devel/pth on my system (pay attention to > libdata/ldconfig/pth at the bottom). I can go back and do a complete > install again for the others. > > # cat /etc/make.conf > # port stuff > WRKDIRPREFIX="/tmp" > DISTDIR="/var/backups/distfiles" > PACKAGES="/var/backups/pub/FreeBSD/ports/i386/packages-6.2-release" > # added by use.perl 2007-01-23 17:20:15 > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > > # cd /usr/ports/devel/pth > # make deinstall > # make clean > # rm -rf /tmp/All /tmp/devel /tmp/Latest /tmp/usr > # make package PACKAGES="/tmp" > # tar -xjf /tmp/All/pth-2.0.7.tbz -C /tmp +CONTENTS > # diff -u /tmp/+CONTENTS /var/db/pkg/pth-2.0.7/+CONTENTS > --- /tmp/+CONTENTS Mon Jan 29 00:46:32 2007 > +++ /var/db/pkg/pth-2.0.7/+CONTENTS Mon Jan 29 00:46:32 2007 > @@ -40,14 +40,5 @@ > @dirrm lib/pth > @exec /sbin/ldconfig -m /usr/local/lib/pth > @unexec /sbin/ldconfig -R > -@cwd . > -@ignore > -+COMMENT > -@comment MD5:fe3390e01609cef4464e3da82ca715eb > -@ignore > -+DESC > -@comment MD5:5857a78166a3bfc28f7d918d443db7d0 > -@ignore > -+MTREE_DIRS > -@comment MD5:62ec091098aedd20983344152fd56afb > -@mtree +MTREE_DIRS > +libdata/ldconfig/pth > +@comment MD5:4f8e8d8ed05f7e16d74fc8d39b779d38 > # ll /usr/local/libdata/ldconfig/pth > -rw-r--r-- 1 root wheel 19 Jan 29 00:46 /usr/local/libdata/ > ldconfig/pth package for me. Are you sure you have an up-to-date ports collection (in particular Mk/)? This is added to the pkg-plist by the USE_LDCONFIG logic. xor# grep -r ldconfig/pth /var/db/pkg/pth-2.0.7/ +CONTENTS /var/db/pkg/pth-2.0.7/+CONTENTS:libdata/ldconfig/pth +CONTENTS:libdata/ldconfig/pth Kris |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On Jan 28, 2007, at 19:13 , Kris Kennaway wrote: > On Sun, Jan 28, 2007 at 06:55:59PM -0600, Jon Passki wrote: > >>> I am unable to replicate this: the apache22 port does not install >>> these files on my system. >> >> I was able to replicate devel/pth on my system (pay attention to >> libdata/ldconfig/pth at the bottom). I can go back and do a complete >> install again for the others. > >> >> # cat /etc/make.conf >> # port stuff >> WRKDIRPREFIX="/tmp" >> DISTDIR="/var/backups/distfiles" >> PACKAGES="/var/backups/pub/FreeBSD/ports/i386/packages-6.2-release" >> # added by use.perl 2007-01-23 17:20:15 >> PERL_VER=5.8.8 >> PERL_VERSION=5.8.8 >> >> # cd /usr/ports/devel/pth >> # make deinstall >> # make clean >> # rm -rf /tmp/All /tmp/devel /tmp/Latest /tmp/usr >> # make package PACKAGES="/tmp" >> # tar -xjf /tmp/All/pth-2.0.7.tbz -C /tmp +CONTENTS >> # diff -u /tmp/+CONTENTS /var/db/pkg/pth-2.0.7/+CONTENTS >> --- /tmp/+CONTENTS Mon Jan 29 00:46:32 2007 >> +++ /var/db/pkg/pth-2.0.7/+CONTENTS Mon Jan 29 00:46:32 2007 >> @@ -40,14 +40,5 @@ >> @dirrm lib/pth >> @exec /sbin/ldconfig -m /usr/local/lib/pth >> @unexec /sbin/ldconfig -R >> -@cwd . >> -@ignore >> -+COMMENT >> -@comment MD5:fe3390e01609cef4464e3da82ca715eb >> -@ignore >> -+DESC >> -@comment MD5:5857a78166a3bfc28f7d918d443db7d0 >> -@ignore >> -+MTREE_DIRS >> -@comment MD5:62ec091098aedd20983344152fd56afb >> -@mtree +MTREE_DIRS >> +libdata/ldconfig/pth >> +@comment MD5:4f8e8d8ed05f7e16d74fc8d39b779d38 >> # ll /usr/local/libdata/ldconfig/pth >> -rw-r--r-- 1 root wheel 19 Jan 29 00:46 /usr/local/libdata/ >> ldconfig/pth > > I can't confirm this one either; it's correctly registered in the > package for me. Are you sure you have an up-to-date ports collection > (in particular Mk/)? This is added to the pkg-plist by the > USE_LDCONFIG logic. > > xor# grep -r ldconfig/pth /var/db/pkg/pth-2.0.7/ +CONTENTS > /var/db/pkg/pth-2.0.7/+CONTENTS:libdata/ldconfig/pth > +CONTENTS:libdata/ldconfig/pth This was a pretty recent (within a day) port update w/ a slightly custom supfile [1]. Got any suggestions on things I could look for? Are you taking a look at the installed +CONTENTS file or the one included in the package created by `make package` and friends? Cheers, Jon [1] grep -v '^#' ports-supfile *default host=cvsup9.us.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress ports-base ports-archivers ports-comms ports-converters ports-databases ports-deskutils ports-devel ports-dns ports-editors ports-emulators ports-ftp ports-graphics ports-java ports-lang ports-mail ports-math ports-misc ports-multimedia ports-net ports-net-mgmt ports-print ports-security ports-shells ports-sysutils ports-textproc ports-www ports-x11 ports-x11-clocks ports-x11-fm ports-x11-fonts ports-x11-servers ports-x11-themes ports-x11-toolkits ports-x11-wm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFFvUwVZpJsLIS+QSIRAiexAJ0cPaNiLPQANKnRf2bZKdF8Zf2JrwCffTvj 3KgOw6/Xq6OF9gj8mbopACg= =4AXa -----END PGP SIGNATURE----- _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[hidden email]" |
|
On Sun, Jan 28, 2007 at 07:21:03PM -0600, Jon Passki wrote:
> > xor# grep -r ldconfig/pth /var/db/pkg/pth-2.0.7/ +CONTENTS > > /var/db/pkg/pth-2.0.7/+CONTENTS:libdata/ldconfig/pth > > +CONTENTS:libdata/ldconfig/pth > > This was a pretty recent (within a day) port update w/ a slightly > custom supfile [1]. Got any suggestions on things I could look for? > Are you taking a look at the installed +CONTENTS file or the one > included in the package created by `make package` and friends? I'm comparing both, the latter file was extracted from the freshly made package. The only thing I can think of is that you are actually extracting stale packages instead of the freshly made ones. Your ports collection is incomplete since you drop a number of the categories. Maybe that is related, otherwise I can't imagine what would cause this. Kris |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On Jan 28, 2007, at 19:24 , Kris Kennaway wrote: > On Sun, Jan 28, 2007 at 07:21:03PM -0600, Jon Passki wrote: > >>> xor# grep -r ldconfig/pth /var/db/pkg/pth-2.0.7/ +CONTENTS >>> /var/db/pkg/pth-2.0.7/+CONTENTS:libdata/ldconfig/pth >>> +CONTENTS:libdata/ldconfig/pth >> >> This was a pretty recent (within a day) port update w/ a slightly >> custom supfile [1]. Got any suggestions on things I could look for? >> Are you taking a look at the installed +CONTENTS file or the one >> included in the package created by `make package` and friends? > > I'm comparing both, the latter file was extracted from the freshly > made package. The only thing I can think of is that you are actually > extracting stale packages instead of the freshly made ones. > > Your ports collection is incomplete since you drop a number of the > categories. Maybe that is related, otherwise I can't imagine what > would cause this. grep -v '^#' ports-supfile *default host=cvsup9.us.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress ports-all [ran cvsup -L 2 -g ports-supfile] [devel01] ~# jexec 1 tcsh You have mail. kilo# cd /usr/ports/devel/pth kilo# make deinstall ===> Deinstalling for devel/pth ===> Deinstalling pth-2.0.7 kilo# make clean ===> Cleaning for pth-2.0.7 kilo# rm -rf /tmp/All /tmp/devel /tmp/Latest kilo# make package PACKAGES="/tmp" > /tmp/pth-2.0.7.out kilo# tail !$ tail /tmp/pth-2.0.7.out to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.gnu.org/software/pth/ ===> Building package for pth-2.0.7 ===> Generating temporary packing list Creating package /tmp/All/pth-2.0.7.tbz Registering depends:. Creating bzip'd tar ball in '/tmp/All/pth-2.0.7.tbz' kilo# tar -xjf /tmp/All/pth-2.0.7.tbz -C /tmp +CONTENTS kilo# diff -u /tmp/+CONTENTS /var/db/pkg/pth-2.0.7/+CONTENTS - --- /tmp/+CONTENTS Mon Jan 29 01:53:09 2007 +++ /var/db/pkg/pth-2.0.7/+CONTENTS Mon Jan 29 01:53:09 2007 @@ -40,14 +40,5 @@ @dirrm lib/pth @exec /sbin/ldconfig -m /usr/local/lib/pth @unexec /sbin/ldconfig -R - -@cwd . - -@ignore - -+COMMENT - -@comment MD5:fe3390e01609cef4464e3da82ca715eb - -@ignore - -+DESC - -@comment MD5:5857a78166a3bfc28f7d918d443db7d0 - -@ignore - -+MTREE_DIRS - -@comment MD5:62ec091098aedd20983344152fd56afb - -@mtree +MTREE_DIRS +libdata/ldconfig/pth +@comment MD5:4f8e8d8ed05f7e16d74fc8d39b779d38 kilo# ll /usr/local/libdata/ldconfig/pth - -rw-r--r-- 1 root wheel 19 Jan 29 01:53 /usr/local/libdata/ ldconfig/pth Same thing... Okay, I did a lot of testing here and I think I got it. Without any make.conf file set, everything worked. With the previously posted one [1], it didn't work. I commented out WKRDIRPREFIX and it worked. Odd. Can you test this? I'm running 6.2R. I've also noticed issues with OPTION files via dialogue, which fail if I hit "OKAY" but work if I hit "CANCEL". Jon [1] # cat /etc/make.conf # port stuff WRKDIRPREFIX="/tmp" DISTDIR="/var/backups/distfiles" PACKAGES="/var/backups/pub/FreeBSD/ports/i386/packages-6.2-release" # added by use.perl 2007-01-23 17:20:15 PERL_VER=5.8.8 PERL_VERSION=5.8.8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFFvVcuZpJsLIS+QSIRAmElAKCOws0wdbdpQe5FhHc5NHIFvIZrNQCglldS Uni7pQnpKM2U/EW70LGaqMo= =AaKK -----END PGP SIGNATURE----- _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[hidden email]" |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On Jan 28, 2007, at 20:08 , Jon Passki wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On Jan 28, 2007, at 19:24 , Kris Kennaway wrote: > >> On Sun, Jan 28, 2007 at 07:21:03PM -0600, Jon Passki wrote: >> >>>> xor# grep -r ldconfig/pth /var/db/pkg/pth-2.0.7/ +CONTENTS >>>> /var/db/pkg/pth-2.0.7/+CONTENTS:libdata/ldconfig/pth >>>> +CONTENTS:libdata/ldconfig/pth >>> >>> This was a pretty recent (within a day) port update w/ a slightly >>> custom supfile [1]. Got any suggestions on things I could look for? >>> Are you taking a look at the installed +CONTENTS file or the one >>> included in the package created by `make package` and friends? >> >> I'm comparing both, the latter file was extracted from the freshly >> made package. The only thing I can think of is that you are actually >> extracting stale packages instead of the freshly made ones. >> >> Your ports collection is incomplete since you drop a number of the >> categories. Maybe that is related, otherwise I can't imagine what >> would cause this. > > Same thing... Okay, I did a lot of testing here and I think I got > it. Without any make.conf file set, everything worked. With the > previously posted one [1], it didn't work. I commented out > WKRDIRPREFIX and it worked. Odd. Can you test this? I'm running > 6.2R. I've also noticed issues with OPTION files via dialogue, > which fail if I hit "OKAY" but work if I hit "CANCEL". GEEZ. I'm blind. I used double quotes in my /etc/make.conf. Without the quotes everything worked. Sorry 'bout the traffic... Cheers, Jon > [1] > # cat /etc/make.conf > # port stuff > WRKDIRPREFIX="/tmp" > DISTDIR="/var/backups/distfiles" > PACKAGES="/var/backups/pub/FreeBSD/ports/i386/packages-6.2-release" > # added by use.perl 2007-01-23 17:20:15 > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFFvVgrZpJsLIS+QSIRAiAzAJ9SaGhQwXtCKfD9DfwJdb/C6ADKogCfbhCH AJ3G5I/4wZUiHnHphETbcVQ= =kKre -----END PGP SIGNATURE----- _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[hidden email]" |
| Powered by Nabble | Edit this page |
