Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 190132
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Default Assignee for Orphaned Packages <maintainer-needed@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Andrey Falko <Ma3oxuct@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
rpm-4.4.9.ebuild rpm-4.4.9.ebuild text/plain Andrey Falko 2007-08-25 07:53 0000 3.00 KB Details
rpm-4.4.9.ebuild rpm-4.4.9.ebuild text/plain Andrey Falko 2007-08-25 16:51 0000 3.59 KB Details
rpm-4.4.9.ebuild rpm-4.4.9.ebuild text/plain Andrey Falko 2007-08-25 17:12 0000 3.24 KB Details
rpm-5.0.20070825.ebuild rpm-5.0.20070825.ebuild text/plain Andrey Falko 2007-08-26 21:38 0000 2.42 KB Details
rpm-5.0.20070904.ebuild rpm-5.0.20070904.ebuild text/plain Andrey Falko 2007-09-04 16:46 0000 2.45 KB Details
rpm-4.4.9.ebuild rpm-4.4.9.ebuild text/plain Andrey Falko 2007-10-08 23:14 0000 2.77 KB Details
rpm-4.4.9.ebuild rpm-4.4.9.ebuild text/plain Andrey Falko 2007-10-08 23:18 0000 2.78 KB Details
rpm-5.0.20071008.ebuild rpm-5.0.20071008.ebuild text/plain Andrey Falko 2007-10-09 23:42 0000 2.51 KB Details
rpm-5.0_alpha1.ebuild rpm-5.0_alpha1.ebuild text/plain Andrey Falko 2007-11-14 05:23 0000 2.39 KB Details
rpm-5.0_alpha2.ebuild rpm-5.0_alpha1.ebuild text/plain Andrey Falko 2007-11-19 19:17 0000 2.34 KB Details
rpm-5.0_alpha3.ebuild rpm-5.0_alpha3.ebuild text/plain Andrey Falko 2007-11-24 19:22 0000 2.34 KB Details
rpm-5.0_alpha4.ebuild rpm-5.0_alpha4.ebuild text/plain Andrey Falko 2007-12-03 15:02 0000 2.34 KB Details
rpm-5.0_beta1.ebuild rpm-5.0_beta1.ebuild text/plain Andrey Falko 2007-12-09 16:52 0000 2.62 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 190132 depends on: 199160 Show dependency tree
Bug 190132 blocks: 153292 162447 187740
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-08-25 04:26 0000
I am trying to have get this into portage through a proxy dev (not 100% sure on
dirtyepic).

I will be attaching an ebuild in a couple of hours. 

This bug should effectively fix the bugs I will labels as dependencies later
(hence the blocker label).



Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Ryan Hill 2007-08-25 07:15:09 0000 -------
i'll try to do general review if time permits, but would appreciate help from
someone more familiar with rpm for the specific bits. :)

------- Comment #2 From Andrey Falko 2007-08-25 07:53:47 0000 -------
Created an attachment (id=129112) [details]
rpm-4.4.9.ebuild

Ebuild posted for any comments. Don't commit it, as I haven't fixed
src_install() yet.

Never imagined how nasty rpm's builds scripts were. Finally got it to compile
with  use flags and stuff. I stuck with simplicity for this ebuild. I still
haven't gotten to src_install()...I thought I fixed everything with my
locations variable, but rpm scripts are extremely stubborn.


I have a few general questions:

How is selinux supposed to be handled? Is making an selinux use flag
appropriate? The old rpm ebuild have selinux disabled under all circumstances.

How lenient are we allowed to be with forcing packages to use the libraries in
portage? From what it looks, the rpm maintainers have tweaked popt and zlib,
in-house to the point where Gentoo's popt and zlib are no good for rpm.

------- Comment #3 From Andrey Falko 2007-08-25 16:51:09 0000 -------
Created an attachment (id=129165) [details]
rpm-4.4.9.ebuild

Here is a working ebuild. rpm compiles, runs, documentation got generated. I
think this ebuild can safely be put on ~arch.

Am I right to assume that ebuild is with QA warning problems cannot make it to
stable until the QA warnings are fixed?

Also if I have cases where some use flags are incompatible with other and I
handle these cases my ewarning then die, can such a package make it to stable? 

------- Comment #4 From Andrey Falko 2007-08-25 17:12:09 0000 -------
Created an attachment (id=129167) [details]
rpm-4.4.9.ebuild

