處理 GNU Stow 衝突

處理 GNU Stow 衝突

建議的處理方式是什麼GNU 斯托衝突?

我嘗試收起readline-6.2並收到以下警告:

> stow readline-6.2
Loading defaults from /home/josh/.stowrc
WARNING! stowing readline-6.2 would cause conflicts:
  * existing target is stowed to a different package: share/info/dir =>  
../../../stow_dir/stow_2.2.0_canonical_paths/share/info/dir
All operations aborted.

衝突與包stow_2.2.0_canonical_paths包目錄對於stow(這是因為我引導了存儲)。

以下是衝突目標包含的內容:

> cat ~/local/share/info/dir 
This is the file .../info/dir, which contains the
topmost node of the Info hierarchy, called (dir)Top.
The first time you invoke Info you start off looking at this node.

File: dir,      Node: Top       This is the top of the INFO tree

  This (the Directory node) gives a menu of major topics.
  Typing "q" exits, "?" lists all Info commands, "d" returns here,
  "h" gives a primer for first-timers,
  "mEmacs<Return>" visits the Emacs manual, etc.

  In Emacs, you can click mouse button 2 on a menu item or cross reference
  to select it.

* Menu:

System administration
* Stow: (stow).                 GNU Stow.

解決此衝突的建議方法是什麼?

答案1

dir文件由自動產生/擴展install-info並包含有關可用文件的信息texinfo文檔系統。

您只需刪除該檔案即可。如果你想使用info系統,可以嘗試將其合併dir到之前的其他系統中。或者,您可以在將目錄中的install-info所有檔案與.install-info --info-dir=$PWD time.info.gzshare/infostow

另一個選擇是切換到xstow如果您將以下內容新增至您的xstow.ini.

[exec]
match = dir # GNU info index file
exec = merge-info %t %s -o %t
exec-unstow = merge-info -u %t %s -o %t

答案2

使用 GNU autotools 軟體,您可以--infodir--prefix運行./configure.

我曾經有一個單獨的stow目錄來存放所有資訊文檔,直到我意識到我從未閱讀過它們...

答案3

您可以在ing 之後但在 ing 之前刪除該dir檔案。然後,在裝載後,只需調用將資訊文件合併到原始.我認為這是最乾淨的解決方案。make installstowinstall-infodir

相關內容