Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446814 - dev-libs/libprelude-1.0.1 - New Package - Prelude-IDS Framework Library
Summary: dev-libs/libprelude-1.0.1 - New Package - Prelude-IDS Framework Library
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Thomas ANDREJAK
URL: https://www.prelude-ids.org/issues/530
Whiteboard:
Keywords: EBUILD, PATCH, UPSTREAM
Depends on:
Blocks: 446293
  Show dependency tree
 
Reported: 2012-12-10 22:59 UTC by Thomas ANDREJAK
Modified: 2018-01-26 21:53 UTC (History)
3 users (show)

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


Attachments
dev-libs/libprelude-1.0.1.ebuild (file_446814.txt,2.78 KB, text/plain)
2012-12-10 23:01 UTC, Thomas ANDREJAK
Details
files/libprelude-1.0.1-libtool.patch (file_446814.txt,914 bytes, patch)
2012-12-10 23:02 UTC, Thomas ANDREJAK
Details | Diff
files/libprelude-1.0.1-ptrdiff_t.patch (file_446814.txt,258 bytes, patch)
2012-12-10 23:04 UTC, Thomas ANDREJAK
Details | Diff
files/libprelude-1.0.1-ruby.patch (file_446814.txt,765 bytes, patch)
2012-12-10 23:05 UTC, Thomas ANDREJAK
Details | Diff
build.log (build.log,87.98 KB, text/plain)
2012-12-22 11:37 UTC, Markos Chandras (RETIRED)
Details
dev-libs/libprelude-1.0.1.ebuild (libprelude-1.0.1.ebuild,2.22 KB, text/plain)
2012-12-27 00:44 UTC, Thomas ANDREJAK
Details
dev-libs/libprelude-1.0.1.ebuild.patch (libprelude.diff,463 bytes, patch)
2012-12-27 22:13 UTC, Thomas ANDREJAK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas ANDREJAK 2012-12-10 22:59:09 UTC
Like I said on the bug 446293 (https://bugs.gentoo.org/show_bug.cgi?id=446293), I post the next prelude ebuilds.

This ebuild is libprelude, category : dev-libs. The libprelude is the Prelude Framework Library.

Reproducible: Always
Comment 1 Thomas ANDREJAK 2012-12-10 23:01:26 UTC
Created attachment 331996 [details]
dev-libs/libprelude-1.0.1.ebuild

The libprelude ebuild, version 1.0.1
Comment 2 Thomas ANDREJAK 2012-12-10 23:02:49 UTC
Created attachment 331998 [details, diff]
files/libprelude-1.0.1-libtool.patch

First patch, libtool.
Comment 3 Thomas ANDREJAK 2012-12-10 23:04:56 UTC
Created attachment 332000 [details, diff]
files/libprelude-1.0.1-ptrdiff_t.patch

Second patch : ptrdiff_t
Comment 4 Thomas ANDREJAK 2012-12-10 23:05:48 UTC
Created attachment 332002 [details, diff]
files/libprelude-1.0.1-ruby.patch

Last patch : ruby
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2012-12-22 11:29:16 UTC
please use tabs and not spaces for identation. Also, please run repoman full to spot any other QA problems. See

http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml#doc_chap7
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-12-22 11:37:32 UTC
Created attachment 333016 [details]
build.log

And also it does not build for me

Portage 2.2.0_alpha149 (default/linux/amd64/10.0, gcc-4.7.2, glibc-2.16.0, 3.6.6-gentoo-testing-devbox x86_64)
=================================================================
System uname: Linux-3.6.6-gentoo-testing-devbox-x86_64-AMD_FX-tm-6100_Six-Core_Processor-with-gentoo-2.2
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo hwoarang qt
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -ftracer -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb -ftracer -frecord-gcc-switches"
DISTDIR="/usr/myportage/distfiles/"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe -ggdb -frecord-gcc-switches"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu,--enable-new-dtags -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/myportage/packages/testing/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/myportage/overlays/hwoarang /usr/myportage/overlays/qt"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avi bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dga divx dri dvd dvdread encode ffmpeg flac fortran gdbm gif glib glitz gmedia gpm iconv jpeg kdrive libnotify mad mjpeg mmx mng modules mp3 mpeg mplayer mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pcre pdf perl png pppd private-headers python qt3support qt4 readline realmedia sdl session slang spell sqlite sse sse2 ssl svg symlink tcpd threads tiff truetype unicode usb userlocales v4l vcd vorbis wmp x264 xine xinerama xml xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US el" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="virtualbox vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 Thomas ANDREJAK 2012-12-27 00:42:04 UTC
gcc 4.7.2 is hardmasked, may you please try with stable gcc ?

Work for me with gcc 4.5.4
Comment 8 Thomas ANDREJAK 2012-12-27 00:44:40 UTC
Created attachment 333404 [details]
dev-libs/libprelude-1.0.1.ebuild

With repoman full corrections
Comment 9 Sergey Popov gentoo-dev 2012-12-27 08:23:53 UTC
i have discovered build failure reason - libprelude does not build correctly with glibc 2.16. With current stable - everything fine.

This is caused by fact, that gets has been declared as a security hole(fgets should be used instead), see http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2012-July/066729.html. This can be workarounded by a dirty hack(and of course it should be reported upstream not to use gets anymore).

Patch for ebuild:

--- libprelude-1.0.1.ebuild.orig       2012-12-27 11:29:55.000000000 +0400
+++ libprelude-1.0.1.ebuild     2012-12-27 12:22:24.000000000 +0400
@@ -50,6 +50,9 @@
        # Python bindings are built/installed manually.
        sed -e "/^SUBDIRS =/s/ python//" -i bindings/low-level/Makefile.am bindings/Makefile.am || die "sed failed"
 
+       # dirty workaround for glibc 2.16 compatibility
+       sed -e '/gets is a security hole/d' -i libmissing/stdio.in.h || die "sed failed"
+
        eautoreconf
 }