Did away with the --with-dmalloc and --with-efence for debug use flag...the rpm
package only works with these for very minimal builds.

------- Comment #5 From Andrey Falko 2007-08-25 18:04:53 0000 -------
So, at this point, the latest ebuild should fix 153292 and 187740. 

I played around with rpmbuild (by rebuilding some spec files lying around);
looks good. 162447 is somewhat non-critical, I'll probably end up talking to
the rpm5.org devs about it.

This ebuild can go ~x86 and ~amd64, but should be masked on ppc, ppc64, sparc,
and s390 because I don't have the hardware to test those.

------- Comment #6 From Andrey Falko 2007-08-26 21:38:05 0000 -------
Created an attachment (id=129266) [details]
rpm-5.0.20070825.ebuild

Development of rpm-5.0 is underway. There is no point in opening a new for it
yet. The 5.0 ebuild is very experimental.

------- Comment #7 From Andrey Falko 2007-09-04 16:46:19 0000 -------
Created an attachment (id=130010) [details]
rpm-5.0.20070904.ebuild

------- Comment #8 From Ryan Hill 2007-09-22 03:49:02 0000 -------
hey andrey, sorry for the wait.  i'll make time to look at these this weekend. 
i did a quick run-through and it looks good though. :)

i don't know anything about selinux.  i pinged the hardened team but got no
response.  i believe pebenito is the best person to talk to.

it'd be nice if we could use the system's libs whenever possible, but i know
that sometimes you can't.  do you know what in-house changes have they made to
zlib, db, and etc?

qa warnings based on code warnings (like the warnings gcc spits out that get
summarized at the end) are allowed in stable packages.  usually they're
harmless and in any case should be handled by upstream.

incompatible USE flags are probably best handled by an ewarn and defaulting to
the best option, but in some cases there really isn't a "best".  Either way, i
don't think there's any rule about it and many ebuilds will die on incompatible
flags, so it's up to you.

