[Rpm-maint] Does rpm manage file names which include space characters
WILSON, MICHAEL
michael.a.wilson at atos.net
Thu Nov 19 14:06:56 UTC 2015
All,
Looking further in the code, the function strtokWithQuotes() also takes into account tokens/file names delimited by double quote characters.
So, a solution would be to generate a migration SPEC file for each package which uses double quotes.
Any thoughts ?
Thanks.
Mike Wilson
_____________________________________________
From: WILSON, MICHAEL
Sent: Wednesday, November 18, 2015 6:29 PM
To: rpm-maint at lists.rpm.org
Cc: WILSON, MICHAEL
Subject: Does rpm manage file names which include space characters
Good day to All,
I hope this is the appropriate email list for questions concerning potential issues found building/running the rpm command.
Installing the AIX version rpm. 4.9.1.3 on a system already containing a certain number of packages installed using rpm.3.0.5, the migration includes rebuilding the new RPM data base.
When attempting this rebuild for packages python-setuptools-0.9.8 and python-setuptools-devel-0.9.8, the following rpm error messages, due to spaces in file names, are displayed (see below).
Looking at source code for rpm-4.9.1.3/build/files.c , the issue may be linked to line :
while ((s = strtokWithQuotes(t, " \t\n")) != NULL) {
This same code appears in version rpm-4.12.0.1 .
Being new to Open Source projects, I may have missed a relevant patch or bug report.
Is this a known/corrected issue ?
Thanks in advance.
Mike Wilson
Command used is "rpm -U -justdb ..."
Processing files: python-setuptools-0.9.8-2
Two files on one line: /opt/freeware/doc/python-setuptools-0.9.8/CHANGES
Can't mix special %doc with other forms: /opt/freeware/doc/python-setuptools-0.9.8/CHANGES
Two files on one line: /opt/freeware/lib/python2.7/site-packages/setuptools/script
File must begin with "/": template
Two files on one line: /opt/freeware/lib/python2.7/site-packages/setuptools/script
File must begin with "/": (dev).py
Two files on one line: /opt/freeware/lib/python2.7/site-packages/setuptools/script
File must begin with "/": template
Two files on one line: /opt/freeware/lib/python2.7/site-packages/setuptools/script
File must begin with "/": (dev).pyc
Two files on one line: /opt/freeware/lib/python2.7/site-packages/setuptools/script
File must begin with "/": template.py
Two files on one line: /opt/freeware/lib/python2.7/site-packages/setuptools/script
File must begin with "/": template.pyc
Processing files: python-setuptools-devel-0.9.8-2
Two files on one line: /opt/freeware/doc/python-setuptools-devel-0.9.8/CHANGES
Can't mix special %doc with other forms: /opt/freeware/doc/python-setuptools-devel-0.9.8/CHANGES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20151119/40303805/attachment-0001.html>
More information about the Rpm-maint
mailing list