Bug 211851 - editors/codelite: Fails to install (package) for Clang 3.4, 3.5, 3.6
Summary: editors/codelite: Fails to install (package) for Clang 3.4, 3.5, 3.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Carlos J. Puga Medina
URL:
Keywords: easy, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2016-08-15 00:25 UTC by Ivan Rozhuk
Modified: 2016-08-24 10:40 UTC (History)
7 users (show)

See Also:
mmokhi: maintainer-feedback+
koobs: merge-quarterly?


Attachments
Patch that deletes LLDBDebugger.so and codelite-lldb for clang34/35/36 from plist (598 bytes, patch)
2016-08-16 18:08 UTC, Mahdi Mokhtari
mmokhi: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2016-08-15 00:25:21 UTC
Clang 3.6 and SFTP options set.

...
-- Installing: /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/share/codelite/config/cfg/gtk.cfg
-- Installing: /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/bin/codelite-echo
-- Installing: /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/lib/codelite/WebTools.so
-- Installing: /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/share/codelite/javascript.zip
====> Compressing man pages (compress-man)
===>   Installing ldconfig configuration file
===>  Installing for codelite-9.2_1
===>  Checking if codelite already installed
===>   Registering installation for codelite-9.2_1
pkg-static: Unable to access file /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/bin/codelite-lldb: No such file or directory
pkg-static: Unable to access file /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/lib/codelite/LLDBDebugger.so: No such file or directory
*** Error code 74

Stop.
make[1]: stopped in /usr/ports/editors/codelite
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/codelite
Exit 1

root@rimwks# find /tmp/ports/usr/ports/ -name "*codelite-lldb*"
/tmp/ports/usr/ports/editors/codelite/work/codelite-9.2/LLDBDebugger/codelite-lldb

root@rimwks# find /tmp/ports/usr/ports/ -name "*LLDBDebugger*"
/tmp/ports/usr/ports/editors/codelite/work/codelite-9.2/LLDBDebugger
/tmp/ports/usr/ports/editors/codelite/work/codelite-9.2/LLDBDebugger/LLDBDebugger.project
/tmp/ports/usr/ports/editors/codelite/work/.build/LLDBDebugger
Comment 1 Arjan van der Velde 2016-08-16 17:43:44 UTC
having exactly the problem w/ CSCOPE and CLANG36 options set.

-- Arjan
Comment 2 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-08-16 18:02:24 UTC
Hi.
Thanks for reporting.
I've checked it.
Probably this problem is because of same reason for all clang34/35/36 (but does not exist for 37 and 38)
I'm preparing a patch.
I'll upload it.
Comment 3 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-08-16 18:08:24 UTC
Created attachment 173748 [details]
Patch that deletes LLDBDebugger.so and codelite-lldb for clang34/35/36 from plist

I've built it with and without clang34/35/36.
Can you please check it with yours?
Comment 4 Ivan Rozhuk 2016-08-18 09:32:17 UTC
CSCOPE - unset
SFTP - set
CLANG36 - set

Im remove by hands: 
%%CLANG34%%bin/codelite-lldb
%%CLANG34%%lib/codelite/LLDBDebugger.so
%%CLANG35%%bin/codelite-lldb
%%CLANG35%%lib/codelite/LLDBDebugger.so
%%CLANG36%%bin/codelite-lldb
%%CLANG36%%lib/codelite/LLDBDebugger.so
%%CLANG37%%bin/codelite-lldb
%%CLANG37%%lib/codelite/LLDBDebugger.so
%%CLANG38%%bin/codelite-lldb
%%CLANG38%%lib/codelite/LLDBDebugger.so
(roll back to 9.2_0) and it works, as expected.
Your path will work for me.

With clang > 3.6 codelite crash on autocomplete.
Comment 5 Arjan van der Velde 2016-08-18 13:37:54 UTC
works for me too. thanks!

-- Arjan
Comment 6 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-08-18 15:21:14 UTC
(In reply to Arjan van der Velde from comment #5)
Thanks for testing and confirming it.

(In reply to rozhuk.im from comment #4)
> Your path will work for me.
Thanks for testing/confirming that works.

> Im remove by hands: 
> (roll back to 9.2_0) and it works, as expected.
> With clang > 3.6 codelite crash on autocomplete.
Your crash is because of removing clang37/38 lines (as below).
clang37/38 should be there IMO (as i'm doing in patch) and it will work.
%%CLANG37%%bin/codelite-lldb
%%CLANG37%%lib/codelite/LLDBDebugger.so
%%CLANG38%%bin/codelite-lldb
%%CLANG38%%lib/codelite/LLDBDebugger.so
Comment 7 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-08-18 18:34:00 UTC
Comment on attachment 173748 [details]
Patch that deletes LLDBDebugger.so and codelite-lldb for clang34/35/36 from plist

(In reply to Mahdi Mokhtari from comment #6)
So, as i did QA (poudriere, portlint), it's ready to commit IMO.
Comment 8 Dmitry Marakasov freebsd_committer freebsd_triage 2016-08-23 13:46:27 UTC
LGTM.
Comment 9 commit-hook freebsd_committer freebsd_triage 2016-08-23 15:29:33 UTC
A commit references this bug:

Author: cpm
Date: Tue Aug 23 15:28:54 UTC 2016
New revision: 420700
URL: https://svnweb.freebsd.org/changeset/ports/420700

Log:
  - Fix codelite install for Clang 3.4, 3.5 and 3.6.

  ===>   Registering installation for codelite-9.2_1
  pkg-static: Unable to access file /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/bin/codelite-lldb: No such file or directory
  pkg-static: Unable to access file /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/lib/codelite/LLDBDebugger.so: No such file or directory
  *** Error code 74

  PR:		211851
  Submitted by:	Mahdi Mokhtari (maintainer)
  Reported by:	rozhuk.im@gmail.com
  Reviewed by:	amdmi3 (mentor)
  Approved by:	amdmi3 (mentor)
  MFH:		2016Q3

Changes:
  head/editors/codelite/pkg-plist
Comment 10 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-08-23 15:30:41 UTC
Committed!

Thanks
Comment 11 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-08-23 19:15:43 UTC
(In reply to Carlos J. Puga Medina from comment #10)
Thanks :)
Comment 12 commit-hook freebsd_committer freebsd_triage 2016-08-24 10:40:17 UTC
A commit references this bug:

Author: cpm
Date: Wed Aug 24 10:39:37 UTC 2016
New revision: 420784
URL: https://svnweb.freebsd.org/changeset/ports/420784

Log:
  MFH: r420700

  - Fix codelite install for Clang 3.4, 3.5 and 3.6.

  ===>   Registering installation for codelite-9.2_1
  pkg-static: Unable to access file /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/bin/codelite-lldb: No such file or directory
  pkg-static: Unable to access file /tmp/ports/usr/ports/editors/codelite/work/stage/usr/local/lib/codelite/LLDBDebugger.so: No such file or directory
  *** Error code 74

  PR:		211851
  Submitted by:	Mahdi Mokhtari (maintainer)
  Reported by:	rozhuk.im@gmail.com
  Reviewed by:	amdmi3 (mentor)
  Approved by:	amdmi3 (mentor)

  Approved by:	ports-secteam (junovitch)

Changes:
_U  branches/2016Q3/
  branches/2016Q3/editors/codelite/pkg-plist