Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 147693

Summary: New ebuild for DCMTK (Dicom Tool Kit)
Product: Gentoo Linux Reporter: Sebastiaan <s.breedveld>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: atoth, gentoo, polidevk.polidevk, wonko
Priority: High Keywords: EBUILD
Version: 2006.1   
Hardware: All   
OS: Linux   
URL: http://dicom.offis.de/dcmtk.php.en
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dcmtk-3.5.4.ebuild
Somewhat updated ebuild using Debian patch
Ebuild updated even more
Updated ebuild should work with newer openssl
openssl patch the updated ebuild applies
Ebuild based on a newer snapshot
Updated ebuild for a more recent snapshot
Recent stable ebuild
More recent snapshot ebuild

Description Sebastiaan 2006-09-15 07:32:34 UTC
I could not find an ebuild for this toolkit, so I made one. This ebuild seems to work fine. Some previous issues have been discussed on the forum: http://forums.gentoo.org/viewtopic-t-472937-highlight-dcmtk.html

I am not convinced I put everything in the right place, fortunately the dicom.dic is properly detected (omits setting the DCMDICTPATH environment variable).
Comment 1 Sebastiaan 2006-09-15 07:33:18 UTC
Created attachment 97050 [details]
dcmtk-3.5.4.ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-15 07:37:36 UTC
*** Bug 112955 has been marked as a duplicate of this bug. ***
Comment 3 Attila Tóth 2008-01-26 01:19:15 UTC
Created attachment 141801 [details]
Somewhat updated ebuild using Debian patch

I've upgraded the ebuild to some extent. Using Debian's patch it compiles without "-j1", installs more or less all files in the correct position. I had to take care of the documentation.

I'll also modify the init script for dcmqrscp to be in Gentoo style.

Regards,
Dw.
Comment 4 Ivan Havlicek 2008-04-25 21:01:06 UTC
(In reply to comment #3)
> Created an attachment (id=141801) [edit]
> Somewhat updated ebuild using Debian patch

Hi,

I put all that together and push it on our subversion server.

From now, there's ebuild+patch available on : https://svn.modulix.net/gentoo.modulix.net/trunk/overlay/sci-libs

If you want install this version :

1) With layman :
Add to your layman config file : /etc/layman/layman.cfg :

overlays  : http://www.gentoo.org/proj/en/overlays/layman-global.txt
            https://svn.modulix.net/gentoo.modulix.net/trunk/overlay/layman.xml

and add our repository by :

# layman --add modulix

Now you should have that :
# emerge -pv dcmtk
[ebuild   R   ] sci-libs/dcmtk-3.5.4-r3  USE="png ssl tcpd tiff xml2 zlib" 0 kB [1]
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/modulix



2) With local portage tree :
Depending on the value of the value of PORTDIR_OVERLAY in your /etc/make.conf file, get the portage tree by :
# cd $PORTDIR_OVERLAY
# svn co https://svn.modulix.net/gentoo.modulix.net/trunk/overlay/sci-libs

Now you should have that :

# emerge -pv dcmtk
[ebuild   R   ] sci-libs/dcmtk-3.5.4-r3  USE="png ssl tcpd tiff xml2 zlib" 0 kB [1]
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage


Thx for your work and best regards.
--
                                   Ivan
Comment 5 Benjamin Schulz 2009-11-20 16:11:22 UTC
dcmtk fails to install:

