Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc and miniroot



Hi! all,


Can I crunch pkgsrc into crunched binary?
I want crunched gqview in miniroot.  I already crunch and work Xorg with
udl(4) on GUMSTIX(verdex-pro).

I added some settings to my list file.  However, the build.sh did not
build the pkgsrc.


for gqview in my distrib/evbarm/miniroot/list ---

  # extras in usr/pkg/bin
  PROG   usr/pkg/bin/gqview

  SPECIAL gqview         srcdir  /usr/pkgsrc/graphics/gqview

---

  ./build.sh -m evbarm -x -u release
    :
  rm -f instbin.conf instbin.conf.tmp
  ARCHDIR=/usr/src/distrib/miniroot/../evbarm/miniroot  DISTRIBREV=59922  
DISTRIBVER=5.99.22  KERNOBJDIR=/home/lance/obj/arm/sys/arch/evbarm/compile 
NETBSDSRCDIR=/usr/src  CRUNCHBIN=instbin  CURDIR=/usr/src/distrib/miniroot  
DESTDIR=/home/lance/obj/arm/destdir.evbarm  DISTRIBDIR=/usr/src/distrib  
MACHINE=evbarm  MACHINE_ARCH=arm  MAKE=/usr/src/../cross/arm/bin/nbmake  
OBJDIR=/home/lance/obj/arm/distrib/miniroot 
TARGETDIR=/home/lance/obj/arm/distrib/miniroot/work 
/usr/src/../cross/arm/bin/nbawk -f /usr/src/distrib/common/parselist.awk -v 
mode=crunch /usr/src/distrib/miniroot/list 
/usr/src/distrib/miniroot/../evbarm/miniroot/list > instbin.conf.tmp  && mv 
instbin.conf.tmp instbin.conf
  AWK=/usr/src/../cross/arm/bin/nbawk SMALLPROG=1 SMALLPROG_INET6=1 
MAKE=/usr/src/../cross/arm/bin/nbmake /usr/src/../cross/arm/bin/nbcrunchgen -f 
-D /usr/src  -L /home/lance/obj/arm/destdir.evbarm/usr/lib -q -d "-Os" 
instbin.conf
  instbin.conf: gqview: error: no objpaths specified or calculated.
  instbin.conf: gqview: ignoring program because of errors.
  Run "make -f instbin.mk objs exe" to build crunched binary.

  *** Failed target:  instbin.mk
  *** Failed command: AWK=/usr/src/../cross/arm/bin/nbawk SMALLPROG=1 
SMALLPROG_INET6=1 MAKE=/usr/src/../cross/arm/bin/nbmake 
/usr/src/../cross/arm/bin/nbcrunchgen -f -D /usr/src -L 
/home/lance/obj/arm/destdir.evbarm/usr/lib -q -d "-Os" instbin.conf
  *** Error code 1


Have you good idea?


Last, I describe the setting for Xorg added to my list.  ;-)
And, dlfcn.c for me was made.  This supports pseudo dlopen().  And,
dlsym() returns the pointer for ModuleData of wsudl and fb.
Moreover, the patch that corrects the error of crunchgen is appended.

---
  # extras in usr/X11R7/bin
  PROG    usr/X11R7/bin/Xorg

  SPECIAL Xorg            objs    atom.o colormap.o cursor.o deprecated.o 
devices.o dispatch.o dixfonts.o dixutils.o enterleave.o events.o extension.o 
ffs.o gc.o getevents.o globals.o glyphcurs.o grabs.o initatoms.o main.o 
pixmap.o privates.o property.o ptrveloc.o registry.o resource.o selection.o 
swaprep.o swapreq.o tables.o window.o
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/atom.o
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/colormap.o
  SPECIAL Xorg            keepsymbols     CreateColormap TellLostMap 
TellGainedMap AllocColor FakeAllocColor FakeFreeColor QueryColors FreeColors 
StoreColors
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/cursor.o
  SPECIAL Xorg            keepsymbols     FreeCursor AllocARGBCursor
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/deprecated.o
  SPECIAL Xorg            keepsymbols     SecurityLookupWindow LookupWindow 
