From matthew at FreeBSD.org Sun Oct 2 09:03:17 2016 From: matthew at FreeBSD.org (Matthew Seaman) Date: Sun, 2 Oct 2016 10:02:51 +0100 Subject: Upgrading catch-22 Message-ID: <8c035f9b-d8c7-62f9-7b0c-9cd042d39ce7@FreeBSD.org> Dear all, Here's a bit of a trap you can get into when upgrading to 12-CURRENT. I've a 12-CURRENT VM which I last upgraded right after 11-STABLE was branched, and current switched from 11 to 12. Now I've come to rebuild base and create a new set of base packages, and I observe this in the output from 'make packages': ===> zlib (install) install -U -M /usr/obj/usr/src/amd64.amd64/kernelstage//kernel.premeta -D /usr/obj/usr/src/amd64.amd64/kernelstage -T release -o root -g wheel -m 555 zlib.ko /usr/obj/usr/src/amd64.amd64/kernelstage/kernel/boot/kernel/ install -U -M /usr/obj/usr/src/amd64.amd64/kernelstage//kernel.premeta -D /usr/obj/usr/src/amd64.amd64/kernelstage -T debug -o root -g wheel -m 555 zlib.ko.debug /usr/obj/usr/src/amd64.amd64/kernelstage/kernel/usr/lib/debug/boot/kernel/ kldxref /usr/obj/usr/src/amd64.amd64/kernelstage/kernel/boot/kernel ===> Creating FreeBSD-acct-debug-12.0.s20161001100232 /lib/libc.so.7: version FBSD_1.5 required by /usr/local/lib/libpkg.so.3 not found /lib/libc.so.7: version FBSD_1.5 required by /usr/local/lib/libpkg.so.3 not found *** Error code 1 Stop. make[5]: stopped in /usr/src *** Error code 1 Stop. make[4]: stopped in /usr/src *** Error code 1 Stop. make[3]: stopped in /usr/src *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src Yeah -- turns out updating pkg(8) from the repos right before updating the base system was not a particularly good idea, as now pkg expects an ABI version from libc newer than what was installed. So, I need to install the new package with the latest libc.so so I can run pkg to install the new package with the latest libc.so... Catch 22. I got around the problem relatively easily by symlinking pkg to pkg-static: # ls -l /usr/local/sbin/pkg* lrwxr-xr-x 1 root wheel 10 Oct 1 11:11 /usr/local/sbin/pkg@ -> pkg-static -rwxr-xr-x 1 root wheel 172368 Sep 25 14:50 /usr/local/sbin/pkg-dynamic* -rwxr-xr-x 1 root wheel 5845512 Sep 25 14:50 /usr/local/sbin/pkg-static* -r-xr-xr-x 1 root wheel 3913 Sep 25 14:50 /usr/local/sbin/pkg2ng* I know that in general you want to use the dynamically linked version of pkg(8), because you can't do the dynamic linkage analysis to find out what shlibs are provided and required by various binaries otherwise. However, in order to extract oneself from this sort of mess, it would be really handy to be able to say: # make PKG_CMD=/usr/local/sbin/pkg-static packages # pkg-static upgrade Seems that the literal command 'pkg' is used everywhere. Change that to provide a ${PKG_CMD} variable that can be overridden. https://reviews.freebsd.org/D8120 Cheers, Matthew -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 931 bytes Desc: OpenPGP digital signature URL: From kevans91 at ksu.edu Thu Oct 27 12:52:11 2016 From: kevans91 at ksu.edu (Kyle Evans) Date: Wed, 26 Oct 2016 18:41:35 -0500 Subject: Custom -NODEBUG kernel configuration failing Message-ID: Hello! I've recently setup a server dedicated to doing pkgbase builds for all of my other machines. I've got 5 custom configurations (GENERIC with irrelevant devices removed) as well as corresponding -NODEBUG for each. These -NODEBUG configs are modeled after GENERIC-NODEBUG, but with 'nomakeoptions DEBUG' added to the nooptions* lines. When I try to issue a `make packages` with KERNCONF including any of these -NODEBUG configs and the proper NO_INSTALLEXTRAKERNELS option specified, make packages fails with the following end of log: https://files.kyle-evans.net/freebsd/error.log All of my debug kernel configs work, but every -NODEBUG (with exception to GENERIC-NODEBUG) exhibits this same problem (presumably linked to nomakeoptions DEBUG) -- it tries to generate the $CONF-debug package and dies when no .plist comes out of it. Is this something that should be clearly unsupported, or just a bug that should be fixed right up? Thanks, Kyle Evans From woodsb02 at gmail.com Mon Oct 31 14:32:20 2016 From: woodsb02 at gmail.com (Ben Woods) Date: Mon, 31 Oct 2016 22:32:18 +0800 Subject: Calendars (and other files) missing from base packages In-Reply-To: References: Message-ID: On 11 July 2016 at 18:40, Ben Woods wrote: > Hi everyone, > > I have noticed a number of files which do not seem to be part of the base > packages, and as such are not being updated on my system which is using > PkgBase. I realise the /etc config files are not included in base packages > yet, so I have excluded /etc from my investigation. > > The files on my system which are in /usr/obj/usr/src/amd64.amd64/worldstage/ > but have not been updated on my system with PkgBase are: > /usr/lib/libgcc_eh_p.a > /usr/lib/libgcc_eh.a > /usr/share/examples/etc/sysctl.conf > /usr/share/examples/etc/csh.logout > /usr/share/examples/etc/rc.resume > /usr/share/examples/etc/ntp.conf > /usr/share/examples/etc/libalias.conf > /usr/share/examples/etc/services > /usr/share/examples/etc/shells > /usr/share/examples/etc/portsnap.conf > /usr/share/examples/etc/mac.conf > /usr/share/examples/etc/rc.shutdown > /usr/share/examples/etc/disktab > /usr/share/examples/etc/inetd.conf > /usr/share/examples/etc/auto_master > /usr/share/examples/etc/network.subr > /usr/share/examples/etc/rc.initdiskless > /usr/share/examples/etc/hosts.allow > /usr/share/examples/etc/group > /usr/share/examples/etc/pf.os > /usr/share/examples/etc/regdomain.xml > /usr/share/examples/etc/hosts.equiv > /usr/share/examples/etc/newsyslog.conf > /usr/share/examples/etc/devfs.conf > /usr/share/examples/etc/nscd.conf > /usr/share/examples/etc/protocols > /usr/share/examples/etc/netconfig > /usr/share/examples/etc/apmd.conf > /usr/share/examples/etc/motd > /usr/share/examples/etc/opieaccess > /usr/share/examples/etc/rc > /usr/share/examples/etc/mail.rc > /usr/share/examples/etc/phones > /usr/share/examples/etc/crontab > /usr/share/examples/etc/devd.conf > /usr/share/examples/etc/libmap.conf > /usr/share/examples/etc/netstart > /usr/share/examples/etc/csh.login > /usr/share/examples/etc/ftpusers > /usr/share/examples/etc/gettytab > /usr/share/examples/etc/pccard_ether > /usr/share/examples/etc/login.access > /usr/share/examples/etc/ddb.conf > /usr/share/examples/etc/dhclient.conf > /usr/share/examples/etc/rc.suspend > /usr/share/examples/etc/hosts.lpd > /usr/share/examples/etc/profile > /usr/share/examples/etc/login.conf > /usr/share/examples/etc/fbtab > /usr/share/examples/etc/printcap > /usr/share/examples/etc/rc.sendmail > /usr/share/examples/etc/remote > /usr/share/examples/etc/rc.subr > /usr/share/examples/etc/rc.firewall > /usr/share/examples/etc/rpc > /usr/share/examples/etc/networks > /usr/share/examples/etc/nsmb.conf > /usr/share/examples/etc/rc.bsdextended > /usr/share/examples/etc/ttys > /usr/share/examples/etc/syslog.conf > /usr/share/examples/etc/csh.cshrc > /usr/share/examples/etc/termcap.small > /usr/share/examples/etc/freebsd-update.conf > /usr/share/examples/etc/hosts > /usr/share/examples/etc/locate.rc > /usr/share/examples/etc/nsswitch.conf > /usr/share/examples/etc/amd.map > /usr/share/openssl/man/mandoc.db > /usr/share/man/mandoc.db > /usr/share/calendar/calendar.russian > /usr/share/calendar/calendar.croatian > /usr/share/calendar/calendar.ukrainian > /usr/share/calendar/uk_UA.KOI8-U/calendar.misc > /usr/share/calendar/uk_UA.KOI8-U/calendar.holiday > /usr/share/calendar/uk_UA.KOI8-U/calendar.orthodox > /usr/share/calendar/uk_UA.KOI8-U/calendar.all > /usr/share/calendar/calendar.dutch > /usr/share/calendar/calendar.german > /usr/share/calendar/fr_FR.ISO8859-1/calendar.fetes > /usr/share/calendar/fr_FR.ISO8859-1/calendar.french > /usr/share/calendar/fr_FR.ISO8859-1/calendar.jferies > /usr/share/calendar/fr_FR.ISO8859-1/calendar.all > /usr/share/calendar/fr_FR.ISO8859-1/calendar.proverbes > /usr/share/calendar/calendar.newzealand > /usr/share/calendar/calendar.brazilian > /usr/share/calendar/calendar.southafrica > /usr/share/calendar/de_DE.ISO8859-1/calendar.musik > /usr/share/calendar/de_DE.ISO8859-1/calendar.literatur > /usr/share/calendar/de_DE.ISO8859-1/calendar.all > /usr/share/calendar/de_DE.ISO8859-1/calendar.wissenschaft > /usr/share/calendar/de_DE.ISO8859-1/calendar.kirche > /usr/share/calendar/de_DE.ISO8859-1/calendar.geschichte > /usr/share/calendar/de_DE.ISO8859-1/calendar.feiertag > /usr/share/calendar/calendar.holiday > /usr/share/calendar/calendar.lotr > /usr/share/calendar/calendar.history > /usr/share/calendar/calendar.judaic > /usr/share/calendar/calendar.usholiday > /usr/share/calendar/calendar.french > /usr/share/calendar/calendar.birthday > /usr/share/calendar/calendar.music > /usr/share/calendar/pt_BR.ISO8859-1/calendar.commemorative > /usr/share/calendar/pt_BR.ISO8859-1/calendar.mcommemorative > /usr/share/calendar/pt_BR.ISO8859-1/calendar.holidays > /usr/share/calendar/pt_BR.ISO8859-1/calendar.all > /usr/share/calendar/de_AT.ISO_8859-15/calendar.feiertag > /usr/share/calendar/ru_RU.KOI8-R/calendar.pagan > /usr/share/calendar/ru_RU.KOI8-R/calendar.all > /usr/share/calendar/ru_RU.KOI8-R/calendar.military > /usr/share/calendar/ru_RU.KOI8-R/calendar.orthodox > /usr/share/calendar/ru_RU.KOI8-R/calendar.holiday > /usr/share/calendar/ru_RU.KOI8-R/calendar.common > /usr/share/calendar/hu_HU.ISO8859-2/calendar.all > /usr/share/calendar/hu_HU.ISO8859-2/calendar.nevnapok > /usr/share/calendar/hu_HU.ISO8859-2/calendar.unnepek > /usr/share/calendar/hr_HR.ISO8859-2/calendar.all > /usr/share/calendar/hr_HR.ISO8859-2/calendar.praznici > /usr/share/calendar/calendar.all > /usr/share/calendar/calendar.computer > /usr/share/calendar/calendar.christian > /usr/share/calendar/pt_BR.UTF-8/calendar.holidays > /usr/share/calendar/pt_BR.UTF-8/calendar.mcommemorative > /usr/share/calendar/pt_BR.UTF-8/calendar.commemorative > /usr/share/calendar/pt_BR.UTF-8/calendar.all > /usr/share/calendar/ru_RU.UTF-8/calendar.all > /usr/share/calendar/ru_RU.UTF-8/calendar.common > /usr/share/calendar/ru_RU.UTF-8/calendar.holiday > /usr/share/calendar/ru_RU.UTF-8/calendar.military > /usr/share/calendar/ru_RU.UTF-8/calendar.pagan > /usr/share/calendar/ru_RU.UTF-8/calendar.orthodox > /usr/share/calendar/calendar.hungarian > /usr/share/calendar/calendar.world > /usr/share/calendar/calendar.freebsd > /usr/share/calendar/calendar.australia > /usr/share/tmac/mm/locale > /usr/share/tmac/mm/se_locale > /usr/share/tmac/man.local > /usr/include/atf-c.h > /usr/include/gnu/regex.h > /usr/include/atf-c++.hpp > /.cshrc > /.profile > /root/.login > /root/.profile > /root/.cshrc > /root/.k5login > /COPYRIGHT > /boot/device.hints > > The steps I took to create this list are: > > 1. Since I updated my system with PkgBase yesterday, I ran the following > command to find all files which have not been modified in the last 2 days: > # find / -type f -mtime +2d -not -path '/etc/*' -not -path '/usr/local/*' > -not -path '/dev/*' -not -path '/tmp/*' -not -path '/var/*' -not -path > '/usr/src/*' -not -path '/usr/obj/*' -not -path '/poudriere/*' -not -path > '/usr/doc/*' -not -path '/usr/home/*' > ~/outdated.txt > > 2. I edited this file to add the prefix of /usr/obj/usr/src/amd64.amd64/worldstage/ > to each line, and then searched for which of the files also exist in > worldstage (this command emits errors for those that do not exist in > worldstage, and only outputs those that do exist to the new file): > $ cat outdated.txt | xargs find > outdated2.txt > > 3. Then I edited the file to strip the prefix of > /usr/obj/usr/src/amd64.amd64/worldstage/ from each line. > > Regards, > Ben > > -- > From: Benjamin Woods > woodsb02 at gmail.com > Now that FreeBSD 11.0 has been released, it is probably time we put some more attention on PkgBase again (to ensure it is ready for 11.1!). Anyone have ideas as to why the above files are not being included in packages? Regards, Ben From gjb at FreeBSD.org Mon Oct 31 16:07:29 2016 From: gjb at FreeBSD.org (Glen Barber) Date: Mon, 31 Oct 2016 16:07:28 +0000 Subject: Calendars (and other files) missing from base packages In-Reply-To: References: Message-ID: <20161031160728.GD18685@FreeBSD.org> On Mon, Oct 31, 2016 at 10:32:18PM +0800, Ben Woods wrote: > On 11 July 2016 at 18:40, Ben Woods wrote: > > > Hi everyone, > > > > I have noticed a number of files which do not seem to be part of the base > > packages, and as such are not being updated on my system which is using > > PkgBase. I realise the /etc config files are not included in base packages > > yet, so I have excluded /etc from my investigation. > > > > The files on my system which are in /usr/obj/usr/src/amd64.amd64/worldstage/ > > but have not been updated on my system with PkgBase are: > > /usr/lib/libgcc_eh_p.a > > /usr/lib/libgcc_eh.a > > /usr/share/examples/etc/sysctl.conf > > /usr/share/examples/etc/csh.logout > > /usr/share/examples/etc/rc.resume > > /usr/share/examples/etc/ntp.conf > > /usr/share/examples/etc/libalias.conf > > /usr/share/examples/etc/services > > /usr/share/examples/etc/shells > > /usr/share/examples/etc/portsnap.conf > > /usr/share/examples/etc/mac.conf > > /usr/share/examples/etc/rc.shutdown > > /usr/share/examples/etc/disktab > > /usr/share/examples/etc/inetd.conf > > /usr/share/examples/etc/auto_master > > /usr/share/examples/etc/network.subr > > /usr/share/examples/etc/rc.initdiskless > > /usr/share/examples/etc/hosts.allow > > /usr/share/examples/etc/group > > /usr/share/examples/etc/pf.os > > /usr/share/examples/etc/regdomain.xml > > /usr/share/examples/etc/hosts.equiv > > /usr/share/examples/etc/newsyslog.conf > > /usr/share/examples/etc/devfs.conf > > /usr/share/examples/etc/nscd.conf > > /usr/share/examples/etc/protocols > > /usr/share/examples/etc/netconfig > > /usr/share/examples/etc/apmd.conf > > /usr/share/examples/etc/motd > > /usr/share/examples/etc/opieaccess > > /usr/share/examples/etc/rc > > /usr/share/examples/etc/mail.rc > > /usr/share/examples/etc/phones > > /usr/share/examples/etc/crontab > > /usr/share/examples/etc/devd.conf > > /usr/share/examples/etc/libmap.conf > > /usr/share/examples/etc/netstart > > /usr/share/examples/etc/csh.login > > /usr/share/examples/etc/ftpusers > > /usr/share/examples/etc/gettytab > > /usr/share/examples/etc/pccard_ether > > /usr/share/examples/etc/login.access > > /usr/share/examples/etc/ddb.conf > > /usr/share/examples/etc/dhclient.conf > > /usr/share/examples/etc/rc.suspend > > /usr/share/examples/etc/hosts.lpd > > /usr/share/examples/etc/profile > > /usr/share/examples/etc/login.conf > > /usr/share/examples/etc/fbtab > > /usr/share/examples/etc/printcap > > /usr/share/examples/etc/rc.sendmail > > /usr/share/examples/etc/remote > > /usr/share/examples/etc/rc.subr > > /usr/share/examples/etc/rc.firewall > > /usr/share/examples/etc/rpc > > /usr/share/examples/etc/networks > > /usr/share/examples/etc/nsmb.conf > > /usr/share/examples/etc/rc.bsdextended > > /usr/share/examples/etc/ttys > > /usr/share/examples/etc/syslog.conf > > /usr/share/examples/etc/csh.cshrc > > /usr/share/examples/etc/termcap.small > > /usr/share/examples/etc/freebsd-update.conf > > /usr/share/examples/etc/hosts > > /usr/share/examples/etc/locate.rc > > /usr/share/examples/etc/nsswitch.conf > > /usr/share/examples/etc/amd.map > > /usr/share/openssl/man/mandoc.db > > /usr/share/man/mandoc.db > > /usr/share/calendar/calendar.russian > > /usr/share/calendar/calendar.croatian > > /usr/share/calendar/calendar.ukrainian > > /usr/share/calendar/uk_UA.KOI8-U/calendar.misc > > /usr/share/calendar/uk_UA.KOI8-U/calendar.holiday > > /usr/share/calendar/uk_UA.KOI8-U/calendar.orthodox > > /usr/share/calendar/uk_UA.KOI8-U/calendar.all > > /usr/share/calendar/calendar.dutch > > /usr/share/calendar/calendar.german > > /usr/share/calendar/fr_FR.ISO8859-1/calendar.fetes > > /usr/share/calendar/fr_FR.ISO8859-1/calendar.french > > /usr/share/calendar/fr_FR.ISO8859-1/calendar.jferies > > /usr/share/calendar/fr_FR.ISO8859-1/calendar.all > > /usr/share/calendar/fr_FR.ISO8859-1/calendar.proverbes > > /usr/share/calendar/calendar.newzealand > > /usr/share/calendar/calendar.brazilian > > /usr/share/calendar/calendar.southafrica > > /usr/share/calendar/de_DE.ISO8859-1/calendar.musik > > /usr/share/calendar/de_DE.ISO8859-1/calendar.literatur > > /usr/share/calendar/de_DE.ISO8859-1/calendar.all > > /usr/share/calendar/de_DE.ISO8859-1/calendar.wissenschaft > > /usr/share/calendar/de_DE.ISO8859-1/calendar.kirche > > /usr/share/calendar/de_DE.ISO8859-1/calendar.geschichte > > /usr/share/calendar/de_DE.ISO8859-1/calendar.feiertag > > /usr/share/calendar/calendar.holiday > > /usr/share/calendar/calendar.lotr > > /usr/share/calendar/calendar.history > > /usr/share/calendar/calendar.judaic > > /usr/share/calendar/calendar.usholiday > > /usr/share/calendar/calendar.french > > /usr/share/calendar/calendar.birthday > > /usr/share/calendar/calendar.music > > /usr/share/calendar/pt_BR.ISO8859-1/calendar.commemorative > > /usr/share/calendar/pt_BR.ISO8859-1/calendar.mcommemorative > > /usr/share/calendar/pt_BR.ISO8859-1/calendar.holidays > > /usr/share/calendar/pt_BR.ISO8859-1/calendar.all > > /usr/share/calendar/de_AT.ISO_8859-15/calendar.feiertag > > /usr/share/calendar/ru_RU.KOI8-R/calendar.pagan > > /usr/share/calendar/ru_RU.KOI8-R/calendar.all > > /usr/share/calendar/ru_RU.KOI8-R/calendar.military > > /usr/share/calendar/ru_RU.KOI8-R/calendar.orthodox > > /usr/share/calendar/ru_RU.KOI8-R/calendar.holiday > > /usr/share/calendar/ru_RU.KOI8-R/calendar.common > > /usr/share/calendar/hu_HU.ISO8859-2/calendar.all > > /usr/share/calendar/hu_HU.ISO8859-2/calendar.nevnapok > > /usr/share/calendar/hu_HU.ISO8859-2/calendar.unnepek > > /usr/share/calendar/hr_HR.ISO8859-2/calendar.all > > /usr/share/calendar/hr_HR.ISO8859-2/calendar.praznici > > /usr/share/calendar/calendar.all > > /usr/share/calendar/calendar.computer > > /usr/share/calendar/calendar.christian > > /usr/share/calendar/pt_BR.UTF-8/calendar.holidays > > /usr/share/calendar/pt_BR.UTF-8/calendar.mcommemorative > > /usr/share/calendar/pt_BR.UTF-8/calendar.commemorative > > /usr/share/calendar/pt_BR.UTF-8/calendar.all > > /usr/share/calendar/ru_RU.UTF-8/calendar.all > > /usr/share/calendar/ru_RU.UTF-8/calendar.common > > /usr/share/calendar/ru_RU.UTF-8/calendar.holiday > > /usr/share/calendar/ru_RU.UTF-8/calendar.military > > /usr/share/calendar/ru_RU.UTF-8/calendar.pagan > > /usr/share/calendar/ru_RU.UTF-8/calendar.orthodox > > /usr/share/calendar/calendar.hungarian > > /usr/share/calendar/calendar.world > > /usr/share/calendar/calendar.freebsd > > /usr/share/calendar/calendar.australia > > /usr/share/tmac/mm/locale > > /usr/share/tmac/mm/se_locale > > /usr/share/tmac/man.local > > /usr/include/atf-c.h > > /usr/include/gnu/regex.h > > /usr/include/atf-c++.hpp > > /.cshrc > > /.profile > > /root/.login > > /root/.profile > > /root/.cshrc > > /root/.k5login > > /COPYRIGHT > > /boot/device.hints > > > > The steps I took to create this list are: > > > > 1. Since I updated my system with PkgBase yesterday, I ran the following > > command to find all files which have not been modified in the last 2 days: > > # find / -type f -mtime +2d -not -path '/etc/*' -not -path '/usr/local/*' > > -not -path '/dev/*' -not -path '/tmp/*' -not -path '/var/*' -not -path > > '/usr/src/*' -not -path '/usr/obj/*' -not -path '/poudriere/*' -not -path > > '/usr/doc/*' -not -path '/usr/home/*' > ~/outdated.txt > > > > 2. I edited this file to add the prefix of /usr/obj/usr/src/amd64.amd64/worldstage/ > > to each line, and then searched for which of the files also exist in > > worldstage (this command emits errors for those that do not exist in > > worldstage, and only outputs those that do exist to the new file): > > $ cat outdated.txt | xargs find > outdated2.txt > > > > 3. Then I edited the file to strip the prefix of > > /usr/obj/usr/src/amd64.amd64/worldstage/ from each line. > > > > Regards, > > Ben > > > > -- > > From: Benjamin Woods > > woodsb02 at gmail.com > > > > Now that FreeBSD 11.0 has been released, it is probably time we put some > more attention on PkgBase again (to ensure it is ready for 11.1!). > > Anyone have ideas as to why the above files are not being included in > packages? > Work on this will continue now that 11.0 is out. I do have notes on why the above files are not being properly packaged, I just need to find them, but I seem to recall that the cause was identified. Glen -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: