Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294757 - net-wireless/irda-utils-0.9.18-r3 initscript should create /var/run/irattach.pid
Summary: net-wireless/irda-utils-0.9.18-r3 initscript should create /var/run/irattach.pid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo TreeCleaner Project
URL: https://bugs.launchpad.net/ircp-tray/...
Whiteboard:
Keywords: NeedPatch, PMASKED
Depends on:
Blocks: 317539
  Show dependency tree
 
Reported: 2009-11-26 20:41 UTC by Marcello Magaldi
Modified: 2021-02-21 10:57 UTC (History)
0 users

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


Attachments
irda-utils-0.9.18-r5.ebuild (irda-utils-0.9.18-r5.ebuild,2.83 KB, text/plain)
2013-01-01 18:30 UTC, Pacho Ramos
Details
irdadump-version.patch (irda-utils-0.9.18-irdadump-version.patch,594 bytes, patch)
2013-01-01 18:31 UTC, Pacho Ramos
Details | Diff
bitsperlong.patch (irda-utils-0.9.18-bitsperlong.patch,334 bytes, patch)
2013-01-01 18:31 UTC, Pacho Ramos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcello Magaldi 2009-11-26 20:41:28 UTC
Since some apps, like ircp-tray , uses irattach.pid file to check if the irda service is started and actually /etc/init.d/irda doesn't create that file, ircp-tray (0.7.4) gets a warning on each start . So I modified /etc/init.d/irda to create the irattach.pid on start and to remove it on stop :

on start function :
        /usr/sbin/irattach ${DEVICE} ${DONGLE} ${DISCOVERY}
	pidof irattach > /var/run/irattach.pid
	eend ${?}

on stop function :
        ebegin "Shutting down IrDA"
	/usr/bin/pkill -f "^/usr/sbin/irattach ${DEVICE} ?"
	rm /var/run/irattach.pid



Reproducible: Always

Actual Results:  
ircp-tray claims about irda service not started. But after the above modifications , no more warnings are shown.


emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 26 Nov 2009 18:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe  -msse2 -msse3 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/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 /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium4 -pipe  -msse2 -msse3 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer parallel-fetch parallell-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://gentoo.mneisen.org/ http://gentoo.virginmedia.com/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en en_US en_GB"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
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 /usr/portage/local/layman/synce /usr/portage/local/layman/yarik-overlay /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi aim alsa amr amrnb amrwb apache2 asp aspnet audiofile autoipd avahi avi bash-completion beagle berkdb bitmap-fonts bluetooth bonjour bonobo boo branding bzip2 c++ cairo caps cdaudio cdda cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dba dbus devhelp directfb divx4linux dri dts dvd dvdnav dvdr dvdread eds emboss encode evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp fuse galago gcj gdbm gif gimp git glade glitz gnome gnome-keyring gnustep gnutls gpm gstreamer gtk gtk2 guile hal howl icons iconv icq id3tag imagemagick imap imlib ipv6 irda jabber jack java java6 javascript jpeg junit kde kpathsea latex ldap libg++ libnotify libwww lisa live lzo mad matroska md5sum mikmod mime mjpeg mmx mmx2 mng modules mono motif mp2 mp3 mp4 mpeg msn mudflap musepack mysql nas nautilus ncurses networkmanager nls normalize nptl nptlonly nsplugin obex objc odbc offensive ogg oggvorbis ogm opengl openmp oscar oss pam pcmcia pcre pda pdf pdflib perl php png pnm pnp portaudio posix ppds pppd pulseaudio python qt qt3 qt3support qt4 quicktime rar readline reflection samba sasl scanner sdl sensord session shorten slang sndfile sockets sourceview speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification subversion svg svga sysfs tcltk tcpd tetex theora threads thunar thunderbird tidy tiff tk totem truetype truetype-fonts type1-fonts unicode upnp usb utf v4l v4l2 valgrind vcd videos vorbis webkit wifi win32codecs wps wxgtk1 wxwidgets wxwindows x264 x86 xanim xcomposite xine xml xml2 xorg xpm xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="service_file also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Pacho Ramos gentoo-dev 2013-01-01 18:30:07 UTC
Probably init.d script should be moved to use start-stop-daemon:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4
Comment 2 Pacho Ramos gentoo-dev 2013-01-01 18:30:59 UTC
Created attachment 333954 [details]
irda-utils-0.9.18-r5.ebuild

Tried to migrate it but it fails to start :S
# /etc/init.d/irda start
irda                  | * Starting IrDA ...
irda                  |start-stop-daemon: option requires an argument -- 's'
irda                  |Usage: start-stop-daemon [options] 
...
Comment 3 Pacho Ramos gentoo-dev 2013-01-01 18:31:31 UTC
Created attachment 333956 [details, diff]
irdadump-version.patch
Comment 4 Pacho Ramos gentoo-dev 2013-01-01 18:31:46 UTC
Created attachment 333958 [details, diff]
bitsperlong.patch
Comment 5 Larry the Git Cow gentoo-dev 2021-02-21 10:57:23 UTC
The bug has been closed via the following commit(s):

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

commit 0c721001fae7c09b754f8222d69609633e4ff0fa
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-02-21 10:56:38 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-02-21 10:56:38 +0000

    net-wireless/irda-utils: Remove last-rited pkg
    
    Closes: https://bugs.gentoo.org/741110
    Closes: https://bugs.gentoo.org/738458
    Closes: https://bugs.gentoo.org/716544
    Closes: https://bugs.gentoo.org/294757
    
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 net-wireless/irda-utils/Manifest                   |   1 -
 net-wireless/irda-utils/files/irda-setup.sh        |  68 -----------
 net-wireless/irda-utils/files/irda-usb.sh          |  62 ----------
 .../files/irda-utils-0.9.18-SIOCGSTAMP.patch       |  11 --
 .../files/irda-utils-0.9.18-asneeded.patch         |  15 ---
 .../files/irda-utils-0.9.18-dofail.patch           |  26 ----
 .../files/irda-utils-0.9.18-headers.patch          |  11 --
 .../irda-utils/files/irda-utils-0.9.18-io.h.diff   |  48 --------
 .../files/irda-utils-0.9.18-ldflags.patch          | 132 ---------------------
 .../files/irda-utils-0.9.18-makefile.diff          |  11 --
 .../files/irda-utils-0.9.18-smcinit.diff           |  14 ---
 net-wireless/irda-utils/files/irda-utils-rh1.patch |  11 --
 net-wireless/irda-utils/files/irda.confd           |  27 -----
 net-wireless/irda-utils/files/irda.initd           |  85 -------------
 net-wireless/irda-utils/files/irda.modsd           |  48 --------
 net-wireless/irda-utils/files/irda.rules           |  18 ---
 .../irda-utils/irda-utils-0.9.18-r6.ebuild         | 105 ----------------
 net-wireless/irda-utils/metadata.xml               |   8 --
 profiles/package.mask                              |   6 -
 19 files changed, 707 deletions(-)