[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
making two subpackages with files in exactly the same place
- From: Arkadiusz Miskiewicz <misiek pld ORG PL>
- To: rpm-list redhat com
- Subject: making two subpackages with files in exactly the same place
- Date: 30 Jul 2002 13:08:33 +0200
Hi,
This is suggestion of feature for rpm 4.1.
I have XFree86.src.rpm which contains whole xfree (including normal ati drivers)
and separate ati.2 drivers (from gatos project).
I want to build two subpackages:
XFree86-driver-ati (original ati drivers from xfree)
XFree86-driver-ati.2 (new ati drivers from gatos.sf.net)
Now the problem is that in both packages different files
must be placed in exactly the same place for example:
/usr/X11R6/lib/modules/drivers/r128_drv.o. Of course
both packages will Obsolete each other. (I can't
build ati.2 drivers from separate spec file because xfree
sources are needed and also I thing that would be overkill).
afaik this is not possible even in rpm 4.1 so I'm suggesting
support for something like %root(number) or %root(/blah). For
example original driver is installed at
$RPM_BUILD_ROOT/usr/X11R6/lib/modules/drivers/r128_drv.o
while gatos driver at
$RPM_BUILD_ROOT/gatos/usr/X11R6/lib/modules/drivers/r128_drv.o
and then in files section:
%files driver-ati
%{_libdir}/modules/drivers/r128/r128_drv.o
(1)
%files driver-ati.2
%root(1) /gatos/%{_libdir}/modules/drivers/r128/r128_drv.o
or
(2)
%files driver-ati.2
%root(/gatos) %{_libdir}/modules/drivers/r128/r128_drv.o
or
(3)
%files driver-ati.2
%root(/gatos) /gatos/%{_libdir}/modules/drivers/r128/r128_drv.o
%root(number) - strip ,,number'' of dirs beginning from root
directory in fileURL (this can be problematic
in case of %root(2) //////bla/bla.txt and I think
that any number of ,,/'' should be treated as one
dir)
%root(/gatos) - in case (2) this means: add ,,/gatos'' to diskURL
(at beginning)
- in case (3) this means: strip out ,,/gatos'' from
beginning of fileURL.
Jeff, what do you think? For me (1) is best.
Also I need suggestion how to transfer information about %root
thing from parseForRoot() to addFile() - new field in
struct FileList_s (ie. int rootLevel for (1)) ?
ps. I'm preparing patch doing this for rpm 4.0.4 but I don't know
which method I should choose.
--
Arkadiusz Miśkiewicz IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]