Comment 10 Thomas ANDREJAK 2012-12-27 22:13:21 UTC
Created attachment 333530 [details, diff]
dev-libs/libprelude-1.0.1.ebuild.patch

Indeed, gets ...

OK for the patch, work for me.

I will report it upstream soon.
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2013-01-16 19:34:16 UTC
(In reply to comment #10)
> Created attachment 333530 [details, diff] [details, diff]
> dev-libs/libprelude-1.0.1.ebuild.patch
> 
> Indeed, gets ...
> 
> OK for the patch, work for me.
> 
> I will report it upstream soon.

Did you report it upstream? Was it accepted? Do you have a URL for the upstream bug?
Comment 12 Thomas ANDREJAK 2013-01-16 23:24:52 UTC
Thought i have done this before holidays ...

The issue : https://www.prelude-ids.org/issues/530

Hopes it will be accepted and corrected soon.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2013-02-06 19:59:02 UTC
(In reply to comment #12)
> Thought i have done this before holidays ...
> 
> The issue : https://www.prelude-ids.org/issues/530
> 
> Hopes it will be accepted and corrected soon.

There is no activity upstream but I don't quite like the existing patch as we use an insecure function. So I will wait for upstream (or someone else) to provide a proper fix
Comment 14 Thomas ANDREJAK 2013-02-06 22:57:24 UTC
So we have to wait several month :(
The internal team is reorganizing. The activity can not be seen from outside.

We have done thoses Prelude ebuilds for nothing ....
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2013-02-06 23:41:03 UTC
(In reply to comment #14)
> So we have to wait several month :(
> The internal team is reorganizing. The activity can not be seen from outside.
> 
> We have done thoses Prelude ebuilds for nothing ....

it's not for nothing. But introducing security problems to portage is not acceptable ;)
Comment 16 Jonas Stein gentoo-dev 2017-10-07 15:16:33 UTC
we have dev-libs/libprelude in the tree. Is this the same? Can we close the ticket?
Comment 17 Wojciech Myrda 2018-01-23 13:29:15 UTC
(In reply to Jonas Stein from comment #16)
> we have dev-libs/libprelude in the tree. Is this the same? Can we close the
> ticket?

Seems so as https://www.prelude-ids.org/ (ebuilds in this bug) and https://www.prelude-siem.org/ (ebuilds in portage) webpages look the same
Comment 18 Thomas ANDREJAK 2018-01-26 21:53:58 UTC
Hello

Yes it is the same, we can close this ticket