Changeset ae7bbbc in freewrt


Ignore:
Timestamp:
Jan 13, 2007, 11:47:02 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
9b55b84
Parents:
44991f8
Message:

fix the libtool problem, tested with mksh (no .la file),
libgpg-error (creates .la file), libgcrypt (uses libgpg-error)

git-svn-id: svn://www.freewrt.org/branches/common-adk@1589 afb5a338-a214-0410-bd46-81f09a774fd1

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mk/package.mk

    r44991f8 rae7bbbc  
    8686            tee '$${STAGING_DIR}/pkg/$(1)' | \
    8787            cpio -apdlmu '$${STAGING_DIR}'
     88        @cd '${STAGING_DIR}'; grep 'usr/lib/.*\.la$$$$' 'pkg/$(1)' | \
     89            while read fn; do \
     90                chmod u+w $$$$fn; \
     91                printf '%s\nwq\n' '/^libdir='\''*/s##&${STAGING_DIR}#' | \
     92                    ed -s $$$$fn; \
     93        done
    8894        $${IPKG_BUILD} $${IDIR_$(1)} $${PACKAGE_DIR}
    8995
  • mk/pkg-bottom.mk

    r44991f8 rae7bbbc  
    116116            find lib \( -name lib\*.so.\* -o -name lib\*.a \) \
    117117                -exec echo "WARNING: ${PKG_NAME} installs files in /lib - fix this!" >&2 \
    118                 \; -quit ; \
     118                \; -quit 2>/dev/null; \
    119119            find usr ! -type d 2>/dev/null | \
    120120            grep -v -e '^usr/share' -e '^usr/man' -e '^usr/info' | \
    121121            tee '${STAGING_DIR}/pkg/${PKG_NAME}' | \
    122122            cpio -apdlmu '${STAGING_DIR}'
    123         -rm -f ${STAGING_DIR}/{,usr/}lib/*.la
     123        @cd '${STAGING_DIR}'; grep 'usr/lib/.*\.la$$' 'pkg/${PKG_NAME}' | \
     124            while read fn; do \
     125                chmod u+w $$fn; \
     126                printf '%s\nwq\n' '/^libdir='\''*/s##&${STAGING_DIR}#' | \
     127                    ed -s $$fn; \
     128        done
    124129        touch $@
    125130
     
    133138
    134139package: ${ALL_IPKGS}
    135         cd $(WRKDIR)/fake-${ARCH}; y=; sp=; for x in ${ALL_IDIRS}; do \
     140        @cd $(WRKDIR)/fake-${ARCH}; y=; sp=; for x in ${ALL_IDIRS}; do \
    136141                y="$$y$$sp$${x#$(WRKDIR)/fake-${ARCH}/}"; \
    137142                sp=' '; \
  • scripts/scan-tools.sh

    r44991f8 rae7bbbc  
    272272fi
    273273
     274if ! which ed >/dev/null 2>&1; then
     275        echo Why does your distribution not package the standard
     276        echo text editor, ed? Please install it to continue.
     277        out=1
     278elif [[ "$(which ed 2>/dev/null)" != /bin/ed ]]; then
     279        echo Your operating system installs ed, the standard text
     280        echo editor, not as /bin/ed. While you can build FreeWRT
     281        echo with this, ask your vendor to fix it, point to the
     282        echo FHS if needed.
     283fi
     284
    274285
    275286cd $topdir
Note: See TracChangeset for help on using the changeset viewer.