SecurityLookupDrawable LookupDrawable LookupClient SecurityLookupIDByType 
SecurityLookupIDByClass LookupIDByType LookupIDByClass dixLookupResource
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/devices.o
  SPECIAL Xorg            keepsymbols     CoreDevicePrivateKey 
UnusedClassesPrivateKeyIndex UnusedClassesPrivateKey AddInputDevice 
EnableDevice DisableDevice ActivateDevice CloseDownDevices RemoveDevice 
dixLookupDevice SetKeySymsMap InitKeyClassDeviceStruct 
InitButtonClassDeviceStruct InitValuatorClassDeviceStruct 
InitPointerAccelerationScheme InitFocusClassDeviceStruct 
InitKbdFeedbackClassDeviceStruct InitPtrFeedbackClassDeviceStruct 
InitStringFeedbackClassDeviceStruct InitBellFeedbackClassDeviceStruct 
InitLedFeedbackClassDeviceStruct InitIntegerFeedbackClassDeviceStruct 
InitPointerDeviceStruct InitKeyboardDeviceStruct SendMappingNotify BadDeviceMap 
AllModifierKeysAreUp Ones GetPairedDevice
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/dispatch.o
  SPECIAL Xorg            keepsymbols     ServerGrabCallback dispatchException 
SetInputCheck UpdateCurrentTime UpdateCurrentTimeIf SmartScheduleDisable 
SmartScheduleSlice SmartScheduleInterval SmartScheduleMaxSlice 
EnableLimitedSchedulingLatency DisableLimitedSchedulingLatency ProcBadRequest 
dispatchExceptionAtReset CloseDownClient NextAvailableClient SendErrorToClient 
MarkClientException
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/dixfonts.o
  SPECIAL Xorg            keepsymbols     GetClientResolutions 
RegisterFPEFunctions
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/dixutils.o
  SPECIAL Xorg            keepsymbols     CompareTimeStamps 
ClientTimeToServerTime CompareISOLatin1Lowered dixLookupDrawable 
dixLookupWindow dixLookupGC dixLookupClient AlterSaveSetForClient NoopDDA 
BlockHandler WakeupHandler RegisterBlockAndWakeupHandlers 
RemoveBlockAndWakeupHandlers ProcessWorkQueue QueueWorkProc ClientSleep 
ClientWakeup AddCallback DeleteCallback CallCallbacks
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/enterleave.o
  SPECIAL Xorg            keepsymbols     DoFocusEvents
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/events.o
  SPECIAL Xorg            keepsymbols     DevHasCursor IsPointerDevice 
IsKeyboardDevice SetMaskForEvent SetCriticalEvent PointerConfinedToScreen 
IsParent GetCurrentRootWindow GetSpriteWindow GetSpriteCursor GetSpritePosition 
XineramaGetCursorScreen NoticeEventTime ScreenRestructured ActivatePointerGrab 
DeactivatePointerGrab ActivateKeyboardGrab DeactivateKeyboardGrab AllowSome 
TryClientEvents DeliverEventsToWindow DeliverDeviceEvents DeliverEvents 
CheckMotion WindowsRestructured UpdateSpriteForScreen WindowHasNewCursor 
NewCurrentScreen CheckDeviceGrabs DeliverFocusedEvent DeliverGrabbedEvent 
FixKeyState SetInputFocus GrabDevice CheckCursorConfinement WriteEventsToClient 
PickPointer PickKeyboard
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/extension.o
  SPECIAL Xorg            keepsymbols     lastEvent AddExtension 
AddExtensionAlias CheckExtension GetExtensionEntry StandardMinorOpcode 
MinorOpcodeOfRequest
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/ffs.o
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/gc.o
  SPECIAL Xorg            keepsymbols     ValidateGC dixChangeGC ChangeGC 
DoChangeGC CreateGC CopyGC FreeGC CreateScratchGC VerifyRectOrder GetScratchGC 
FreeScratchGC
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/getevents.o
  SPECIAL Xorg            keepsymbols     GetEventList GetMotionHistorySize 
