gensrclist usage

Vincent Danen vdanen at annvix.org
Sun Feb 18 18:59:39 PST 2007


* Panu Matilainen <pmatilai at laiskiainen.org> [2007-02-18 20:53:20 +0200]:

> > Now here's a quick question.  I see in apt there is a genbasedir,
> > genpkglist, and gensrclist.  I assume that genbasedir calls or uses the
> > same code as genpkglist, but what about gensrclist?  I just had someone
> > ask about how to setup a "rpm-src" repository, but apt wants
> > srclist.release.bz2 and no such file is being created.  Doesn't look
> > like there is an option to genbasedir to create the srpm index files, so
> > how do I call gensrclist to make those files?  There are no manpages and
> > the --help doesn't really give much info.
> 
> SRPM indexes get automatically created by genbasedir when it can find 
> them. The gotcha is that it by default expects to find SRPMS.<component> 
> directory in the one above <topdir>. The reason for this, IIRC, is 
> that it allows binaries for several architectures to share same SRPMS 
> directory without extra arrangements like symlinks. If you want the SRPMS 
> to be on the same directory level as binaries you'll need to use --flat 
> option.

Fantastic!  The --flat option worked.  I have my repository setup like
this:

[root at build bin]# ls /work/annvix/releases/i586/ -l
total 4
drwxr-xr-x 2 root root 4096 Feb 18 19:56 base/
lrwxrwxrwx 1 root root   24 Feb  2 18:06 RPMS.1_2_RELEASE -> ../1.2-RELEASE/i586/main/
lrwxrwxrwx 1 root root   24 Feb  4 19:07 RPMS.2_0_RELEASE -> ../2.0-RELEASE/i586/main/
lrwxrwxrwx 1 root root   23 Feb  4 19:07 RPMS.2_0_RELEASE-doc -> ../2.0-RELEASE/i586/doc/
lrwxrwxrwx 1 root root   24 Jan 23 07:50 RPMS.current -> ../2.0-CURRENT/i586/main/
lrwxrwxrwx 1 root root   23 Jan 23 07:50 RPMS.current-doc -> ../2.0-CURRENT/i586/doc/
lrwxrwxrwx 1 root root   24 Feb  4 19:07 RPMS.release -> ../2.0-RELEASE/i586/main/
lrwxrwxrwx 1 root root   23 Feb  4 19:07 RPMS.release-doc -> ../2.0-RELEASE/i586/doc/
lrwxrwxrwx 1 root root   20 Feb  2 18:06 SRPMS.1_2_RELEASE -> ../1.2-RELEASE/SRPMS/
lrwxrwxrwx 1 root root   20 Feb  4 19:07 SRPMS.2_0_RELEASE -> ../2.0-RELEASE/SRPMS/
lrwxrwxrwx 1 root root   20 Jan 23 07:50 SRPMS.current -> ../2.0-CURRENT/SRPMS/
lrwxrwxrwx 1 root root   20 Feb  4 19:06 SRPMS.release -> ../2.0-RELEASE/SRPMS/

Yeah, it's kinda ugly but it does what I need.  So I'm using --bloat and
--flat together now and I'm getting the src list like I want.  Thanks!

> This is covered in http://apt-rpm.org/reposetup-native.shtml but like you 
> noticed, no manpages exist. Except .. that there are manpages in the 
> Debian apt-rpm package because Debian policies mandate every executable to 
> have a manpage (IIRC). So now we have manpages for those too :)

Cool.  More manpages are good.  And that page looks like something I
should read.

Many thanks!

-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20070218/b0aa368e/attachment-0003.pgp>


More information about the Apt-Rpm mailing list