scriptlets exit status documentation change
by Chris Cheney
Currently the documentation for scriptlets says that the exit status should be 0 otherwise it will break installs/upgrades/erases. However on newer versions of rpm this doesn't actually happen, instead rpm ignores the exit status of scriptlets and continues to install packages and returns an exit status 0 from rpm. Previous versions of rpm returned an error exit code if a scriptlet failed but this no longer happens. I think the documentation should probably be rewritten such that it states more clearly that the exit status of scriptlets MUST be 0 and that if one fails rpm will essentially ignore the failure.
Chris
---
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets
"Except in some really exceptional cases (if any), we want all scriptlets to exit with the zero exit status. Because rpm in its default configuration does not at the moment execute shell scriptlets with the -e argument to the shell, excluding explicit exit calls (frowned upon with a non-zero argument!), the exit status of the last command in a scriptlet determines its exit status. Most commands in the snippets in this document have a "|| :" appended to them, which is a generic trick to force the zero exit status for those commands whether they worked or not. Usually the most important bit is to apply this to the last command executed in a scriptlet, or to add a separate command such as plain ":" or "exit 0" as the last one in a scriptlet. Note that depending on the case, other error checking/prevention measures may be more appropriate, as well as running some commands only if we saw a previous command in the scriptlet which is a must prerequisite to succeed.
Non-zero exit codes from scriptlets break installs/upgrades/erases so that no further actions will be taken for that package in a transaction (see scriptlet ordering below), which may for example prevent an old version of a package from being erased on upgrades, leaving behind duplicate rpmdb entries and possibly stale, unowned files on the filesystem. There are some cases where letting the transaction to proceed when some things in scriptlets failed may result in partially broken setup. It is however often limited to that package only whereas letting a transaction to proceed with some packages dropped out on the fly is more likely to result in broader system wide problems."
10 years, 11 months
Summary/Minutes from today's FPC Meeting (2013-05-16 16:00 - 17:50 UTC)
by James Antill
=============================================
#fedora-meeting-1: Fedora Packaging Committee
=============================================
Meeting started by spot at 16:00:27 UTC. The full logs are available at
http://meetbot.fedoraproject.org/fedora-meeting-1/2013-05-16/fpc.2013-05-...
.
Meeting summary
---------------
* Roll Call (spot, 16:01:25)
* Bundling exception for agg in mapnik -
https://fedorahosted.org/fpc/ticket/279 (spot, 16:06:24)
* Permissions on Files and Directories -
https://fedorahosted.org/fpc/ticket/286 (spot, 16:07:53)
* ACTION: abadger1999's simplified draft
(http://www.fpaste.org/12580/13687220/) approved (+1:8, 0:0, -1:0)
(spot, 16:38:06)
* Bundling exception for agg in mapnik -
https://fedorahosted.org/fpc/ticket/279 (spot, 16:39:49)
* Bundling exception request for sigrok-firmware-fx2lafw -
https://fedorahosted.org/fpc/ticket/287 (spot, 16:47:29)
* ACTION: Exception granted (+1:6, 0:0, -1:2) (spot, 17:04:31)
* Octave Provides Filtering - https://fedorahosted.org/fpc/ticket/290
(spot, 17:05:45)
* ACTION: Draft Approved (+1:8, 0:0, -1:0) (spot, 17:09:20)
* copylib: mt19937ar.c - https://fedorahosted.org/fpc/ticket/291 (spot,
17:09:38)
* ACTION: Exception approved as a copylib (+1:8 0:0 -1:0) (spot,
17:13:14)
* Request for permission for usage of autogenerated sources -
https://fedorahosted.org/fpc/ticket/289 (spot, 17:13:54)
* glassfish-jaxb-api and OpenJDK -
https://fedorahosted.org/fpc/ticket/292 (spot, 17:29:14)
* ACTION: Exception for openjdk to bundle JAXP and JAX-WS is granted
(glassfish does not need one) (+1:7, 0:0, -1:0) (spot, 17:49:27)
Meeting ended at 17:50:12 UTC.
Action Items
------------
* abadger1999's simplified draft (http://www.fpaste.org/12580/13687220/)
approved (+1:8, 0:0, -1:0)
* Exception granted (+1:6, 0:0, -1:2)
* Draft Approved (+1:8, 0:0, -1:0)
* Exception approved as a copylib (+1:8 0:0 -1:0)
* Exception for openjdk to bundle JAXP and JAX-WS is granted (glassfish
does not need one) (+1:7, 0:0, -1:0)
Action Items, by person
-----------------------
* abadger1999
* abadger1999's simplified draft
(http://www.fpaste.org/12580/13687220/) approved (+1:8, 0:0, -1:0)
* **UNASSIGNED**
* Exception granted (+1:6, 0:0, -1:2)
* Draft Approved (+1:8, 0:0, -1:0)
* Exception approved as a copylib (+1:8 0:0 -1:0)
* Exception for openjdk to bundle JAXP and JAX-WS is granted
(glassfish does not need one) (+1:7, 0:0, -1:0)
People Present (lines said)
---------------------------
* spot (145)
* tibbs|w (76)
* abadger1999 (53)
* geppetto (47)
* limburgher (45)
* Rathann (29)
* racor (13)
* RemiFedora (13)
* Smoother1rOgZ (9)
* nirik (4)
* rdieter (4)
* zodbot (4)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
10 years, 11 months
queries about merging 2 packages
by Gerard Ryan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi packaging,
I've got two packages which should be one. The reason they were two
before was because of some strange circular dependencies, iirc. This
doesn't apply anymore since the upstream project have moved from CVS
to Git, and seem to have moved some things between some of their
subproject repositories to fix the circular dependency problem.
So, the package that I want to drop hasn't been built for Rawhide or
F19 yet, and I don't think it should be. I haven't updated the main
package to merge in the split one yet (it's ready, just waiting for
broken deps). My questions are mainly about what steps do I need to do
to do this as cleanly as possible:
- - Do I need to manually put in any 'Obsoletes' or 'Provides' or
anything like that? Nothing else uses the split package apart from a
couple of my other packages, which I will remove (Build)Requires from.
- - Since it hasn't been built in F19 yet, is there anything I need to
do to other than retire it in pkgdb? I've never dropped or retired any
packages so I'm not sure of the steps that need to be done.
Thanks in advance for any help you can provide,
Gerard.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJRjs3dAAoJEG7cfkpivEoVCUkQAIwAeayZh3VRoHaJ08Tq/FAb
58Jx+1WE85RKR7qVUWGOleBoQ/upKc921tBtHz+ewX6F+Bs7PIKcQ/ljambhj2p1
R5yN8Oit2LdkJ9qGDa758vUubK+UfVuKUTPKVK+yOetr2+i/29VCRvUVEnMOFoM0
GOuPh5wagjEY+Wd1P+cTtwMMJxnx67/UMqnlNthRffUFKvHKYD6uoI8m+WQNhQWH
PjDw2pdt/DkouznOSz64Wb2R3uUzfeI5+gHGADOxxkWdek9NCC1GVL23jA587EIc
IL6T2vOtr6bParcic7exWgjkxlYd7Z4YZsvmPYrp0IszGQh3weO3dowTsXZtBFTB
XfBhC7nGby1JG+L5VwLDpPEI4OVaecxyeRNhFly0bspX0UI+bI6jqJKX2188WDYW
HZPfE6BOdwlbKVpEoxW0+NAPesjSqkA0+3JwW3aENb1Uv9fDkv8RUlpWao5hwCar
CNwQtwantBEdE2EpvgrWrPnqkazd+VZJMkeXx403zYo0hRHwNQydrvb5pxZKznSC
atAUyImUhLOqpfUwKB5o0jhZbeOC9ClhkMTeq47mSphbACng6GhTis2ShqCtMvom
6G9nfa3029F+L88SgwHQLHSn42aZwVSPfZzpgM2ZW59joTpMZmpnJONaH/9LKALV
mEYM/kd70ZtE9iK+TAQV
=G5qS
-----END PGP SIGNATURE-----
10 years, 11 months
Using autogenerated sources
by Susi Lehtola
Hi,
I've just introduced libint2 into Fedora. It is a package that contains
a) a compiler for generating the source code for an optimized library
b) the generated library itself which is used by end users
I'd like to get branches for the package for EPEL5 and EPEL6 as well,
but the problem is that building the compiler needs C++11 support,
which is not available in EPEL.
Is it OK if I do step a) locally and use the pregenerated sources for
the EPEL branches? The Fedora branches would still do the whole
bootstrap process.
--
Susi Lehtola
Fedora Project Contributor
jussilehtola(a)fedoraproject.org
10 years, 11 months
Open Seat on the Fedora Packaging Committee
by Tom Callaway
The Fedora Packaging Committee has one open seat and is accepting
submissions from interested candidates to serve on the FPC.
The FPC would like to thank Rex Dieter for his service, as he is
stepping down after several years.
This position involves not only reviewing Packaging Guideline drafts
submitted to the FPC for consideration, but also rewriting drafts
(sometimes from scratch) to resolve the issue in a more acceptable
fashion. Additionally, the FPC reviews bundling exceptions (and UID/GID
soft static assignment). The FPC meets on IRC weekly, Wednesdays at 1600
UTC, for approximately an hour. FPC members serve for as long as they
are willing, there are currently no term limits. All decisions are voted
on using a +1 (for), 0 (abstain), and -1 (against) mechanism, and all
decisions must be approved by a majority (+5). FPC Meetings do not
happen if quorum (5) is not present.
Candidates who are interested should provide the following details to
the FPC for consideration, by emailing it directly to me
(tcallawa(a)redhat.com). The FPC will consider all candidates, but
strongly prefers candidates who have extensive experience packaging in
Fedora. We will accept applications for the next week (deadline
Wednesday Apr 24, 2013).
Name:
FAS Account:
Provenpackager? (Yes/No):
Main area of packaging interest/expertise:
Reason(s) for wanting to join the FPC:
Thanks in advance,
~tom
==
Fedora Project
10 years, 11 months
Summary/Minutes from today's FPC Meeting (2013-05-09 16:00 - 17:05 UTC)
by James Antill
=============================================
#fedora-meeting-1: Fedora Packaging Committee
=============================================
Meeting started by spot at 16:03:10 UTC. The full logs are available at
http://meetbot.fedoraproject.org/fedora-meeting-1/2013-05-09/fpc.2013-05-...
.
Meeting summary
---------------
* Roll Call (spot, 16:03:17)
* Bundling exception for agg in mapnik -
https://fedorahosted.org/fpc/ticket/279 (spot, 16:09:03)
* ACTION: Asked clarifying questions (spot, 16:16:20)
* New Python Macros for Easier Packaging -
https://fedorahosted.org/fpc/ticket/281 (spot, 16:16:32)
* ACTION: %python_default_filter approved - (+1:5, 0:0, -1:0) (spot,
16:19:48)
* Bundling exception for gpick (lua) -
https://fedorahosted.org/fpc/ticket/282 (spot, 16:20:30)
* ACTION: Bundling exception denied, spot is going to update lua in
rawhide (+1:0, 0:0, -1:6) (spot, 16:25:42)
* Specify that systemd .service .socket .timer, should not be marked
executable - https://fedorahosted.org/fpc/ticket/283 (spot, 16:26:22)
* ACTION: rpmlint check fine, guidelines change no (+1:7, 0:0, -1:0)
(spot, 16:36:56)
* github source URL: improved tarball names -
https://fedorahosted.org/fpc/ticket/284 (spot, 16:37:18)
* ACTION: url recommendation changed to $PROJECT-%{commit}.tar.gz
(+1:5, 0:2, -1:0) (spot, 17:01:02)
* Thanks rdieter (spot, 17:01:53)
* Open Floor (spot, 17:03:10)
Meeting ended at 17:07:08 UTC.
Action Items
------------
* Asked clarifying questions
* %python_default_filter approved - (+1:5, 0:0, -1:0)
* Bundling exception denied, spot is going to update lua in rawhide
(+1:0, 0:0, -1:6)
* rpmlint check fine, guidelines change no (+1:7, 0:0, -1:0)
* url recommendation changed to $PROJECT-%{commit}.tar.gz (+1:5, 0:2,
-1:0)
Action Items, by person
-----------------------
* spot
* Bundling exception denied, spot is going to update lua in rawhide
(+1:0, 0:0, -1:6)
* **UNASSIGNED**
* Asked clarifying questions
* %python_default_filter approved - (+1:5, 0:0, -1:0)
* rpmlint check fine, guidelines change no (+1:7, 0:0, -1:0)
* url recommendation changed to $PROJECT-%{commit}.tar.gz (+1:5, 0:2,
-1:0)
People Present (lines said)
---------------------------
* spot (74)
* abadger1999 (29)
* limburgher (27)
* Rathann (14)
* geppetto (13)
* SmootherFrOgZ (12)
* rdieter (12)
* smani (8)
* zodbot (3)
* misc (1)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
10 years, 11 months
Schedule for Thursday's FPC Meeting (2013-05-09 16:00 UTC)
by James Antill
Following is the list of topics that will be discussed in the FPC
meeting Thursday at 2013-05-09 16:00 UTC in #fedora-meeting-1 on
irc.freenode.net.
Local time information (via. rktime):
2013-05-09 09:00 Thu US/Pacific
2013-05-09 12:00 Thu US/Eastern
2013-05-09 16:00 Thu UTC <-
2013-05-09 17:00 Thu Europe/London
2013-05-09 18:00 Thu Europe/Paris
2013-05-09 18:00 Thu Europe/Berlin
2013-05-09 21:30 Thu Asia/Calcutta
------------------new day----------------------
2013-05-10 00:00 Fri Asia/Singapore
2013-05-10 00:00 Fri Asia/Hong_Kong
2013-05-10 01:00 Fri Asia/Tokyo
2013-05-10 02:00 Fri Australia/Brisbane
Links to all tickets below can be found at:
https://fedorahosted.org/fpc/report/12
= New business =
#topic #279 Bundling exception for agg in mapnik
.fpc 279
https://fedorahosted.org/fpc/ticket/279
#topic #281 New Python Macros for Easier Packaging
.fpc 281
https://fedorahosted.org/fpc/ticket/281
#topic #282 Bundling exception request for gpick, about lua
.fpc 282
https://fedorahosted.org/fpc/ticket/282
#topic #283 specify that systemd .service, .socket, .timer, … should not
be marked executable
.fpc 283
https://fedorahosted.org/fpc/ticket/283
#topic #284 github source URL: improved tarball names
.fpc 284
https://fedorahosted.org/fpc/ticket/284
= Open Floor =
For more complete details, please visit each individual ticket. The
report of the agenda items can be found at:
https://fedorahosted.org/fpc/report/12
If you would like to add something to this agenda, you can reply to
this e-mail, file a new ticket at https://fedorahosted.org/fpc,
e-mail me directly, or bring it up at the end of the meeting, during
the open floor topic. Note that added topics may be deferred until
the following meeting.
10 years, 11 months