Bug 577018
| Summary: | src dirs removed make impossible to build some applications | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | dmitriy.kargapolov |
| Component: | erlang | Assignee: | Gérard Milmeister <gemi> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 12 | CC: | gemi, lemenkov, rhbugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | erlang-R13B-04.2.fc13 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-04-09 01:44:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
dmitriy.kargapolov
2010-03-25 21:07:19 UTC
That was my fault, not Gérard's - I'll fix this mess ASAP. Please downgrade to prevoius build, until new package will be available. This change was not discussed in erlang-questions - I apologize for that impoliteness. The original intention was to trim down erlang rpm and prepare for stripping off some sub-packages (see rhbz #564018). erlang-R13B-04.2.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/erlang-R13B-04.2.fc13 erlang-R13B-04.2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/erlang-R13B-04.2.fc12 erlang-R13B-04.2.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update erlang'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/erlang-R13B-04.2.fc12 Test release works for me. Still have couple notes. 1) Not sure if grammar files *.yrl needed like *.hrl 2) Source files are useful for better understanding undocumented features, so finally I think its better to keep all sources in the package. If intention was to reduce package size, lets split it into erlang and erlang-devel, or erlang-src... to keep sources in optional package. 3) Not sure about best place for headers *.hrl. They are not required to run pre-compiled stuff, so could be moved to optional package, like erlang-devel. So following structure is my draft proposal: - erlang - as it was in erlang-R13B-04.1.*, used as runtime environment; - erlang-devel - additional *.hrl, used for building Erlang/OTP projects; - erlang-devel-src - all sources excluded from the 1st and 2nd packages; or 2nd and 3rd could be combined. (In reply to comment #5) > 3) Not sure about best place for headers *.hrl. They are not required to run > pre-compiled stuff, so could be moved to optional package, like erlang-devel. > So following structure is my draft proposal: > - erlang - as it was in erlang-R13B-04.1.*, used as runtime environment; > - erlang-devel - additional *.hrl, used for building Erlang/OTP projects; > - erlang-devel-src - all sources excluded from the 1st and 2nd packages; > or 2nd and 3rd could be combined. I agree with this proposal. I just want to add something regarding the future. We will eventually want to split off some erlang libraries into subpackages, so that we do not need to install e.g. tk or wxWindows to run, say, a couchdb server. So if we have, say, a subpackage erlang-app-wx which includes basically all of /usr/lib/erlang/lib/wx-0.98.5, then erlang-devel will need a versioned dependency on that erlang-app-wx subpackage. The same applies to all other erlang-app-* subpackages. Erlang 04.1.fc12 also breaks ejabberd package.
ejabberd crashes on startup with erlang crash log:
=erl_crash_dump:0.1
Sun Mar 28 10:55:31 2010
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
System version: Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:true]
Compiled: Wed Mar 17 15:28:34 2010
Taints:
Atoms: 4491
=memory
total: 10790704
processes: 1149700
processes_used: 1141868
system: 9641004
atom: 207845
atom_used: 186874
binary: 21416
code: 1176185
ets: 31908
...etc...
First I downgraded to previous ejabberd (from ejabberd-2.1.3-5.fc12.i686 back to ejabberd-2.1.2-2.fc12.i686) but it still crashed.
Only when downgrading erlang back to erlang-R13B-01.3.fc12.i686, it was running fine again.
I just tested erlang-R13B-04.2.fc12 and ejabberd crashes again.
(In reply to comment #7) > Erlang 04.1.fc12 also breaks ejabberd package. Can't confirm - I'm running ejabberd-2.1.3-5.fc12.i686 with erlang-R13B-04.2.fc12.i686. Could you, please, attach /var/lob/ejabberd/{ejabberd,erlang}.log ? (In reply to comment #5) > Test release works for me. Still have couple notes. > > 1) Not sure if grammar files *.yrl needed like *.hrl > > 2) Source files are useful for better understanding undocumented features, so > finally I think its better to keep all sources in the package. If intention was > to reduce package size, lets split it into erlang and erlang-devel, or > erlang-src... to keep sources in optional package. I'm pretty sure, that providing source-files just for educational purposes is beyond the scope of packaging. We package only files, necessary to run/compile other packages. If someone wants to inspect original sources, then (s)he could a) install srpm b) refer to github's page c) download sources from erlang.org > 3) Not sure about best place for headers *.hrl. They are not required to run > pre-compiled stuff, so could be moved to optional package Sometimes, when you're sitting in REPL mode, it's very convenient to load records from *.hrl files, so I'd rather to put them into main package. (In reply to comment #8) > (In reply to comment #7) > > Erlang 04.1.fc12 also breaks ejabberd package. > > Can't confirm - I'm running ejabberd-2.1.3-5.fc12.i686 with > erlang-R13B-04.2.fc12.i686. Could you, please, attach > /var/lob/ejabberd/{ejabberd,erlang}.log ? Now this is weird... I just upgraded again to produce the requested crash logs and now I can't get it to crash anymore while it would not run before??? I have changed nothing but down/upgrading the packages. But I noticed two issues that may have solved the problem: 1) When installing ejabberd-2.1.3-5.fc12.i686: "The ejabberd database has been backed up to /var/tmp/ejabberd-2010-03-29T12:22:21OURCE.R8SrCT/ejabberd-database." I have not noticed this message before when installing the same package. 2) Now, I have erlang-esasl-0.1-4.fc12, ejabberd-2.1.3-5.fc12.i686 and erlang-R13B-04.2.fc12.i686. I think I only tested the erlang 04.2 with the previous ejabberd, not this particular combination.. (In reply to comment #10) > (In reply to comment #8) .. > 1) When installing ejabberd-2.1.3-5.fc12.i686: "The ejabberd database has been > backed up to > /var/tmp/ejabberd-2010-03-29T12:22:21OURCE.R8SrCT/ejabberd-database." > I have not noticed this message before when installing the same package. > > 2) Now, I have erlang-esasl-0.1-4.fc12, ejabberd-2.1.3-5.fc12.i686 and > erlang-R13B-04.2.fc12.i686. I think I only tested the erlang 04.2 with the > previous ejabberd, not this particular combination.. Ok the problem was either 1) or VOODOO. I just tried erlang-R13B-04.1.fc12.i686 and ejabberd is rock stable, the curse has lifted. I am using now the exact same combination of packages from the 'updates' repo that triggered the voodoo curse. (In reply to comment #9) > (In reply to comment #5) > > finally I think its better to keep all sources in the package. If intention was > > to reduce package size, lets split it into erlang and erlang-devel, or > > erlang-src... to keep sources in optional package. > > I'm pretty sure, that providing source-files just for educational purposes is > beyond the scope of packaging. We package only files, necessary to run/compile > other packages. If someone wants to inspect original sources, then (s)he could > > a) install srpm > b) refer to github's page > c) download sources from erlang.org I beg to differ. Argument 1: Compatibility with other Erlang installations Given that probably ANY Erlang installation (except for Fedora since erlang-R13B-04.1.fc12) ships those sources, most anybody who wants an Erlang installation has probably come to expect those sources to be there. That is IMHO a very strong reason to at *least* offer a erlang-* subpackage which contains all sources one expects from a full Erlang installation. If every other Erlang installation on the planet contains those source files, and Fedora does not even offer them in a separate subpackage, then Fedora's Erlang packages are broken, it's that simple. Argument 2: You are allowed to package sources in Fedora I also do not see any urgent need for Fedora to stop packaging anything that looks like source code. E.g. Python packages /usr/lib/pythonNNN/foo.py even though there is also a corresponding .pyc and .pyo file, and "import foo" works find if there is no foo.py file. Just my 2 cents... I think its up to Erlang/OTP authors to decide if src-s are part of the installation. Historically they are. And I guess there could be more reasons for that than just 'educational purpose'. Moving src-s to separate sub-package could be considered acceptable (though I don't like this). Moving rarely used Erlang/OTP applications to separate sub-packages might create unnecessary complexity in dependencies handling, so please think twice before doing this. Remember that Erlang Community is a bit wider that E-Jabber users... (In reply to comment #13) > I think its up to Erlang/OTP authors to decide if src-s are part of the > installation. Historically they are. And I guess there could be more reasons > for that than just 'educational purpose'. Ack. > Moving src-s to separate sub-package could be considered acceptable (though I > don't like this). > Moving rarely used Erlang/OTP applications to separate sub-packages might > create unnecessary complexity in dependencies handling, so please think twice > before doing this. I see your point, but I also see the point of someone who just needs the Erlang runtime, not the 100MB+ dependency rat tail that wxWindows pulls in. > Remember that Erlang Community is a bit wider that E-Jabber users... The most flexible and the most compatible way would be to make sure that installing the "erlang" package continues to pull in everything that was there in the past, including source files etc. This does not prevent a split into subpackages like "erlang-runtime" the bare minimum to run something like ejabberd "erlang-app-wx" the wx stuff etc. The main binary "erlang" package just needs to depend on those, and ejabberd can change its dependency from "erlang" to "erlang-runtime". (In reply to comment #14) > > The most flexible and the most compatible way would be to make sure that > installing the "erlang" package continues to pull in everything that was there > in the past, including source files etc. > > This does not prevent a split into subpackages like > > "erlang-runtime" the bare minimum to run something like ejabberd > "erlang-app-wx" the wx stuff > > etc. The main binary "erlang" package just needs to depend on those, and > ejabberd can change its dependency from "erlang" to "erlang-runtime". Like it. Count my vote. erlang-R13B-04.2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update erlang'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/erlang-R13B-04.2.fc13 erlang-R13B-04.2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. erlang-R13B-04.2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |