Bug 160898

Summary: net-p2p/deluge fails to install from ports without PYGTK disabled
Product: Ports & Packages Reporter: Doug Penner <darwinsurvivor>
Component: Individual Port(s)Assignee: Pawel Pekala <pawel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
deluge-unbreak-nox11.diff.txt
none
deluge-unbreak-nox11.diff.txt none

Description Doug Penner 2011-09-22 10:30:07 UTC
I am using deluge on a headless server, so to avoid needlessly building a number of X libraries, I disabled PYGTK in the port.

Running
# make config -> disable PYGTK
# make
shows no errors, but as soon as I try to run
# make install
I get the following output

/// start output
===>  Installing for deluge-1.3.3,1
===>   deluge-1.3.3,1 depends on package: py27-xdg>=0.18 - found
===>   deluge-1.3.3,1 depends on package: py27-libtorrent-rasterbar>=0.15.1 - found
===>   deluge-1.3.3,1 depends on package: py27-openssl>=0.8 - found
===>   deluge-1.3.3,1 depends on package: py27-chardet>=1.0.1 - found
===>   deluge-1.3.3,1 depends on package: py27-mako>=0.2.5 - found
===>   deluge-1.3.3,1 depends on file: /usr/local/bin/easy_install-2.7 - found
===>   deluge-1.3.3,1 depends on file: /usr/local/bin/python2.7 - found
===>   deluge-1.3.3,1 depends on file: /usr/local/lib/python2.7/site-packages/twisted/web/__init__.py - found
===>   deluge-1.3.3,1 depends on file: /usr/local/lib/python2.7/site-packages/twisted/__init__.py - found
===>   deluge-1.3.3,1 depends on shared library: intl - found
===>   Generating temporary packing list
===>  Checking if net-p2p/deluge already installed
running easy_install
Processing deluge-1.3.3-py2.7.egg
creating /usr/local/lib/python2.7/site-packages/deluge-1.3.3-py2.7.egg
Extracting deluge-1.3.3-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding deluge 1.3.3 to easy-install.pth file
Installing deluge-console script to /usr/local/bin
Installing deluged script to /usr/local/bin
Installing deluge-web script to /usr/local/bin
Installing deluge-gtk script to /usr/local/bin
Installing deluge script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/deluge-1.3.3-py2.7.egg
===> Installing rc.d startup script(s)
if [ ! -d /usr/local/share/icons/hicolor/scalable/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/scalable/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/scalable/apps/deluge.svg  /usr/local/share/icons/hicolor/sc
alable/apps
if [ ! -d /usr/local/share/icons/hicolor/16x16/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/16x16/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/16x16/apps/deluge.png  /usr/local/share/icons/hicol
or/16x16/apps
if [ ! -d /usr/local/share/icons/hicolor/22x22/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/22x22/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/22x22/apps/deluge.png  /usr/local/share/icons/hicol
or/22x22/apps
if [ ! -d /usr/local/share/icons/hicolor/24x24/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/24x24/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/24x24/apps/deluge.png  /usr/local/share/icons/hicol
or/24x24/apps
if [ ! -d /usr/local/share/icons/hicolor/32x32/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/32x32/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/32x32/apps/deluge.png  /usr/local/share/icons/hicol
or/32x32/apps
if [ ! -d /usr/local/share/icons/hicolor/36x36/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/36x36/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/36x36/apps/deluge.png  /usr/local/share/icons/hicol
or/36x36/apps
if [ ! -d /usr/local/share/icons/hicolor/48x48/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/48x48/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/48x48/apps/deluge.png  /usr/local/share/icons/hicol
or/48x48/apps
if [ ! -d /usr/local/share/icons/hicolor/64x64/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/64x64/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/64x64/apps/deluge.png  /usr/local/share/icons/hicol
or/64x64/apps
if [ ! -d /usr/local/share/icons/hicolor/72x72/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/72x72/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/72x72/apps/deluge.png  /usr/local/share/icons/hicol
or/72x72/apps
if [ ! -d /usr/local/share/icons/hicolor/96x96/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/96x96/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/96x96/apps/deluge.png  /usr/local/share/icons/hicol
or/96x96/apps
if [ ! -d /usr/local/share/icons/hicolor/128x128/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/128x128/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/128x128/apps/deluge.png  /usr/local/share/icons/hic
olor/128x128/apps
if [ ! -d /usr/local/share/icons/hicolor/192x192/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/192x192/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/192x192/apps/deluge.png  /usr/local/share/icons/hic
olor/192x192/apps
if [ ! -d /usr/local/share/icons/hicolor/256x256/apps ]; then  /bin/mkdir -p /usr/local/share/icons/hicolor/256x256/apps ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/icons/hicolor/256x256/apps/deluge.png  /usr/local/share/icons/hic
olor/256x256/apps
if [ ! -d /usr/local/share/applications ]; then  /bin/mkdir -p /usr/local/share/applications ;  fi
install  -o root -g wheel -m 444 /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/share/applications/deluge.desktop  /usr/local/share/applications
install: /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/share/applications/deluge.desktop: No such file or directory
*** Error code 71

Stop in /usr/ports/net-p2p/deluge.
*** Error code 1

Stop in /usr/ports/net-p2p/deluge.
*** Error code 1

Stop in /usr/ports/net-p2p/deluge.
/// end output

It seems that it is trying to install the deluge.desktop file which does not exist. My guess is that the file is built by the PYGTK part (which I have disabled). There is a deluge.desktop.in file in the same folder, but I am unsure how related that is to the error.

Unfortunately the server is fairly slow and it would take quite a while to attempt a recompile with PYGTK enabled to test my theory.

Fix: 

Creating an empty file to replace the missing one appears to resolve the issue. Of course the deluge.desktop file won't do anything, but being a headless install (no PYGTK), I don't think that's an issue.

To fix the problem I ran the following after disabling PYGTK
# make
# touch /usr/ports/net-p2p/deluge/work/deluge-1.3.3/deluge/data/share/applications/deluge.desktop
# sudo make install distclean
How-To-Repeat: # cd /usr/ports/net-p2p/deluge
# make config -> disable PYGTK
# make install distclean
Comment 1 R.Mahmatkhanov 2011-09-22 10:36:03 UTC
Doug Penner wrote on 22.09.2011 13:20:
>> Number:         160898
>> Category:       ports
>> Synopsis:       Deluge fails to install from ports without PYGTK disabled

Doug, thanks for the report, i'll see what can be done later today.
But it now look obvious that switching to manual install instead of 
easy_install was a bad idea.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2011-09-22 10:53:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jsa

Fix synopsis and assign.
Comment 3 R.Mahmatkhanov 2011-09-24 19:07:00 UTC
Doug Penner wrote on 22.09.2011 13:20:
>> Number:         160898
>> Category:       ports
>> Synopsis:       Deluge fails to install from ports without PYGTK disabled

This patch fix the build.

Logs:
    WITH_PYGTK: http://happy-nation.by.ru/ports/tb/deluge-with-pygtk.log
WITHOUT_PYGTK: http://happy-nation.by.ru/ports/tb/deluge-without-pytgtk.log

Btw, i dunno why it was assigned to jsa@. I'm an current maintainer.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.
Comment 4 R.Mahmatkhanov 2011-09-24 19:07:00 UTC
Doug Penner wrote on 22.09.2011 13:20:
>> Number:         160898
>> Category:       ports
>> Synopsis:       Deluge fails to install from ports without PYGTK disabled

This patch fix the build.

Logs:
    WITH_PYGTK: http://happy-nation.by.ru/ports/tb/deluge-with-pygtk.log
WITHOUT_PYGTK: http://happy-nation.by.ru/ports/tb/deluge-without-pytgtk.log

Btw, i dunno why it was assigned to jsa@. I'm an current maintainer.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2011-10-18 14:44:23 UTC
Responsible Changed
From-To: jsa->freebsd-ports-bugs

doesn't look like a jsa@ port
Comment 6 Pawel Pekala freebsd_committer freebsd_triage 2011-10-19 18:46:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 7 dfilter service freebsd_committer freebsd_triage 2011-10-19 23:12:19 UTC
pawel       2011-10-19 22:12:04 UTC

  FreeBSD ports repository

  Modified files:
    net-p2p/deluge       Makefile pkg-plist 
  Log:
  Fix build when WITHOUT_PYGTK=true
  
  PR:             ports/160898
  Reported by:    Doug Penner <darwinsurvivor@gmail.com>
  Fix by:         Ruslan Mahmatkhanov <cvs-src@yandex.ru> (maintainer)
  
  Revision  Changes    Path
  1.78      +8 -5      ports/net-p2p/deluge/Makefile
  1.39      +1 -2      ports/net-p2p/deluge/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 Pawel Pekala freebsd_committer freebsd_triage 2011-10-19 23:12:47 UTC
State Changed
From-To: open->closed

Committed. Thanks!