[oi-dev] onu seems broke (well, pkg actually)

Richard PALO richard.palo at free.fr
Sat Dec 21 17:54:48 UTC 2013


Le 21/12/13 18:19, Richard PALO a écrit :
> Le 21/12/13 17:41, Richard PALO a écrit :
>> Le 13/12/13 17:55, Jon Tibble a écrit :
>>> Hi Richard,
>>>
>>> The graphical packages are obsoleted by the new pkg so you need to
>>>
>>> pkg uninstall -v package-manager update-manager
>>>
>>> Then you can update pkg and you should be able to carry on from there.
>>>
>>> JT
>>>
>>>
>> That seemed to work at the time, but now I have another anomaly.
>>
>> I have since built illumos-gate with the new pkg installed.
>>
>> Onu goes okay, but doesn't update anything:
>>> richard at x3200:~/src/illumos-gate$ pfexec usr/src/tools/scripts/onu -d
>>> $HOME/src/illumos-gate/packages/i386/nightly -v -Z -t acpi-dev2
>>> beadm create acpi-dev2
>>> Created successfully
>>> beadm mount acpi-dev2 /tmp/onu.UuWDYM
>>> Mounted successfully on: '/tmp/onu.UuWDYM'
>>> pkg -R /tmp/onu.UuWDYM set-publisher -e --no-refresh -P -O
>>> file:///home/richard/src/illumos-gate/packages/i386/nightly/repo.redist
>>> on-nightly
>>>
>>> pkg -R /tmp/onu.UuWDYM refresh --full
>>> pkg -R /tmp/onu.UuWDYM image-update
>>> Aucune mise à jour n'est disponible pour cette image.
>>> beadm activate acpi-dev2
>>> Activated successfully
>> (sorry, I forgot the LANG=C, but you should get the point)
>>
>>> richard at devzone:~/src/illumos-gate$ pkg version
>>> c6127c3
>>> richard at devzone:~/src/illumos-gate$ pkgrepo version
>>> c6127c3
>>> richard at devzone:~/src/illumos-gate$ LANG=C pkgrepo list -s
>>> $HOME/src/illumos-gate/packages/i386/nightly/repo.redist
>>> PUBLISHER  NAME                                          O VERSION
>>> richard at devzone:~/src/illumos-gate$ ls
>>> $HOME/src/illumos-gate/packages/i386/nightly/repo.redist
>>> catalog/    file/       pkg/        trans/
>>> cfg_cache   index/      tmp/
>>
>> Just to make sure, I built again after blowing away the packages
>> directory, but the result is the same.
>>
>> Is there some magic needed to get the new 'pkg' to work?
>
> Looked again, and found the following:
>> Creating repository metadata
>> Traceback (most recent call last):
>>   File "/usr/lib/pkg.depotd", line 800, in <module>
>>     cherrypy.config.update(gconf)
>>   File "/usr/lib/python2.6/vendor-packages/cherrypy/_cpconfig.py",
>> line 286, in update
>>     self.namespaces(config)
>>   File "/usr/lib/python2.6/vendor-packages/cherrypy/_cpconfig.py",
>> line 222, in __call__
>>     handler(k, v)
>>   File "/usr/lib/python2.6/vendor-packages/cherrypy/_cpconfig.py",
>> line 246, in <lambda>
>>     "log": lambda k, v: setattr(cherrypy.log, k, v),
>>   File "/usr/lib/python2.6/vendor-packages/cherrypy/_cplogging.py",
>> line 176, in _set_error_file
>>     self._set_file_handler(self.error_log, newvalue)
>>   File "/usr/lib/python2.6/vendor-packages/cherrypy/_cplogging.py",
>> line 164, in _set_file_handler
>>     self._add_builtin_file_handler(log, filename)
>>   File "/usr/lib/python2.6/vendor-packages/cherrypy/_cplogging.py",
>> line 150, in _add_builtin_file_handler
>>     h = logging.FileHandler(fname)
>>   File "/usr/lib/python2.6/logging/__init__.py", line 827, in __init__
>>     StreamHandler.__init__(self, self._open())
>>   File "/usr/lib/python2.6/logging/__init__.py", line 846, in _open
>>     stream = open(self.baseFilename, self.mode)
>> IOError: [Errno 29] Illegal seek: '/dev/fd/2'
>> *** Error code 1
>> The following command caused the error:
>> for r in redist; do \
>>     /usr/lib/pkg.depotd -d
>> /home/richard/src/illumos-gate/packages/i386/nightly/repo.$r \
>>         --add-content --exit-ready; \
>> done
>> dmake: Warning: Target `install' not remade because of errors
>> Current working directory /home/richard/src/illumos-gate/usr/src/pkg

I manually ran the following:
> /usr/lib/pkg.depotd -d /home/richard/src/illumos-gate/packages/i386/nightly/repo.redist --add-content --exit-ready

and that seemed to fix the repository. Go figure...





More information about the oi-dev mailing list