_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer dump2dcm.cc                                     
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o tvrdatim tvrdatim.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                  
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer dcmgpdir.cc                                     
make[2]: Leaving directory `/var/tmp/portage/sci-libs/dcmtk-3.5.4-r3/work/dcmtk-3.5.4/dcmdata/tests'                               
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer dcm2xml.cc                                      
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer xml2dcm.cc                                      
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer dcmcrle.cc                                      
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer dcmdrle.cc                                      
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer dcmodify.cc                                     
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer mdfconen.cc                                     
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer mdfdsman.cc                                     
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include  \                         
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer pdf2dcm.cc                                      
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmftest dcmftest.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                  
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmconv dcmconv.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                    
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmdump dcmdump.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                    
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dump2dcm dump2dcm.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                  
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmgpdir dcmgpdir.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                  
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcm2xml dcm2xml.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                    
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o xml2dcm xml2dcm.o -lxml2 -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                             
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmcrle dcmcrle.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                    
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmdrle dcmdrle.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                    
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o dcmodify dcmodify.o mdfconen.o mdfdsman.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                            
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -mtune=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -L../libsrc -L../../ofstd/libsrc -o pdf2dcm pdf2dcm.o -ldcmdata -lofstd -lz -lm -lrt -lpthread -lnsl                                                                                    
make[2]: Leaving directory `/var/tmp/portage/sci-libs/dcmtk-3.5.4-r3/work/dcmtk-3.5.4/dcmdata/apps'                                
make[1]: Leaving directory `/var/tmp/portage/sci-libs/dcmtk-3.5.4-r3/work/dcmtk-3.5.4/dcmdata' 
* ERROR: sci-libs/dcmtk-3.5.4-r3 failed:                                                                                          
 *   emake failed                                                                                                                  
 *                                                                                                                                 
 * Call stack:                                                                                                                     
 *     ebuild.sh, line  55:  Called src_compile                                                                                    
 *   environment, line 2384:  Called die            
Comment 6 Benjamin Schulz 2009-11-20 16:11:48 UTC
emerge --info
Portage 2.1.7.5 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.11-r0, 2.6.31-tuxonice x86_64)
=================================================================                                       
System uname: Linux-2.6.31-tuxonice-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1 
Timestamp of tree: Fri, 20 Nov 2009 08:00:01 +0000                                                      
app-shells/bash:     4.0_p35                                                                            
dev-java/java-config: 2.1.9-r1                                                                          
dev-lang/python:     2.5.4-r2, 2.6.4, 3.1.1-r1                                                          
dev-util/cmake:      2.8.0                                                                              
sys-apps/baselayout: 2.0.1                                                                              
sys-apps/openrc:     0.5.2-r2                                                                           
sys-apps/sandbox:    2.2                                                                                
sys-devel/autoconf:  2.13, 2.63-r1                                                                      
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                    
sys-devel/binutils:  2.20                                                                               
sys-devel/gcc-config: 1.4.1                                                                             
sys-devel/libtool:   2.2.6b                                                                             
virtual/os-headers:  2.6.30-r1                                                                          
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                          
ACCEPT_LICENSE="* -@EULA ut2003 dlj-1.1 sun-bcla-java-vm"                                               
CBUILD="x86_64-pc-linux-gnu"                                                                            
CFLAGS="-mtune=native -O2 -pipe -fomit-frame-pointer"                                                   
CHOST="x86_64-pc-linux-gnu"                                                                             
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                                                                                                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"               
CXXFLAGS="-mtune=native -O2 -pipe -fomit-frame-pointer"                                                                            
DISTDIR="/usr/portage/distfiles"                                                                                                   
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                                       
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                              
LANG="de_DE.UTF-8"                                                                                                                 
LDFLAGS="-Wl,-O1"                                                                                                                  
LINGUAS="de en en_GB"                                                                                                              
MAKEOPTS="-j4"                                                                                                                     
PKGDIR="/usr/portage/packages"                                                                                                     
PORTAGE_CONFIGROOT="/"                                                                                                             
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                        
PORTAGE_TMPDIR="/var/tmp"                                                                                                          
PORTDIR="/usr/portage"                                                                                                             
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/berkano /usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/devnull /usr/local/portage/layman/xwing /usr/local/portage/layman/scarabeus /usr/local/portage/layman/wschlich-testing /usr/local/portage/layman/kde-testing /usr/local/portage/layman/hawking /usr/local/portage/layman/kde-sunset /usr/local/portage/layman/genstef /usr/local/portage/layman/ibormuth /usr/local/portage/ownebuilds"             
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                     
USE="3ds 64bit 7zip X a52 aac acl acpi ads alsa amd64 archive aspell async automount bash-completion berkdb binfilter bittorrent bluetooth bzip2 c3p0 cairo cardbus cdaudio cdda cddax cdparanoia cdr cdrom cern cgi chm cli consolekit context contrast corefonts cpudetection cracklib crypt cuda cups curl custom-optimization cvs dbus derby dga disk-partition dri dts dv dvb dvd dvdr dvdread dvi dx dxr2 dxr3 dxr3-audio-denoise ebook eds em84xx emacs embedded emovix encode excel exif exiv2 extra extras faac faad fam ffmpeg fftw filepicker firefox flac fontconfig foomaticdb fortran fortran95 fpx ftp gadu gd gdbm general ggi gif gimp git glib glibc-compat20 glibc-omitfp glut glw gmp gnome-print gnomecd gnuplot gphoto2 gpm grammar graphics graphviz groupwise gs gsm gstreamer gtk gtk-perl gtkhtml gtkspell gzip hal hdaps hdri hibernate-script html htmlhandbook http humanities ibmacpi iconv icu id3tag ieee1394 imagemagick imlib imlib2 ipv6 ipw4965 java java5 java6 jbig jce jpeg jpeg2k kdcraw kde kpathsea lapack laptop latex lcms ldap lensfun libwww lm_sensors log4j logitech-mouse lyx lzma lzo mad maps matroska md5sum mdnsresponder-compat messenger mikmod mjpeg mmap mmx mmxext mng modules motif mozdevelop mozsha1 mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musepack ncurses network networkmanager nls nptl nptlonly nsplugin nuv nvidia octave odbc office ogg ogg123 ogm omega openbabel openexr opengl opengl-video openmp openvpn pam parport parted pascal passwdqc pcre pdf perl php player plotutils png pop postscript ppds pppd preview-latex ps pstricks publishers python qq qt3support qt4 quicktime quotas radio rar raw readline realmedia redeyes reflection rpm rtc rtf rtsp run-as-root samba scanner schroedinger science scv sdl semantic-desktop session smp sms sndfile speex spell spl sql sse sse2 sse3 ssl ssse3 stream subversion svg swat sysfs syslog t1lib tcpd teletext tex4ht theora threads thunderbird tiff tk toolbar tools totem truetype type1 unicode unzip usb utils v4l v4l2 vcd vdpau vdr vhook vorbis wav wavpack webdav webkit winbind wma wmf wxwidgets wxwindows x264 xanim xcomposite xemacs xetex xext xine xinetd xml xmlreader xmlwriter xorg xprint xulrunner xv xvid xvmc zip zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Laptop ~ #
Comment 7 Wonko 2010-06-27 22:45:44 UTC
I just got the same error, I think (the error report is missing the actual error message, which is far above). Setting MAKEOPTS to -j1 soved this, looks like the patch mentioned in comment #3 does not work for me.

BTW, I'm at ARCH=~amd64. Any particular reason why this is not in KEYWORDS? It seems to work fine for me.

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r0, 2.6.33-tuxonice-r2 x86_64)
=================================================================                                                  
                        System Settings                                                                            
=================================================================                                                  
System uname: Linux-2.6.33-tuxonice-r2-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-2.0.1           
Timestamp of tree: Sat, 26 Jun 2010 09:45:03 +0000                                                                 
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                          
ccache version 2.4 [enabled]                                                                                       
app-shells/bash:     4.1_p7                                                                                        
dev-java/java-config: 2.1.11                                                                                       
dev-lang/python:     2.6.5-r2, 3.1.2-r3                                                                            
dev-util/ccache:     2.4-r8                                                                                        
dev-util/cmake:      2.8.1-r2                                                                                      
sys-apps/baselayout: 2.0.1                                                                                         
sys-apps/openrc:     0.6.1-r1                                                                                      
sys-apps/sandbox:    2.2                                                                                           
sys-devel/autoconf:  2.13, 2.65-r1                                                                                 
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                                  
sys-devel/binutils:  2.20.1-r1                                                                                     
sys-devel/gcc:       4.4.4-r1                                                                                      
sys-devel/gcc-config: 1.4.1                                                                                        
sys-devel/libtool:   2.2.10                                                                                        
virtual/os-headers:  2.6.34                                                                                        
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                     
ACCEPT_LICENSE="* -@EULA"                                                                                          
CBUILD="x86_64-pc-linux-gnu"                                                                                       
CFLAGS="-march=k8-sse3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer"                                                
CHOST="x86_64-pc-linux-gnu"                                                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8-sse3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildpkg buildsyspkg ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/layman/kde /var/portage/layman/kde-sunset /var/portage/layman/armagetron /var/portage/layman/science /var/portage/layman/zugaina /var/portage/layman/sunrise /var/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa amd64 apm audiofile bash-completion bcmath berkdb bluetooth branding bzip2 cairo calendar cdparanoia cdr cli consolekit cracklib crypt ctype cups cvs cxx dbus dga directfb dri dts dvb dvd dvdr emacs emboss encode exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm ggi gif gimp ginac gphoto2 gpm gtk hal handbook hddtemp iconv ieee1394 imagemagick imlib ipv6 jabber jack java javascript jbig jpeg jpeg2k kde latex lcms ldap libnotify lirc lm_sensors mad maildir matroska matrox mikmod mime mmx mng modplug modules motif mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz nas ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pango pcre pdf perl php plotutils png ppds pppd python qt3support qt4 quicktime radius readline recode reflection ruby samba scanner sdl semantic-desktop session slang slp sndfile sockets sox speex spell spl sse sse2 sse3 ssl startup-notification subversion svg sysfs tcpd theora threads tiff truetype unicode usb videos vim-syntax visualization vorbis wma wmf wxwindows x264 xattr xcb xcomposite xine xml xorg xosd xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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 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" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="serial" MISDN_CARDS="avmfritz" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon radeonhd 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-libs/dcmtk-3.5.4-r3 was built with the following:
USE="doc (multilib) png ssl tcpd tiff xml zlib" 
Comment 8 Attila Tóth 2010-07-06 10:05:28 UTC
Created attachment 237709 [details]
Ebuild updated even more

Took the next version of the Debian maintainers' patch.
Comment 9 Wonko 2010-08-11 18:45:26 UTC
It doesn't compile any more, apparently because of the recent update to openssl-1.x:

make[2]: Entering directory `/var/tmp/portage/sci-libs/dcmtk-3.5.4-r7/work/dcmtk-3.5.4/dcmtls/libsrc'
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include -I../../dcmdata/include -I../../dcmnet/include  \
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -march=k8-sse3 -mfpmath=sse -O2 -pipe tlstrans.cc
c++     -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include -I../../config/include -I../../ofstd/include -I../../dcmdata/include -I../../dcmnet/include  \
                 -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -march=k8-sse3 -mfpmath=sse -O2 -pipe tlslayer.cc