AllocateMotionHistory GetMotionHistory GetMaximumEventsNum GetKeyboardEvents 
GetKeyboardValuatorEvents InitEventList SetMinimumEventSize FreeEventList 
GetPointerEvents GetProximityEvents
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/globals.o
  SPECIAL Xorg            keepsymbols     defaultKeyboardControl 
defaultPointerControl maxBigRequestSize globalSerialNumber serverGeneration 
defaultDPMSStandbyTime defaultDPMSSuspendTime defaultDPMSOffTime DPMSPowerLevel 
defaultDPMSEnabled DPMSEnabledSwitch DPMSDisabledSwitch DPMSCapableFlag 
defaultScreenSaverTime defaultScreenSaverInterval defaultScreenSaverBlanking 
logoScreenSaver screenSaverSuspended defaultFontPath defaultTextFont 
defaultCursorFont party_like_its_1989 whiteRoot defaultColorVisualClass 
monitorResolution TimeOutValue
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/glyphcurs.o
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/grabs.o
  SPECIAL Xorg            keepsymbols     CreateGrab AddPassiveGrabToList 
DeletePassiveGrabFromList
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/initatoms.o
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/main.o
  SPECIAL Xorg            keepsymbols     NotImplemented ReplyNotSwappd 
CreateConnectionBlock AddScreen
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/pixmap.o
  SPECIAL Xorg            keepsymbols     GetScratchPixmapHeader 
FreeScratchPixmapHeader AllocatePixmap
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/privates.o
  SPECIAL Xorg            keepsymbols     dixRequestPrivate dixAllocatePrivate 
dixLookupPrivate dixLookupPrivateAddr dixSetPrivate dixFreePrivates 
dixRegisterPrivateInitFunc dixRegisterPrivateDeleteFunc 
dixRegisterPrivateOffset dixLookupPrivateOffset
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/property.o
  SPECIAL Xorg            keepsymbols     dixLookupProperty 
dixChangeWindowProperty ChangeWindowProperty
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/ptrveloc.o
  SPECIAL Xorg            keepsymbols     InitFilterChain 
SetAccelerationProfile GetDevicePredictableAccelData
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/registry.o
  SPECIAL Xorg            keepsymbols     RegisterResourceName 
LookupRequestName LookupEventName
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/resource.o
  SPECIAL Xorg            keepsymbols     CreateNewResourceType 
CreateNewResourceClass GetXIDRange GetXIDList FakeClientID AddResource 
FreeResource FreeResourceByType ChangeResourceValue FindClientResourcesByType 
FindAllClientResources FreeClientNeverRetainResources 
LookupClientResourceComplex LegalNewID dixLookupResourceByType
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/selection.o
  SPECIAL Xorg            keepsymbols     dixLookupSelection
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/swaprep.o
  SPECIAL Xorg            keepsymbols     Swap32Write CopySwap32Write 
CopySwap16Write SKeyButtonPtrEvent SwapConnSetupInfo SwapConnSetupPrefix
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/swapreq.o
  SPECIAL Xorg            keepsymbols     SwapLongs SwapShorts SwapColorItem
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/tables.o
  SPECIAL Xorg            keepsymbols     InitialVector ProcVector 
EventSwapVector ReplySwapVector
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../external/mit/xorg/server/xorg-server/dix/window.o
  SPECIAL Xorg            keepsymbols     screenIsSaved TraverseTree WalkTree  
defaultBackingStore disableBackingStore enableBackingStore 
RegisterRealChildHeadProc CreateWindow ChangeWindowAttributes MoveWindowInStack 
CreateUnclippedWinSize SetWinSize SetBorderSize GravityTranslate 
ResizeChildrenWinSize ConfigureWindow DisableMapUnmapEvents 
EnableMapUnmapEvents MapWindow UnmapWindow NotClippedByChildren 
SendVisibilityNotify dixSaveScreens SaveScreens FindWindowWithOptional 
CheckWindowOptionalNeed MakeWindowOptional

  SPECIAL Xorg            objs    dlfcn.o
  SPECIAL Xorg            objpaths        