------- Comment #9 From Andrey Falko 2007-09-29 21:17:07 0000 -------
(In reply to comment #8)
> it'd be nice if we could use the system's libs whenever possible, but i know
> that sometimes you can't.  do you know what in-house changes have they made to
> zlib, db, and etc?
> 

They haven't been consistent in terms of the amount of changes they make to
each of the libraries (this is before rpm-4.5/5.0 development). i.e. they've
been putting all external things for rpm together, making sparse modifications
for .h files, and patching and syncing the external things to new version,
relevant bug fixes, etc. I can make a stronger effort in "un-hard-coding" most
of their stuff, but I think it would result in unexpected bugs, and increase
"maintenance cost".

rpm-5.0 will be *much* nicer, as they are finally strict about defining that
only things they modify significantly will be included in the rpm sources.

Thanks for the feedback.

------- Comment #10 From Ryan Hill 2007-10-07 00:01:03 0000 -------
(In reply to comment #4)
> Created an attachment (id=129167) [edit] [details]
> rpm-4.4.9.ebuild

        use debug && append-flags -g2 -ggdb && filter-flags
-fomit-frame-pointer

debug USE flag shouldn't control CFLAGS.

        # we use arch-gentoo-linux-{gnu,uclibc} tuple
        export CHOST="${CHOST//-pc-/-gentoo-}"
        export CHOST="${CHOST//-unknown-/-gentoo-}"

i don't know what this is.  i know it comes from the ebuild in the tree, but it
doesn't seem right at all.

        locations="--bindir=/usr/bin \
                --sbindir=/usr/sbin \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \
                --datadir=/usr/share \
                --localstatedir=/var/lib"
                #--libexecdir=
                #--sharedstatedir=
                #--libdir=
                #--includedir=
                #--oldincludedir=
                #--datarootdir=
                #--localedir=
                #--docdir=
                #--htmldir=
                #--dvidir=
                #--pdfdir=
                #--psdir=

shouldn't need any of this.  it's handled by econf.

        emake -j1 || die "emake failed"

parallel is broken?  i'll see if i can patch it.

        chown -R rpm:rpm ${ROOT}/usr/lib/rpm
        chown -R rpm:rpm ${ROOT}/var/lib/rpm

quote ${ROOT}

otherwise looks okay.

------- Comment #11 From Ryan Hill 2007-10-07 00:06:34 0000 -------
(In reply to comment #7)
> Created an attachment (id=130010) [edit] [details]
> rpm-5.0.20070904.ebuild

should've looked at this one first ;)

RDEPEND="gzip? (app-arch/gzip)
        bzip2? (app-arch/bzip2)
        crypt? (app-crypt/gnupg)"

since gzip, bzip2, and file are in the system set we don't need to specify them
as dependencies.  we won't have them as USE flags either as they're always
installed.

everything else looks better.

------- Comment #12 From Andrey Falko 2007-10-08 22:42:27 0000 -------
> 
>         # we use arch-gentoo-linux-{gnu,uclibc} tuple
>         export CHOST="${CHOST//-pc-/-gentoo-}"
>         export CHOST="${CHOST//-unknown-/-gentoo-}"
> 
> i don't know what this is.  i know it comes from the ebuild in the tree, but > it doesn't seem right at all.
>

It did not seem to hurt, so I left it there.

>
>         emake -j1 || die "emake failed"
> 
> parallel is broken?  i'll see if i can patch it.
>
>

Yeh, there will be a compile failure without -j1.


Thanks for the feedback...posting updated ebuild in a few minutes.

------- Comment #13 From Andrey Falko 2007-10-08 23:14:05 0000 -------
Created an attachment (id=132967) [details]
rpm-4.4.9.ebuild

Is the following a problem: 

lua package is intalled and lua USE flag is disabled.
rpm's configure script notices that lua is intalled, and generates docs for it,
when though it appears that --without-lua is passed to ./configure.

If lua package is not installed, then there is no such issue.

I will have an updated rpm5 ebuild by the end of this week.

------- Comment #14 From Andrey Falko 2007-10-08 23:18:01 0000 -------
Created an attachment (id=132969) [details]
rpm-4.4.9.ebuild

Sorry for the noise. Forgot to put *all* ${ROOT}s into quotes.

------- Comment #15 From Ryan Hill 2007-10-09 05:03:53 0000 -------
(In reply to comment #13)
> 
> Is the following a problem: 
> 
> lua package is intalled and lua USE flag is disabled.
> rpm's configure script notices that lua is intalled, and generates docs for it,
> when though it appears that --without-lua is passed to ./configure.
> 
> If lua package is not installed, then there is no such issue.

We call that an automagic dependency.  We have a doc about it here: 

http://www.gentoo.org/proj/en/qa/automagic.xml

I can take a look.  I've been reading a bit about autotools recently so i'll
see if i can come up with something.

------- Comment #16 From Andrey Falko 2007-10-09 23:42:20 0000 -------
Created an attachment (id=133038) [details]
rpm-5.0.20071008.ebuild

------- Comment #17 From Andrey Falko 2007-11-14 05:23:22 0000 -------
Created an attachment (id=135936) [details]
rpm-5.0_alpha1.ebuild

First alpha version is out, ebuild attached. 5.0 final will come out in
January. In the meantime there will be four weekly alpha versions followed by
four weekly beta versions. I'll try to follow all of these releases and test as
they mature. I've also been active on their mailing lists by notifying them of
any build problems (better do this now than have to patch things later on).

------- Comment #18 From Andrey Falko 2007-11-19 19:17:10 0000 -------
Created an attachment (id=136427) [details]
rpm-5.0_alpha1.ebuild

Latest alpha version.

------- Comment #19 From Andrey Falko 2007-11-24 19:22:58 0000 -------
Created an attachment (id=136903) [details]
rpm-5.0_alpha3.ebuild

------- Comment #20 From Andrey Falko 2007-12-03 15:02:06 0000 -------
Created an attachment (id=137622) [details]
rpm-5.0_alpha4.ebuild

Newest alpha release.

------- Comment #21 From SpanKY 2007-12-09 07:20:39 0000 -------
rpm-5.0_alpha4 now in the tree

------- Comment #22 From Andrey Falko 2007-12-09 07:51:37 0000 -------
Thanks SpanKY!

Should I continue dumping to new versions here?

------- Comment #23 From Andrey Falko 2007-12-09 16:52:13 0000 -------
Created an attachment (id=138106) [details]
rpm-5.0_beta1.ebuild

Beta 1 just came out. I made a very slight change to the ebuild from the alpha4
version in pkg_install.

------- Comment #24 From Andrey Falko 2007-12-09 16:53:26 0000 -------
Reopening for new version bump.

------- Comment #25 From SpanKY 2007-12-09 22:35:04 0000 -------
that isnt how it works.  file new bugs without baggage.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug