Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671426 - sys-apps/apparmor-2.13.1 - /lib/rc/sh/openrc-run.sh: 131: /usr/libexec/rc.apparmor.functions: Syntax error: ";;" unexpected (expecting "fi")
Summary: sys-apps/apparmor-2.13.1 - /lib/rc/sh/openrc-run.sh: 131: /usr/libexec/rc.app...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Michael Palimaka (kensington)
URL:
Whiteboard:
Keywords:
: 671476 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-18 12:19 UTC by Casey Timmers
Modified: 2018-11-25 10:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casey Timmers 2018-11-18 12:19:57 UTC
The package(s) built fine and installed, but upon starting the service I received this error. The fix was easy, but just thought I should let someone know.

Here is the error message I received:

/lib/rc/sh/openrc-run.sh: 131: /usr/libexec/rc.apparmor.functions: Syntax error: ";;" unexpected (expecting "fi")

Went to line 131 of /usr/libexec/rc.apparmor.functions and removed the ";;" following return 2.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-19 09:02:36 UTC
*** Bug 671476 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2018-11-25 10:32:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d17bd7b6d3871a0ab6a9af8d42bc1a222d1c50b7

commit d17bd7b6d3871a0ab6a9af8d42bc1a222d1c50b7
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2018-11-25 10:31:51 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-11-25 10:32:13 +0000

    sys-apps/apparmor: backport patch from upstream fixing syntax error
    
    Closes: https://bugs.gentoo.org/671426
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Michael Palimaka <kensington@gentoo.org>

 sys-apps/apparmor/apparmor-2.13.1-r1.ebuild        | 65 ++++++++++++++++++++++
 .../apparmor/files/apparmor-2.13.1-syntax.patch    | 29 ++++++++++
 2 files changed, 94 insertions(+)