RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ CHANGES rpm/misc/ Makefile.am librpmmisc.vers

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 28 Nov 2008 - 21:15:10 CET
Message-id: <981FDADC-1EDA-4615-859B-E41EEC210332@mac.com>
OK, I've wasted 2 days digging at details of how to avoid
a SELinux popup on every invocation of rpm when SELinux is
enabled.

The instructions on the pop-up point me at information that
does not lead me to any deeper understanding of what exact problem
needs solving after studying and trying. I have fixed what issues
I could find.

I'd be happy to fix the textrel issue if I knew what was wrong.

Here is my chosen solution:
	SELINUX=disabled
Which is really a shame, I think SELinux is wonderfully engineered,
and would use SELinux if I could.

Oh well, back to hacking.

73 de Jeff
	
On Nov 28, 2008, at 3:06 PM, Jeff Johnson wrote:

>  RPM Package Manager, CVS Repository
>  http://rpm5.org/cvs/
>   
> ____________________________________________________________________________
>
>  Server: rpm5.org                         Name:   Jeff Johnson
>  Root:   /v/rpm/cvs                       Email:  jbj@rpm5.org
>  Module: rpm                              Date:   28-Nov-2008 21:06:45
>  Branch: HEAD                             Handle: 2008112820064500
>
>  Modified files:
>    rpm                     CHANGES
>    rpm/misc                Makefile.am librpmmisc.vers
>
>  Log:
>    - jbj: backout the -pie changes.
>    - jbj: misc: explicitly enumerate all symbols exported by - 
> lrpmmisc.
>
>  Summary:
>    Revision    Changes     Path
>    1.2656      +0  -1      rpm/CHANGES
>    1.38        +0  -2      rpm/misc/Makefile.am
>    1.10        +56 -2      rpm/misc/librpmmisc.vers
>   
> ____________________________________________________________________________
>
>  patch -p0 <<'@@ .'
>  Index: rpm/CHANGES
>   
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>  $ cvs diff -u -r1.2655 -r1.2656 CHANGES
>  --- rpm/CHANGES	28 Nov 2008 18:37:12 -0000	1.2655
>  +++ rpm/CHANGES	28 Nov 2008 20:06:45 -0000	1.2656
>  @@ -1,6 +1,5 @@
>
>   5.2a2 -> 5.2a3:
>  -    - jbj: misc: link with -pie -nostdinc to avoid SElinux text  
> relocation.
>       - jbj: lua: inline a copy of getdate.c
>       - jbj: lua: change paths to extend lua with external modules  
> on linux.
>       - jbj: WR: lua: display "rpm:lua:foo" progname w chkconfig/ 
> useradd/groupadd
>  @@ .
>  patch -p0 <<'@@ .'
>  Index: rpm/misc/Makefile.am
>   
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>  $ cvs diff -u -r1.37 -r1.38 Makefile.am
>  --- rpm/misc/Makefile.am	28 Nov 2008 18:37:12 -0000	1.37
>  +++ rpm/misc/Makefile.am	28 Nov 2008 20:06:45 -0000	1.38
>  @@ -45,8 +45,6 @@
>   	@WITH_XAR_LIBS@
>   if ENABLE_BUILD_EXTLIBDEP
>   librpmmisc_la_LDFLAGS += $(LDFLAGS)
>  -# XXX Avoiding SELinux text relocation requires -pie -nostartfiles  
> -nodefaultlibs
>  -librpmmisc_la_LDFLAGS += -XCClinker -pie -XCClinker -nostartfiles
>   librpmmisc_la_LIBADD  += $(LIBS)
>   endif
>   librpmmisc_la_DEPENDENCIES = \
>  @@ .
>  patch -p0 <<'@@ .'
>  Index: rpm/misc/librpmmisc.vers
>   
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>  $ cvs diff -u -r1.9 -r1.10 librpmmisc.vers
>  --- rpm/misc/librpmmisc.vers	18 Aug 2008 23:29:27 -0000	1.9
>  +++ rpm/misc/librpmmisc.vers	28 Nov 2008 20:06:45 -0000	1.10
>  @@ -6,13 +6,67 @@
>       db_env_set_func_fsync_rpmdb;
>       db_strerror_rpmdb;
>       db_create_rpmdb;
>  -    lua*;
>  -    LZMA_STREAM_INIT_VAR;
>  +    lua_call;
>  +    lua_close;
>  +    lua_concat;
>  +    lua_createtable;
>  +    lua_getfield;
>  +    lua_gettop;
>  +    lua_isnumber;
>  +    lua_isstring;
>  +    luaL_argerror;
>  +    luaL_checklstring;
>  +    luaL_error;
>  +    luaL_loadbuffer;
>  +    luaL_loadfile;
>  +    luaL_newstate;
>  +    luaL_openlib;
>  +    luaL_ref;
>  +    luaL_unref;
>  +    lua_newuserdata;
>  +    lua_next;
>  +    lua_objlen;
>  +    luaopen_base;
>  +    luaopen_debug;
>  +    luaopen_io;
>  +    luaopen_local;
>  +    luaopen_math;
>  +    luaopen_os;
>  +    luaopen_package;
>  +    luaopen_posix;
>  +    luaopen_rex_pcre;
>  +    luaopen_rex_posix;
>  +    luaopen_string;
>  +    luaopen_table;
>  +    luaopen_uuid;
>  +    luaopen_wrs;
>  +    lua_pcall;
>  +    lua_pushboolean;
>  +    lua_pushcclosure;
>  +    lua_pushfstring;
>  +    lua_pushlightuserdata;
>  +    lua_pushlstring;
>  +    lua_pushnil;
>  +    lua_pushnumber;
>  +    lua_pushstring;
>  +    lua_pushvalue;
>  +    lua_rawget;
>  +    lua_rawgeti;
>  +    lua_rawset;
>  +    lua_rawseti;
>  +    lua_remove;
>  +    lua_settable;
>  +    lua_settop;
>  +    lua_tolstring;
>  +    lua_tonumber;
>  +    lua_touserdata;
>  +    lua_type;
>       lzma_alone_encoder;
>       lzma_auto_decoder;
>       lzma_code;
>       lzma_end;
>       lzma_preset_lzma;
>  +    LZMA_STREAM_INIT_VAR;
>       magic_buffer;
>       magic_close;
>       magic_error;
>  @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-cvs@rpm5.org
Received on Fri Nov 28 21:15:14 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.