${OBJDIR}/../../distrib/miniroot/dlfcn.o
  SPECIAL Xorg            keepsymbols     dlopen dlclose dlsym dlerror dladdr 
dlinfo

  LIBS    
${OBJDIR}/../../external/mit/xorg/server/drivers/xf86-video-wsudl/libwsudl_drv_pic.a
  LIBS    ${OBJDIR}/../../external/mit/xorg/server/xorg-server/fb/libfb.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/init/libinit.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/config/libconfig.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/loader/libloader.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/common/libcommon.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/xorgos/libxorgos.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/xf86config/libxf86config.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/dixmods/libdixmods.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/xf86modes/libxf86modes.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/ramdac/libramdac.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/ddc/libddc.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/i2c/libi2c.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/composite/libcomposite.a
  LIBS    ${OBJDIR}/../../external/mit/xorg/server/xorg-server/mi/libmi.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/xfixes/libxfixes.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/Xext/Xextbuiltin/libXextbuiltin.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/render/librender.a
  LIBS    ${OBJDIR}/../../external/mit/xorg/server/xorg-server/randr/librandr.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/damageext/libdamageext.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/miext/damage/libdamage.a
  LIBS    ${OBJDIR}/../../external/mit/xorg/server/xorg-server/Xi/libXi.a
  LIBS    ${OBJDIR}/../../external/mit/xorg/server/xorg-server/xkb/libxkb.a
  LIBS    ${OBJDIR}/../../external/mit/xorg/server/xorg-server/os/libos.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/hw/xfree86/dixmods/fb/libfb.a
  LIBS    
${OBJDIR}/../../external/mit/xorg/server/xorg-server/xkbstubs/libxkbstubs.a
  LIBS    -Wl,-rpath-link,${DESTDIR}/usr/X11R7/lib -L${DESTDIR}/usr/X11R7/lib
  LIBS    -lpixman-1 -lXfont -lfreetype -lXau -lfontenc -lXdmcp -lpciaccess
  LIBS    -lpci

  LIBS    -lm -lkvm -lmagic -lz -lprop            # from distrib/miniroot/list

  CMD     ln -s usr/X11R7/bin/Xorg usr/X11R7/lib/modules/drivers/wsudl_drv.so
  CMD     ln -s usr/X11R7/bin/Xorg usr/X11R7/lib/modules/libfb.so


Thanks,  ;-)
--
kiyohara
Index: crunchgen.c
===================================================================
RCS file: /cvsroot/src/usr.bin/crunch/crunchgen/crunchgen.c,v
retrieving revision 1.75
diff -u -r1.75 crunchgen.c
--- crunchgen.c 14 Apr 2009 22:03:07 -0000      1.75
+++ crunchgen.c 3 Jan 2010 11:15:11 -0000
@@ -993,7 +993,6 @@
            fprintf(outmk, "%s_OBJS=", p->ident);
            output_strlst(outmk, p->objs);
        }
-       fprintf(outmk, "%s:\n\t mkdir %s\n", p->ident, p->ident);
        fprintf(outmk, "%s_make: %s .PHONY\n", p->ident, p->ident);
        fprintf(outmk, "\t( cd %s; printf '.PATH: ${%s_SRCDIR}\\n"
            ".CURDIR:= ${%s_SRCDIR}\\n"
@@ -1020,6 +1019,9 @@
         fprintf(outmk, "%s_make:\n\t@echo \"** Using existing objs for 
%s\"\n\n", 
                p->ident, p->name);
 
+#ifdef NEW_TOOLCHAIN
+    fprintf(outmk, "%s:\n\t mkdir %s\n", p->ident, p->ident);
+#endif
     fprintf(outmk, "%s.cro: %s .WAIT ${%s_OBJPATHS}\n",
        p->name, p->ident, p->ident);
 


Home | Main Index | Thread Index | Old Index