tlslayer.cc: In constructor 'DcmTLSTransportLayer::DcmTLSTransportLayer(int, const char*)':
tlslayer.cc:195: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
tlslayer.cc:198: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
tlslayer.cc:201: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
make[2]: *** [tlslayer.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-libs/dcmtk-3.5.4-r7/work/dcmtk-3.5.4/dcmtls/libsrc'
make[1]: *** [libsrc-all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-libs/dcmtk-3.5.4-r7/work/dcmtk-3.5.4/dcmtls'
make: *** [dcmtls-all] Error 2

See comment #7 for emerge --info stuff. I tried both the old and the new -r7 ebuild. But this does not matter anyway, looks like it is a known problem, see http://forum.dcmtk.org/viewtopic.php?t=2359 or https://trac.macports.org/ticket/25608 .
Comment 10 Attila Tóth 2010-08-12 11:34:18 UTC
(In reply to comment #9)
> It doesn't compile any more, apparently because of the recent update to
> openssl-1.x:
> 
> See comment #7 for emerge --info stuff. I tried both the old and the new -r7
> ebuild. But this does not matter anyway, looks like it is a known problem, see
> http://forum.dcmtk.org/viewtopic.php?t=2359 or
> https://trac.macports.org/ticket/25608 .
> 

Thank you for informing the community about it.
I basically using a stable system apart from the hardened toolchain. The current stable openssl is 0.9.8o. However this issue must be taken care of, so I'll try to come up with an updated ebuild soon. The necessary changes went only into the development version of dcmtk upstream.

Regards:
Dwokfur
Comment 11 Attila Tóth 2010-08-31 20:03:57 UTC
Created attachment 245533 [details]
Updated ebuild should work with newer openssl

I modified the current ebuild. Added a patch to take care of the new openssl issue. -j1 is also back for those who had problems.
Comment 12 Attila Tóth 2010-08-31 20:04:58 UTC
Created attachment 245534 [details, diff]
openssl patch the updated ebuild applies

This is the patch the updated ebuild needs in the files directory.
Comment 13 Attila Tóth 2010-08-31 20:09:03 UTC
Created attachment 245536 [details]
Ebuild based on a newer snapshot

I've also tried to create another ebuild for the upcoming version of dcmtk. Epatch becomes confused - maybe because of the non-standard directory name the sources are unpacked to. So I had to chose the dirty way and patch it myself. The debian patch should be updated by the guys. I'm still waiting for the actual release of version 3.5.5 dcmtk. Debian devs will polish their additional adjustments and I'll also move on.
Comment 14 Wonko 2010-09-18 09:42:10 UTC
Thanks Attila! dcmtk-3.5.4-r8 and the openssl-patch are working fine.

Any idea how and when this will get into the science overlay?
Comment 15 Attila Tóth 2010-09-19 10:49:40 UTC
(In reply to comment #14)
> Thanks Attila! dcmtk-3.5.4-r8 and the openssl-patch are working fine.
> 
> Any idea how and when this will get into the science overlay?
> 

I've received some comments about the quality of the ebuilds in order to proceed towards an overlay (twas icarus, not science as I recall). Nevertheless, I haven't had enough time till now to refine the ebuild. I'll try to apply their suggestions and get back to them.

Regards:
Dw.
Comment 16 Eliana 2010-12-13 11:57:01 UTC
(In reply to comment #15)

The date of the file changed. It is now 20101130. The line 10 of the ebuild should change from

DCMTK_DATE=20100723

to 

DCMTK_DATE=20101130


I also had some trouble with ebuild digest. I had to set the mirrors to "" before ebuild-"ing"

$ GENTOO_MIRRORS="" ebuild dcmtk-3.5.5-r1.ebuild digest

It compiled ok! :) 
Comment 17 Eliana 2010-12-14 10:55:31 UTC
(In reply to comment #16)
Just one more thing.

I had to manually copy dicom.dic to /usr/local/dicom/lib/ in order to get the dictionary recognized. 

I was getting the following error when trying to get data from a pacs-server:
DICOMNetworkClient Error Hostname <pacs-server> called AET <pacs-server-name> ==> Find Failed cond = 531 | Data dictionary missing.

Setting the DCMDICTPATH did not do the trick.
Comment 18 Attila Tóth 2010-12-15 21:11:07 UTC
Created attachment 257249 [details]
Updated ebuild for a more recent snapshot

I hope that will we better.
Comment 19 Attila Tóth 2010-12-15 21:12:03 UTC
(In reply to comment #16)
> (In reply to comment #15)
> 
> The date of the file changed. It is now 20101130. The line 10 of the ebuild
> should change from
> 
> DCMTK_DATE=20100723
> 
> to 
> 
> DCMTK_DATE=20101130
> 
> 
> I also had some trouble with ebuild digest. I had to set the mirrors to ""
> before ebuild-"ing"
> 
> $ GENTOO_MIRRORS="" ebuild dcmtk-3.5.5-r1.ebuild digest
> 
> It compiled ok! :) 
> 

I've updated the date of the snapshot.
I have no proper idea for handling your mirror problems.
Comment 20 Attila Tóth 2010-12-15 21:13:52 UTC
(In reply to comment #17)
> (In reply to comment #16)
> Just one more thing.
> 
> I had to manually copy dicom.dic to /usr/local/dicom/lib/ in order to get the
> dictionary recognized. 
> 
> I was getting the following error when trying to get data from a pacs-server:
> DICOMNetworkClient Error Hostname <pacs-server> called AET <pacs-server-name>
> ==> Find Failed cond = 531 | Data dictionary missing.
> 
> Setting the DCMDICTPATH did not do the trick.
> 

I'm currently using 3.5.4-r8. I know, that it misses some features of 3.5.5. I cannot verify your problem. I've commented out the debian stuff from the updated ebuild. Give it a try.
Comment 21 Jan Schubert 2011-03-21 10:45:07 UTC
What about 3.60? The euilds for 3.55 are not working as it seems there are no snapshots for this releays available anymore. Will try 3.54 on amd64...
Comment 22 Jan Schubert 2011-03-21 13:17:10 UTC
3.4.x did not work but renaming the 3.5.x ebuild from the science overlay to 3.6.1_pre20110225 seems to be OK...
Comment 23 Attila Tóth 2011-03-22 08:46:37 UTC
(In reply to comment #22)
> 3.4.x did not work but renaming the 3.5.x ebuild from the science overlay to
> 3.6.1_pre20110225 seems to be OK...

Works for me as well on Hardened x86. However it dies during install if I use doc. So no man pages. No time to sort that out currently.
Comment 24 Attila Tóth 2011-07-19 14:59:43 UTC
Created attachment 280379 [details]
Recent stable ebuild

Based on the current stable dcmtk sources, uses cmake and some Debian patches.
Comment 25 Attila Tóth 2011-07-19 15:00:33 UTC
Created attachment 280381 [details]
More recent snapshot ebuild
Comment 26 Attila Tóth 2011-07-19 15:01:19 UTC
Comment on attachment 280379 [details]
Recent stable ebuild

Got rid of the unnecessary distutils inheritance.
Comment 27 Maciej Mrozowski gentoo-dev 2015-05-04 21:27:40 UTC

*** This bug has been marked as a duplicate of bug 418285 ***