OpenWrt Forum Archive

Topic: Package put into ./package/ does not show up

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I made a small package and wanted to give it a try:

git clone git://git.openwrt.org/14.07/openwrt.git
cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

#I copy my package into ./package/ at this point

make defconfig
make menuconfig

The problem now is that the package does not show up in the menu.
When I try the search (type / and enter the search term), then it shows up.
But still, it is not listed in the menu or mentioned in the .config file.

I deleted ./tmp/ and did "make defconfig" - no change.

Is there anything I can try?


Here is the Makefile of the package:

include $(TOPDIR)/rules.mk

PKG_NAME:=foobar
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0

include $(INCLUDE_DIR)/package.mk

define Package/foobar
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libpthread +libssp
  TITLE:=Open Foo
  URL:=https://github.com/foobar/foobar
  SUBMENU:=VPN
endef

define Package/foobar/description
    foobar
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef

define Package/foobar/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/foobar $(1)/usr/bin/
endef

$(eval $(call BuildPackage,foobar))
mwarning wrote:

When I try the search (type / and enter the search term), then it shows up.

Please copy&paste what you can see then. I expect you to provide something like

  │ Symbol: PACKAGE_foobar [=n]
  │ Type  : tristate
  │ Prompt: foobar.......................................................... Open Foo
  │   Location:
  │     -> Network
  │ (1)   -> VPN
  │   Defined at tmp/.config-package.in:14463
  │   Depends on: SSP_SUPPORT [=n]
  │   Selects: PACKAGE_libpthread [=n] && PACKAGE_libssp [=n] && PACKAGE_libc [=y] && PACKAGE_librt [=n] && PACKAGE_libpthread [=n]

@Zajec: here you go:

  │ Symbol: PACKAGE_foobar [=n]
  │ Type  : tristate
  │ Prompt: foobar.......................................................... Open Foo
  │   Defined at tmp/.config-package.in:44590
  │   Depends on: SSP_SUPPORT [=n] 
  │   Location:
  │     -> Network
  │ (1)   -> VPN
  │   Selects: PACKAGE_libc [=y] && PACKAGE_libssp [=n] && PACKAGE_librt [=n] && PACKAGE_libpthread [=n] && PACKAGE_libpthread [=n]
  │ 
  │
  │ Symbol: DEFAULT_foobar [=DEFAULT_foobar]
  │ Type  : unknown

Still, the package is not listed in Network => VPN.
Can you verify this observation?

(Last edited by mwarning on 22 Jan 2015, 12:19)

mwarning wrote:

@Zajec: here you go:

  │   Depends on: SSP_SUPPORT [=n] 

Still, the package is not listed in Network => VPN.

If it depends on SSP_SUPPORT and that is "n", then the item is not visible in the menu.
Does libssp require that symbol, or something like that?

I am not sure I understand correctly.

Package foobar  depends on libpthread and libssp, so I thought that both will be selected when the package (foobar) is selected.
The wiki seems to agree with me:

 +<foo>     Package will depend on package <foo> and will select it when selected. 

Source: http://wiki.openwrt.org/doc/devel/packa … ency_types

Ah, I think I understand. libssp needs SSP_SUPPORT, otherwise libssp is not visible and therefor package foobar is not visible. Right?

The discussion might have continued from here.